Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 97577 invoked from network); 6 Aug 2005 07:59:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Aug 2005 07:59:59 -0000 Received: (qmail 34429 invoked by uid 500); 6 Aug 2005 07:59:53 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 34410 invoked by uid 500); 6 Aug 2005 07:59:53 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 34395 invoked by uid 99); 6 Aug 2005 07:59:53 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Aug 2005 00:59:53 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [206.16.202.42] (HELO ashprdnss01.gspt.net) (206.16.202.42) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Aug 2005 00:59:43 -0700 Received: from kanaapp2 ([172.17.20.42]) by ashprdnss01.gspt.net (8.12.11/8.12.11) with SMTP id j767xmXf012810 for ; Sat, 6 Aug 2005 03:59:51 -0400 Message-Id: <200508060759.j767xmXf012810@ashprdnss01.gspt.net> Date: Sat, 06 Aug 2005 03:59:37 -0400 To: Tomcat Developers List Subject: RE: RE: patch: mod_jk load balance algorithm that accounts for current worker load From: "Customer Support at www.ballystore.com" Reply-To: "Customer Support at www.ballystore.com" MIME-Version: 1.0 Content-Type: text/plain; charset = "us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: KANA Response 7.0.1.107 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Dear Valued Customer, Thank you for contacting Customer Support at www.ballystore.com. Your questions and concerns are important to us and we are dedicated to assisting you in anyway possible. In order to assist you in the most efficient and timely manner, all email correspondence must be submitted through our online email form. To locate our online email form, we ask that you visit our Help Desk at Customer Support at www.ballystore.com/helpdesk and choose FAQ/Contact Us under Online Store Information. Then, choose the subject that will address your question and send us an email through our online email form. We apologize for any inconvenience this may cause you. Sincerely, Customer Support at www.ballystore.com Original Message Follows: ------------------------ Dear Valued Customer, Thank you for contacting Customer Support at www.ballystore.com. Your questions and concerns are important to us and we are dedicated to assisting you in anyway possible. In order to assist you in the most efficient and timely manner, all email correspondence must be submitted through our online email form. To locate our online email form, we ask that you visit our Help Desk at Customer Support at www.ballystore.com/helpdesk and choose FAQ/Contact Us under Online Store Information. Then, choose the subject that will address your question and send us an email through our online email form. We apologize for any inconvenience this may cause you. Sincerely, Customer Support at www.ballystore.com Original Message Follows: ------------------------ mod_jk developers: We have been using mod_jk for some time, (1.2.8, 1.2.10, and now 1.2.14), with Apache 2.0.50, Tomcat 5.5.9, under fedora (2.4.22 kernel). We have 6 tomcats as balanced workers, and we're using lb.method=[R]equest. When load testing our tomcats individually, they can handle about 10 requests per second. Our application is completely parallel, nothing is shared (no database). However, when we test against the load balancer, it starts out okay, but degrades to about 12 to 16 requests per second overall. It should be getting somewhere between 50 and 60 requests per second (6 servers * 10 requests per second each). With mod_jk 1.2.14 we were able to check the (very helpful) jkstatus page, and we noticed that the Busy column was very high for the "lagging" server, yet mod_jk kept giving it more requests, while other servers were sitting with 0 Busy. We tried both optimistic and pessimistic locking modes; pessimistic may have been slightly better but it was hard to say. We added a simple load balancing algorithm (to common/jk_lb_worker.c) that takes into account the "busyness" of each worker and its lbfactor, and picks the worker with the lowest current load. It ignores the "Load Balancer Value". This simple algorithm improved our test from 12-16 requests per second to 60+ requests per second, and watching the jkstatus page showed that all servers were kept "evenly" busy. If one particular server slowed down, its Busy value increased, so it received fewer requests. We'd like to submit our patch to mod_jk. We've added a new workers.properties lb.method option -- lb.method=B for "Busyness", and updated the jkstatus display page accordingly. I wanted to get any feedback or suggestions from the mailing list before submitting the patch to bugzilla. Thanks, Chris Lamprecht --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org This message, including any attachments, is solely for the use of the intended recipient(s) and may contain confidential and/or privileged information. Any unauthorized review, use, disclosure or distribution of this communication is expressly prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy any and all copies of the original message. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org This message, including any attachments, is solely for the use of the intended recipient(s) and may contain confidential and/or privileged information. Any unauthorized review, use, disclosure or distribution of this communication is expressly prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy any and all copies of the original message. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org