Re: Tomcat 6 Cluster with Apache 2.2.9 issues
This is my workers.properties file too. Thanks Phil # workers.properties ps=/ # list the workers by name worker.list=tomcat1,tomcat2,tomcat3,loadbalancer # # Specifies the load balance factor when used with # a load balancing worker. # Note: # lbfactor must be 0 # Low lbfactor means less work done by the worker. # # First tomcat server # worker.tomcat1.port=18009 worker.tomcat1.host=192.168.70.101 worker.tomcat1.type=ajp13 worker.tomcat1.lbfactor=33 # # Second tomcat server # worker.tomcat2.port=19009 worker.tomcat2.host=192.168.70.102 worker.tomcat2.type=ajp13 worker.tomcat2.lbfactor=33 # # Third tomcat server # worker.tomcat3.port=20009 worker.tomcat3.host=192.168.70.103 worker.tomcat3.type=ajp13 worker.tomcat3.lbfactor=33 # --- # Load Balancer worker # # # The loadbalancer (type lb) worker performs weighted round-robin # load balancing with sticky sessions. # Note: # If a worker dies, the load balancer will check its state #once in a while. Until then all work is redirected to peer #worker. worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=tomcat1,tomcat2,tomcat3 # # END workers.properties # -- View this message in context: http://www.nabble.com/Tomcat-6-Cluster-with-Apache-2.2.9-issues-tp22957994p22958289.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat 6 Cluster with Apache 2.2.9 issues
Remove your tomcat workers from the worker.list, you only need to reference the balance worker here: worker.list=loadbalancer your load balancer worker then refers to the tomcat workers: worker.loadbalancer.balanced_workers=tomcat1,tomcat2,tomcat3 -Jorge -Original Message- From: nohacks [mailto:philipfwil...@gmail.com] Sent: Wednesday, April 08, 2009 4:11 PM To: users@tomcat.apache.org Subject: Re: Tomcat 6 Cluster with Apache 2.2.9 issues This is my workers.properties file too. Thanks Phil # workers.properties ps=/ # list the workers by name worker.list=tomcat1,tomcat2,tomcat3,loadbalancer # # Specifies the load balance factor when used with # a load balancing worker. # Note: # lbfactor must be 0 # Low lbfactor means less work done by the worker. # # First tomcat server # worker.tomcat1.port=18009 worker.tomcat1.host=192.168.70.101 worker.tomcat1.type=ajp13 worker.tomcat1.lbfactor=33 # # Second tomcat server # worker.tomcat2.port=19009 worker.tomcat2.host=192.168.70.102 worker.tomcat2.type=ajp13 worker.tomcat2.lbfactor=33 # # Third tomcat server # worker.tomcat3.port=20009 worker.tomcat3.host=192.168.70.103 worker.tomcat3.type=ajp13 worker.tomcat3.lbfactor=33 # --- # Load Balancer worker # # # The loadbalancer (type lb) worker performs weighted round-robin # load balancing with sticky sessions. # Note: # If a worker dies, the load balancer will check its state #once in a while. Until then all work is redirected to peer #worker. worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=tomcat1,tomcat2,tomcat3 # # END workers.properties # -- View this message in context: http://www.nabble.com/Tomcat-6-Cluster-with-Apache-2.2.9-issues-tp229579 94p22958289.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat 6 Cluster with Apache 2.2.9 issues
thanks for the reply. I updated my workers.properties file to worker.list=loadbalancer still get this in my mod_jk.log. [Wed Apr 08 17:21:46.840 2009] [29811:3075569408] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.loadbalancer.balanced_workers' is deprecated - please check the documentation for the correct replacement. [Wed Apr 08 17:21:46.841 2009] [29811:3075569408] [info] init_jk::mod_jk.c (3018): mod_jk/1.2.27 initialized [Wed Apr 08 17:21:46.841 2009] [29811:3075569408] [error] uri_worker_map_ext::jk_uri_worker_map.c (505): Could not find worker with name 'ajp13' in uri map post processing. [Wed Apr 08 17:21:46.841 2009] [29811:3075569408] [error] uri_worker_map_ext::jk_uri_worker_map.c (505): Could not find worker with name 'ajp13' in uri map post processing. [Wed Apr 08 17:21:46.924 2009] [29812:3075569408] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.loadbalancer.balanced_workers' is deprecated - please check the documentation for the correct replacement. [Wed Apr 08 17:21:46.924 2009] [29812:3075569408] [info] init_jk::mod_jk.c (3018): mod_jk/1.2.27 initialized [Wed Apr 08 17:21:46.924 2009] [29812:3075569408] [error] uri_worker_map_ext::jk_uri_worker_map.c (505): Could not find worker with name 'ajp13' in uri map post processing. [Wed Apr 08 17:21:46.924 2009] [29812:3075569408] [error] uri_worker_map_ext::jk_uri_worker_map.c (505): Could not find worker with name 'ajp13' in uri map post processing. ~ -- View this message in context: http://www.nabble.com/Tomcat-6-Cluster-with-Apache-2.2.9-issues-tp22957994p22959874.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 6 Cluster with Apache 2.2.9 issues
On 08.04.2009 23:23, nohacks wrote: thanks for the reply. I updated my workers.properties file to worker.list=loadbalancer still get this in my mod_jk.log. [Wed Apr 08 17:21:46.840 2009] [29811:3075569408] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.loadbalancer.balanced_workers' is deprecated - please check the documentation for the correct replacement. Look for the replacement of balanced_workers in http://tomcat.apache.org/connectors-doc/reference/workers.html [Wed Apr 08 17:21:46.841 2009] [29811:3075569408] [error] uri_worker_map_ext::jk_uri_worker_map.c (505): Could not find worker with name 'ajp13' in uri map post processing. [Wed Apr 08 17:21:46.841 2009] [29811:3075569408] [error] uri_worker_map_ext::jk_uri_worker_map.c (505): Could not find worker with name 'ajp13' in uri map post processing. It seems you haven't successfully defined any JkMount(s) or uriworkermap.properties. If there are no such, then a builtin automatic worker named ajp13 is assumed, which is not configured in your workers.properties. Don't configure an additional worker with that name, instead try to explain JkMount or uriworkermap.properties (both are nearly equivalent, you can choose whatever you like more). They are needed to explain, which URLs Apache httpd should forward via which worker (or not forward at all). Also remove the ps line from workers.properties. It has no meaning. Furthermore look at the page http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html to learn more about timeouts you should use in the configuration. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 6 Cluster with Apache 2.2.9 issues
Look for the replacement of balanced_workers in http://tomcat.apache.org/connectors-doc/reference/workers.html Also remove the ps line from workers.properties. It has no meaning. Furthermore look at the page http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html to learn more about timeouts you should use in the configuration. === Thanks great links. I will check them out now. Phil -- View this message in context: http://www.nabble.com/Tomcat-6-Cluster-with-Apache-2.2.9-issues-tp22957994p22960190.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org