1 # Licensed to the Apache Software Foundation (ASF) under one or more
2 # contributor license agreements. See the NOTICE file distributed with
3 # this work for additional information regarding copyright ownership.
4 # The ASF licenses this file to You under the Apache License, Version 2.0
5 # (the "License"); you may not use this file except in compliance with
6 # the License. You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
16 # Note that the distributed version of this file requires modification
17 # before it is usable.
19 # Reference documentation: http://tomcat.apache.org/connectors-doc/reference/workers.html
21 # As a general note, the characters $( and ) are used internally to define
22 # macros. Do not use them in your own configuration!!!
24 # Whenever you see a set of lines such as:
28 # the final value for y will be value\something
30 # Define two status worker:
31 # - jk-status for read-only use
32 # - jk-manager for read/write use
34 worker.jk-status.type=status
35 worker.jk-status.read_only=true
37 worker.list=jk-manager
38 worker.jk-manager.type=status
40 # We define a load balancer worker
41 # with name "balancer"
43 worker.balancer.type=lb
44 # error_escalation_time: seconds, default = recover_time/2 (=30)
45 # Determines, how fast a detected error should switch from
46 # local error state to global error state
48 worker.balancer.error_escalation_time=0
50 # - max_reply_timeouts: number, default=0
51 # If there are to many reply timeouts, a worker
52 # is put into the error state, i.e. it will become
53 # unavailable for all sessions residing on the respective
54 # Tomcat. The number of tolerated reply timeouts is
55 # configured with max_reply_timeouts. The number of
56 # timeouts occuring is divided by 2 once a minute and the
57 # resulting counter is compared against max_reply_timeouts.
58 # If you set max_reply_timeouts to N and the errors are
59 # occuring equally distributed over time, you will
60 # tolerate N/2 errors per minute. If they occur in a burst
61 # you will tolerate N errors.
63 worker.balancer.max_reply_timeouts=10
67 # Now we add members to the load balancer
68 # First member is "node1", most
69 # attributes are inherited from the
70 # template "worker.template".
71 worker.balancer.balance_workers=node1
72 worker.node1.reference=worker.template
73 worker.node1.host=localhost
74 worker.node1.port=8109
75 # Activation allows to configure
76 # whether this node should actually be used
77 # A: active (use node fully)
78 # D: disabled (only use, if sticky session needs this node)
79 # S: stopped (do not use)
81 worker.node1.activation=A
83 # Second member is "node2", most
84 # attributes are inherited from the
85 # template "worker.template".
86 worker.balancer.balance_workers=node2
87 worker.node2.reference=worker.template
88 worker.node2.host=localhost
89 worker.node2.port=8209
90 # Activation allows to configure
91 # whether this node should actually be used
92 # A: active (use node fully)
93 # D: disabled (only use, if sticky session needs this node)
94 # S: stopped (do not use)
96 worker.node2.activation=A
98 # Finally we put the parameters
99 # which should apply to all our ajp13
100 # workers into the referenced template
102 worker.template.type=ajp13
104 # - socket_connect_timeout: milliseconds, default=0
106 worker.template.socket_connect_timeout=5000
108 # - socket_keepalive: boolean, default=false
109 # Should we send TCP keepalive packets
110 # when connection is idle (socket option)?
111 worker.template.socket_keepalive=true
113 # - ping_mode: Character, default=none
114 # When should we use cping/cpong connection probing?
115 # C = directly after establishing a new connection
116 # P = directly before sending each request
117 # I = in regular intervals for idle connections
118 # using the watchdog thread
119 # A = all of the above
121 worker.template.ping_mode=A
123 # - ping_timeout: milliseconds, default=10000
124 # Wait timeout for cpong after cping
125 # Can be overwritten for modes C and P
126 # Using connect_timeout and prepost_timeout.
128 worker.template.ping_timeout=10000
130 # - connection_pool_minsize: number, default=connection_pool_size
131 # Lower pool size when shrinking pool due
132 # to idle connections
133 # We want all connections to be closed when
134 # idle for a long time in order to prevent
137 worker.template.connection_pool_minsize=0
139 # - connection_pool_timeout: seconds, default=0
140 # Idle time, before a connection is eligible
141 # for being closed (pool shrinking).
142 # This should be the same value as connectionTimeout
143 # in the Tomcat AJP connector, but there it is
144 # milliseconds, here seconds.
145 worker.template.connection_pool_timeout=600
147 # - reply_timeout: milliseconds, default=0
148 # Any pause longer than this timeout during waiting
149 # for a part of the reply will abort handling the request
150 # in mod_jk. The request will proceed running in
151 # Tomcat, but the web server resources will be freed
152 # and an error is send to the client.
153 # For individual requests, the timeout can be overwritten
154 # by the Apache environment variable JK_REPLY_TIMEOUT.
155 # JK_REPLY_TIMEOUT since: 1.2.27
156 worker.template.reply_timeout=300000
158 # - recovery_options: number, default=0
159 # Bit mask to configure, if a request, which was send
160 # to a backend successfully, should be retried on another backend
161 # in case there's a problem with the response.
162 # Value "3" disables retries, whenever a part of the request was
163 # successfully send to the backend.
164 worker.template.recovery_options=3