Have been trying to cluster tomcat over the past few days and just had a couple of questions.
I am using tomcat bundle with jdk-1.6 and openBSD 4.8
1.Can tomcat be clustered for just for development without a load balancer or do I need to use mod_jk?
I have been trying to get them to cluster but have so far been unsuccessful.
INFO: Initializing Coyote HTTP/1.1 on http-8080
Feb 23, 2011 1:46:39 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1106 ms
Feb 23, 2011 1:46:39 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 23, 2011 1:46:39 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.26
Feb 23, 2011 1:46:39 PM org.apache.catalina.ha.tcp.SimpleTcpCluster start
INFO: Cluster is about to start
Feb 23, 2011 1:46:39 PM org.apache.catalina.tribes.transport.ReceiverBase bind
INFO: Receiver Server Socket bound to:/192.168.1.164:4000
Feb 23, 2011 1:46:39 PM org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
INFO: Setting cluster mcast soTimeout to 500
Feb 23, 2011 1:46:39 PM org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
INFO: Sleeping for 1000 milliseconds to establish cluster membership, start level:4
Feb 23, 2011 1:46:40 PM org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
INFO: Done sleeping, membership established, start level:4
Feb 23, 2011 1:46:40 PM org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
INFO: Sleeping for 1000 milliseconds to establish cluster membership, start level:8
Feb 23, 2011 1:46:41 PM org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
INFO: Done sleeping, membership established, start level:8
Feb 23, 2011 1:46:41 PM org.apache.catalina.ha.deploy.FarmWarDeployer start
SEVERE: FarmWarDeployer can only work as host cluster subelement!
Feb 23, 2011 1:46:41 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor ROOT.xml
Feb 23, 2011 1:46:44 PM org.apache.catalina.ha.session.DeltaManager start
INFO: Register manager to cluster element Engine with name Catalina
Feb 23, 2011 1:46:44 PM org.apache.catalina.ha.session.DeltaManager start
INFO: Starting clustering manager at
Feb 23, 2011 1:46:44 PM org.apache.catalina.ha.session.DeltaManager getAllClusterSessions
INFO: Manager [localhost#]: skipping state transfer. No members active in cluster group.
keep getting this no members in cluster group error.
mod_jk logs give this error
[Wed Feb 23 12:31:10.354 2011] [32709:0] [error] uri_worker_map_ext::jk_uri_worker_map.c (506): Could not find worker with name 'load' in uri map post
workers.tomcat_home=/home/liferay-portal-6.0.5/tomcat-6.0.26/
workers.java_home=$JAVA_HOME
ps=/
worker.list=tomcatA,tomcatB,load
worker.load.host=127.0.0.1
worker.load.type=lb
worker.load.balance_workers=tomcatA,tomcatB
worker.tomcatA.port=8009
worker.tomcatA.host=192.168.1.155
worker.tomcatA.type=ajp13
worker.tomcatA.lbfactor=1
worker.tomcatB.port=8109
worker.tomcatB.host=192.168.1.164
worker.tomcatB.type=ajp13
worker.tomcatB.lbfactor=1
This is my workers.properties file. i have edited server.xml to include the jvm route of tomcatA and B and include < distributable > context.
LoadModule proxy_module /usr/lib/apache/modules/libproxy.so
LoadModule jk_module /usr/lib/apache/modules/mod_jk.so
JkWorkersFile /var/www/conf/workers.properties
JkLogFile "logs/mod_jk.log"
JkLogLevel error
JkMount /clsuter/* load
This is my httpd.conf file where i have loaded the module and its logging so its successfully starting up just cant find the worker "load" even tho it has been specfifed in the workers.properties.
If anybody could give me some guidance regarding this it would be good thanks.
William
Please sign in to flag this as inappropriate.