Appendix E. Worker node configuration reference for mod_proxy_cluster
E.1. Worker node configuration Copy linkLink copied to clipboard!
Configuration values are sent to proxies under the following conditions:
- During server startup
- When a proxy is detected through the advertise mechanism
- During error recovery when a proxy’s configuration is reset
| Value | Default | Description |
|---|---|---|
|
| true | Specifies whether subsequent requests for a given session should be routed to the same node, if possible. |
|
| false |
Specifies whether the Apache HTTP Server proxy should remove session stickiness if the balancer is unable to route a request to the node to which it is stuck. This property is ignored if |
|
| true |
Specifies whether the Apache HTTP Server proxy should return an error if the balancer is unable to route a request to the node to which it is stuck. This property is ignored if |
|
| -1 |
Specifies the number of seconds to wait for a worker to become available to handle a request. When all the workers of a balancer are unusable, |
|
| 1 |
Specifies the number of times the Apache HTTP Server proxy will attempt to send a given request to a worker before aborting. The minimum value is |
|
| false | Specifies whether packet flushing is enabled or disabled. |
|
| -1 |
Specifies the time to wait before flushing packets. A value of |
|
| 10 | Time to wait (in seconds) for a pong answer to a ping. |
|
|
Specifies the soft maximum idle connection count. The maximum value is determined by the Apache HTTP Server thread configuration ( | |
|
| 60 |
Specifies the time (in seconds) idle connections persist, above the |
|
| -1 |
Specifies the time (in seconds) |
|
| mycluster | Specifies the name of the load-balancer. |
|
|
Specifies the load balancing among |
E.2. Proxy and proxy discovery configuration attributes for mod_proxy_cluster Copy linkLink copied to clipboard!
The following tables contain attributes and information about proxy and proxy discovery configuration attributes for mod_proxy_cluster.
| Attribute | Property | Default Value |
|---|---|---|
| proxy-list |
| |
| proxy-url |
| |
| advertise |
| true |
| advertise-security-key |
| |
| excluded-contexts |
| |
| auto-enable-contexts |
| true |
| stop-context-timeout |
| 10 seconds (in seconds) |
| socket-timeout |
| 20 seconds (in milliseconds) |
When nodeTimeout is not defined, the ProxyTimeout directive, Proxy, is used. If ProxyTimeout is not defined, the server timeout (Timeout) is used (120 seconds by default in the JBCS httpd.conf). nodeTimeout, ProxyTimeout, and Timeout are set at the socket level.
| Attribute | Property | Default Value |
|---|---|---|
| sticky-session |
| true |
| sticky-session-remove |
| false |
| sticky-session-force |
| true |
| node-timeout |
| -1 |
| max-attempts |
| 1 |
| flush-packets |
| false |
| flush-wait |
| -1 |
| ping |
| 10 (seconds) |
| smax |
| -1 (uses the default value) |
| ttl |
| -1 (uses the default value) |
| domain |
| |
| load-balancing-group |
|
E.3. Load configuration for Tomcat Copy linkLink copied to clipboard!
You can configure the following additional properties for load metrics when you want to use mod_proxy_cluster with Apache Tomcat.
| Attribute | Default Value | Description |
|---|---|---|
| loadMetricClass |
|
The class name of an object that is implementing |
| loadMetricCapacity | 1 |
The capacity of the load metric defined via the |
| loadHistory | 9 | The number of historic load values that must be considered in the load balance factor computation |
| loadDecayFactor | 2 | The factor by which the historic load values decrease in significance |