此内容没有您所选择的语言版本。

Appendix B. Java Properties Reference


B.1. Proxy Configuration

The 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.
Expand
Table B.1. Proxy Configuration Values for Tomcat
Value Default Description
stickySession true Specifies whether subsequent requests for a given session should be routed to the same node, if possible.
stickySessionRemove false Specifies whether the httpd 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 stickySession is false.
stickySessionForce true Specifies whether the httpd 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 stickySession is false.
workerTimeout -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, mod_cluster will retry after a while (workerTimeout/100) to find an usable worker. A value of -1 indicates that the httpd will not wait for a worker to be available and will return an error if no workers are available.
maxAttempts 1 Specifies the number of times the httpd proxy will attempt to send a given request to a worker before aborting. The minimum value is 1: try once before aborting.
flushPackets false Specifies whether packet flushing is enabled or disabled.
flushWait -1 Specifies the time to wait before flushing packets. A value of -1 means wait forever.
ping 10 Time to wait (in seconds) for a pong answer to a ping.
smax - Specifies the soft maximum idle connection count. The maximum value is determined by the httpd thread configuration (ThreadsPerChild or 1).
ttl 60 Specifies the time (in seconds) idle connections persist, above the smax threshold.
nodeTimeout -1 Specifies the time (in seconds) mod_cluster waits for the back-end server response before returning an error. mod_cluster always uses a cping/cpong before forwarding a request. The connectiontimeout value used by mod_cluster is the ping value.
balancer mycluster Specifies the name of the load-balancer.
loadBalancingGroup - Specifies the load balancing among jvmRoutes within the same load balancing group. A loadBalancingGroup is conceptually equivalent to a mod_jk domain directive.
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat