Configuring AJP13 Workers
An ajp13 worker represents an AJP13 connection to the Agent. Each ajp13 worker has two required properties and two optional properties.
An ajp13 worker must be configured with the properties in Table 7:
Table 7 – Required properties for an ajp13 worker 
Property
Description
host
Name of the server that runs the Agent.
port
Port number of the Agent. The default port for the AJP13 connector is 8009.
An ajp13 worker may be configured with the properties in Table 8:
Table 8 – Optional properties for an ajp13 worker 
Property
Description
lbfactor
Assigned weight for load balancing
cachesize
Number of socket connections the Web server opens to the Agent. (If this property is not explicitly set, the server opens one connection.) Typically, this number should be equal to the number of acceptor threads specified for the connector associated with the port.
For example, the configuration lines below set an ajp13 worker named container1 to connect to port 8009 on the local machine:
 
worker.container1.host=localhost
worker.container1.port=8009
If the optional elements were set, they might look like this:
 
worker.container1.lbfactor=2
worker.container1.cachesize=10
For more advanced configurations, see the Apache Tomcat mod_jk documentation.