...
Parameter | Default | Description |
---|---|---|
| mandatory | Name for the proxy target |
| mandatory | URL of the target server |
| mandatory | Type of request that are processed by the target. The value controls the possible mechanisms that are available to dispatch the request to the matching pipelines. Possible values are: |
| mandatory | Request URI that is used to detect that an incoming request on the workload proxy should be sent to this proxy target |
JEAF Workload Proxy uses Apaches HTTP Client to communicate with the proxy target. For each proxy target there is a separate connection pool, which can be configured using the parameters below | ||
|
| Maximum amount of idle connections in the connection pool |
|
| Keep alive duration for connection to proxy target (in milliseconds) |
|
| Parameter configures the time period in milliseconds after which a connection is validated before it is taken from the pool again. |
|
| Maximum amount of retries before a call to the proxy target is considered to be failed. |
|
| Interval in milliseconds after which the proxy target is called again in case that retries are configured. |
|
| Response timeout in milliseconds for calls to proxy target. Please be aware that this is a very sensitive parameter and needs to be fine-tuned for your purposes. the response timeout has a very strong influence on the behavior of your service to the outside world and also influences pipeline configuration values. |
|
| Timeout in milliseconds to establish connections to the proxy target. As connections are pooled this parameter should not have a too strong influence on the overall behavior. However please ensure that it fits to your environment. |
JEAF Workload proxy also makes use of a so called circuit breaker for each proxy target. The parameters below can be used to configure it. | ||
|
| Failure rate threshold (percent of requests) defines which amount of failed request must be exceeded due to technical problems that the circuit breaker opens and no further request will be sent to the proxy target. Value must between |
|
| Duration in milliseconds that the circuit breaker stays open until request will be sent to the proxy target again. The value must be zero or greater. |
|
| Configures the duration in milliseconds above which calls are considered as slow and increase the slow calls percentage. The value must be zero or greater. |
|
| Configures the slow request threshold in percentage. The circuit breaker considers a call as slow when the call duration is greater than Value must between |
|
| Configures the number of permitted calls when the circuit breaker is half open. The value must be zero or greater. |
|
| Configures the size of the sliding window in seconds which is used to record the outcome of calls when the circuit breaker is closed. The value must be greater than |
Key Resolution Rules When requests are received by JEAF Workload Proxy for a specific target then they are dispatched to a pipeline that is responsible to take care about its processing (or rejection). Currently key resolution rules are only supported for SOAP requests. In case of REST, dispatching is only possible based on the URI. In case of SOAP at least 1 key resolution rule is expected per proxy target. | ||
| mandatory | Key for unique identification of a request type. This key will be used when dispatching requests to pipelines as pipelines are responsible for 1 or more request keys. |
| optional | XPath expression that is used to evaluate if a request matches to this request key. If there is no XPath expression defined for a key resolution rule then this rule is the default rule. |
...
Example
Expand | ||||||
---|---|---|---|---|---|---|
| ||||||
|
...
Parameter | Default | Description |
---|---|---|
| mandatory | Unique ID of the pipeline. |
| optional | Name of the pipeline. If no name is provided then the ID will also be used as name. |
| optional | Description of the pipeline. |
| mandatory | The core thread size defines the standard size of the thread pool. The size of the thread will only be extended to the maximum size in case the the queue reaches its maximum size. For further details please refer to ThreadPoolExecutor. |
|
| Maximum amount of threads that will be used by the pipeline. In standard working mode the pipeline will not use more threads then defined by |
|
| Valid values as defined by Java must be within |
|
| Maximum time in milliseconds until threads that exceed the minimum pool size are kept alive if they are not used. Default is 60 seconds. |
|
| Implementation type of the queue that is used to implement the workload pipeline. Currently |
|
| Maximum size of the queue that is used for requests in case that all threads of the pipeline are currently occupied. |
|
| Maximum latency in the defined |
|
| Time unit that is used for all time values. Default is |
|
| Parameter define if this pipeline definition is the default pipeline. The default pipeline will be used if no other more specific pipeline could be found for a certain request type. |
Keys for Pipelines A pipeline can be connected with multiple keys. JEAF Workload Proxy know two types of keys: Generic Keys and REST Keys. Generic keys result from key resolution rules that are define in a proxy target. Using the keys a request is dispatched to a pipeline with the matching key. REST Keys are directly created based on the received request using URI and HTTP method of the request. | ||
| optional | List contains one or more generic key. Entries are described in |
| mandatory | Name of the generic key. The key also should be defined for at least one of the proxy targets. |
| optional | List contains one or more |
| mandatory | Endpoint URL of the REST Key. |
| optional | Optional HTTP method of the REST Key. Valid values are |
...
Example
Expand | ||||||
---|---|---|---|---|---|---|
| ||||||
|