Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 18928 invoked from network); 31 Jul 2003 18:08:09 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 31 Jul 2003 18:08:09 -0000 Received: (qmail 10410 invoked by uid 97); 31 Jul 2003 18:10:45 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 10403 invoked from network); 31 Jul 2003 18:10:44 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 31 Jul 2003 18:10:44 -0000 Received: (qmail 16461 invoked by uid 500); 31 Jul 2003 18:07:33 -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 16401 invoked from network); 31 Jul 2003 18:07:33 -0000 Received: from unknown (HELO wbmail.guidestar.org) (209.96.199.2) by daedalus.apache.org with SMTP; 31 Jul 2003 18:07:33 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: CiscoLB jk2 problem Date: Thu, 31 Jul 2003 14:07:28 -0400 Message-ID: <24A8596C44DF4F4DA442CBE269C351BD6B6446@wbmail.guidestar.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: CiscoLB jk2 problem Thread-Index: AcNH40NQDvcOvX8qQsqN8G91U9PfFwPqH9Hw From: "Angus Mezick" To: "Tomcat Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I need to let apache fail nicely when a tomcat instance has crashed, been stopped or is being restarted. Right now this is what happens through the jk2 connector: I stop apache: 10061 - Connection refused I stop one tomcat webapp: HTTP Status 404 I stop the tomcat server: 500 Internal Server Error Directly to tomcat: I stop apache: Nothing happens, not using it :) I stop one tomcat webapp: HTTP Status 404 I stop the tomcat server: 10061 - Connection refused I would like to see apache return 10061 - Connection refused when I stop tomcat instead of error 500 because this can cause problems with the cisco load balancer noticing that a server has dropped out of the loop. We are doing a simple one apache <-> one tomcat setup on 6 machines that are HW load balanced. Each tomcat has multiple webapps each accessible through a virtual host. Do I just need to switch to JNI? My current workers2.properties: only at beginnin. In production uncomment it out [logger.apache2] level=3DDEBUG [shm] file=3D/ApacheGroup/Apache2/logs/jk2.shm size=3D1048576 # Example socket channel, override port and host. [channel.socket:localhost:8009] port=3D8009 host=3Dwbdevweb5.guidestar.net # define the worker [ajp13:localhost:8009] channel=3Dchannel.socket:localhost:8009 # define the worker [status:status] # Uri mapping [uri:/jkstatus/*] worker=3Dstatus:status # Uri mapping [uri:wwwwbdevweb5.guidestar.net/*] worker=3Dajp13:localhost:8009 [uri:wwwwbdevweb5/*] worker=3Dajp13:localhost:8009 My jk2.properties: handler.list=3DchannelSocket,request channelSocket.port=3D8009 --Angus --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org