Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 75149 invoked from network); 25 Apr 2007 12:56:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Apr 2007 12:56:49 -0000 Received: (qmail 89719 invoked by uid 500); 25 Apr 2007 12:56:42 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 89364 invoked by uid 500); 25 Apr 2007 12:56:41 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 89353 invoked by uid 99); 25 Apr 2007 12:56:41 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Apr 2007 05:56:41 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of Gregor.Novak@hermes-softlab.com designates 193.77.5.145 as permitted sender) Received: from [193.77.5.145] (HELO mail4.hermes.si) (193.77.5.145) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Apr 2007 05:56:31 -0700 Received: from primus.hermes.si (primus.hermes.si [193.77.5.98]) by mail4.hermes.si (Postfix) with ESMTP id 8F3B31BE8858 for ; Wed, 25 Apr 2007 14:56:08 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by primus.hermes.si (Postfix) with ESMTP id 4F20B73025 for ; Wed, 25 Apr 2007 14:56:08 +0200 (CEST) X-Virus-Scanned: amavisd-new at hermes.si Received: from primus.hermes.si ([127.0.0.1]) by localhost (primus.hermes.si [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KBaTy3Kk71Mk for ; Wed, 25 Apr 2007 14:56:03 +0200 (CEST) Received: from hermes.si (hsl-lj-mail.hermes.si [10.17.200.200]) by primus.hermes.si (Postfix) with ESMTP id 076FE73028 for ; Wed, 25 Apr 2007 14:56:03 +0200 (CEST) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C78739.14581A72" Subject: mod_jk - load balancing Date: Wed, 25 Apr 2007 14:56:02 +0200 Message-ID: <07961D132899F94493164A5024783FD12E5B07@hsl-lj-mail.hermes.si> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: mod_jk - load balancing Thread-Index: AceHORQjPMfsuCsPTzGp1Ue6OMBHKg== From: "Gregor Novak" To: X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C78739.14581A72 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi all, =20 I'm trying to configure mod_jk as load balancer and I was not so successful so far. =20 My environment architecture looks like this: =20 2 servers running each 3 instances of JBoss/tomcat Aplication server with ports 8080,8081 and 8082. Into each server instance I add AJP 13 protocol like this: =20 =20 redirectPort is set accordantly to the server instance. =20 For now workes.properties file looks like this: =20 worker.list=3Dworker1,worker2 =20 # Set properties for worker1 (ajp13) worker.worker1.type=3Dajp13 worker.worker1.host=3Dps1 worker.worker1.port=3D8003 worker.worker1.lbfactor=3D1 worker.worker1.connection_pool_timeout=3D600 worker.worker1.socket_keepalive=3D1 worker.worker1.socket_timeout=3D60 =20 # Set properties for worker3 (lb) which use worker1 worker.worker2.balance_workers=3Dworker1 =20 ps1 is one of the above mention servers. And for now I'm only trying to make it work one instance. =20 Apache server, which should balance and forward all the requests coming for servers, is set up on apache server located on another (3rd)machine. Httpd.conf is set like this: =20 # Load mod_jk module # Update this path to match your modules location LoadModule jk_module modules/mod_jk.so # Where to find workers.properties # Update this path to match your conf directory location (put workers.properties next to httpd.conf) JkWorkersFile conf/workers.properties # Where to put jk shared memory # Update this path to match your local state directory or logs directory JkShmFile logs/mod_jk.shm # Where to put jk logs # Update this path to match your logs directory location (put mod_jk.log next to access_log) JkLogFile logs/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevel debug # Select the timestamp log format JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " =20 When I start Apache mod_jk is loading because log file is created, but forward to application server is not working. I always get apache response and not the tomcat services on production servers.=20 =20 What else should I add into configuration files to make this configuration work. =20 Thank you all for all your help =20 Cheers=20 =20 Grega ------_=_NextPart_001_01C78739.14581A72--