Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 93511 invoked from network); 2 Feb 2004 17:20:21 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 2 Feb 2004 17:20:21 -0000 Received: (qmail 51720 invoked by uid 500); 2 Feb 2004 17:18:08 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 51635 invoked by uid 500); 2 Feb 2004 17:18:07 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 51440 invoked from network); 2 Feb 2004 17:18:05 -0000 Received: from unknown (HELO cmiexchange.clubmom-inc.com) (65.246.162.158) by daedalus.apache.org with SMTP; 2 Feb 2004 17:18:05 -0000 Received: from clubmom-inc.com (192.168.1.143 [192.168.1.143]) by cmiexchange.clubmom-inc.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id C4JJ27DX; Mon, 2 Feb 2004 12:18:07 -0500 Message-ID: <401E8650.1080008@clubmom-inc.com> Date: Mon, 02 Feb 2004 12:18:08 -0500 From: Aadi Deshpande User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: tomcat-user@jakarta.apache.org Subject: trouble load balancing with mod_jk2 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Greetings, (Not sure if this is the place for mod_jk2 questions or if there is another mailing list) I'm having trouble figuring out how loadbalancing should work using mod_jk2 with Apache2 and Tomcat 5.0.18. I have 2 tomcat instances on 2 machines ( running with different port numbers ) I set them up in a single lb group, using the same lb factor of 80 ( a number I picked arbitrarily ) my lb configuration is set to graceful=1, stickySession=1, and timeout=0 ( i've appended my workers2.properties as additional info ). However, it seems that when i turn on the apache2 and monitor the server, all the instances start going to the first instance in the list and bog that instance down. There doesn't seem to be any load balancing going on, nor is there any sort of failover when the instance becomes unusable ( the thread pool hits the maximum of 200 ) The documentation on mod_jk2 isn't all that clear and a lot of it seems to be geared for implementing the jni mechanism as opposed to the channel socket ajp mechanism. I must clearly be doing something wrong, but I can't figure it out. Additional q's : the mod_jk2 instance is constantly initing and shutting down. Is this normal operating procedure? does a higher lb factor or lower lb factor increase that machine's chances of being selected? do dashes ( - ) in the server name have any effect? I've listed my workers2.properties file inline for review. Thanks in advance for any help. Aadi Deshpande ##workers2.properties [logger] level=DEBUG [config:] file=${serverRoot}/conf/workers2.properties debug=0 debugEnv=0 [uriMap:] info=Maps the requests. Options: debug debug=0 # Alternate file logger #[logger.file:0] #level=DEBUG #file=${serverRoot}/logs/jk2.log [shm:] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=${serverRoot}/logs/jk2.shm size=0000 debug=0 disabled=0 [workerEnv:] info=Global server options timing=1 debug=0 # Default Native Logger (apache2 or win32 ) # can be overriden to a file logger, useful # when tracing win32 related issues #logger=logger.file:0 [status:] info=Status worker, display runtime information [uri:/jkstatus/*] info=Display status information and check the config file group=status: [lb:lb] info=Default load balancer. debug=0 stickySession=1 timeout=0 [channel.socket:tc-server2:6090] info=Ajp13 forwarding over socket graceful=1 debug=0 lb_factor=80 group=lb tomcatId=tc-server2:6090 [channel.socket:tc-server2:6190] info=Ajp13 forwarding over socket graceful=1 debug=0 lb_factor=80 group=lb tomcatId=tc-server2:6190 [channel.socket:tc-server2:6290] info=Ajp13 forwarding over socket graceful=1 debug=0 lb_factor=80 group=lb tomcatId=tc-server2:6290 [channel.socket:tc-server1:6090] info=Ajp13 forwarding over socket graceful=1 debug=0 lb_factor=80 group=lb tomcatId=tc-server1:6090 [channel.socket:tc-server1:6190] info=Ajp13 forwarding over socket graceful=1 debug=0 lb_factor=80 group=lb tomcatId=tc-server1:6190 [channel.socket:tc-server1:6290] info=Ajp13 forwarding over socket graceful=1 debug=0 lb_factor=80 group=lb tomcatId=tc-server1:6290 [uri:/*.jsp] info=Map the whole webapp [uri:/*.sx] info=Map the whole webapp --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org