Chapter 17: Clustering on port 8005 for shutdown, and the AJP Coyote Connector listens on 8009. The relevant lines in server .xml that must be customized for each instance are highlighted here: … … The following table shows what you need to configure in each instance. Instance Name File to Modify TCP Ports (Shutdown, AJP Connector) machine1 machine2 machine3 clustermachine1confserver.xml clustermachine2confserver.xml clustermachine3confserver.xml 8005, 8009 8105, 8109 8205, 8209 The settings chosen here ensure that there will be no conflict starting the three Tomcat 6 instances simultaneously on the same physical machine. If you are actually setting up the test across three physical machines on the network, they can all use the setting of machine1in the table. Setting Up jvmRoute for Each Tomcat Instance to Support mod_ jk To support the mod_jkload balancing, you must set a unique jvmRoute for each Tomcat instance. jvmRoute is an Engine attribute and acts as an identifier for that particular Tomcat worker. This identifier must be unique across all the available Tomcat instances participating in the load-balancing envi ronment. It must also be specified in the Apache Server s mod_jk s worker.propertiesfile (see next section). In each of the server.xmlfiles, modify the following highlighted line to add the jvmRouteattribute. … … (continued)
If you looking for unlimited one inclusive web hosting plan please check cheap web hosting website.
This entry was posted
on Friday, November 13th, 2009 at 3:32 pm and is filed under tomcat.
You can follow any responses to this entry through the RSS 2.0 feed.
Responses are currently closed, but you can trackback from your own site.