Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 75630 invoked from network); 15 Sep 2003 11:03:39 -0000 Received: from unknown (HELO smail3.alcatel.fr) (64.208.49.5) by daedalus.apache.org with SMTP; 15 Sep 2003 11:03:39 -0000 Received: from inmail01.alcatel.co.in (inmail01.amns.alcatel.fr [159.217.103.206]) by smail3.alcatel.fr (ALCANET/NETFR) with ESMTP id h8FB3axl018102 for ; Mon, 15 Sep 2003 13:03:37 +0200 Subject: Re: Load balancing with 2xTC5, 1xIIS and jk2 To: "Tomcat Users List" X-Mailer: Lotus Notes Release 5.0.8 June 18, 2001 Message-ID: From: Ashish-Kumar.Balyan@alcatel.co.in Date: Mon, 15 Sep 2003 16:33:33 +0530 X-MIMETrack: Serialize by Router on INMAIL01/IN/ALCATEL(Release 5.0.12HF34 | May 12, 2003) at 09/15/2003 16:33:37 MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi here is a sample workers.properties that you can use. worker.list=tomcat0, tomcat1, loadbalancer worker.tomcat0.type=ajp13 worker.tomcat0.host=localhost worker.tomcat0.port=8009 worker.tomcat0.cachesize=100 worker.tomcat0.lbfactor=100 worker.tomcat1.type=ajp13 worker.tomcat1.host=localhost worker.tomcat1.port=8011 worker.tomcat1.cachesize=100 worker.tomcat1.lbfactor=100 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=tomcat0,tomcat1 Save the file in the directory .../apache/conf Then add following lines to httpd.conf LoadModule jk_module libexec/mod_jk.so AddModule mod_jk.c JkWorkersFile .../apache/conf/workers.properties JkLogFile .../apache/logs/mod_jk.log JkLogLevel warn JkMount /servlet/* loadbalancer JkMount /*.jsp loadbalancer Do not forget to put mod_jk.so in directory .../apache/libexec :-) AB |---------+---------------------------> | | Mats Andersson | | | | | | | | | 09/15/03 01:40 | | | PM | | | Please respond | | | to "Tomcat Users| | | List" | | | | |---------+---------------------------> >---------------------------------------------------------------------------------------------------------------| | | | To: Tomcat Users List | | cc: | | Subject: Load balancing with 2xTC5, 1xIIS and jk2 | >---------------------------------------------------------------------------------------------------------------| How do I define two workers for load balancing in workers2.properties? There is an example for the old jk, but I can't find any for jk2. Thanks in advance! Mats --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org