Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 56109 invoked from network); 15 May 2002 09:09:04 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 15 May 2002 09:09:04 -0000 Received: (qmail 20568 invoked by uid 97); 15 May 2002 09:09:11 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 20547 invoked by uid 97); 15 May 2002 09:09:10 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 20535 invoked by uid 98); 15 May 2002 09:09:10 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <3CE225B3.3030208@schlund.de> Date: Wed, 15 May 2002 11:09:07 +0200 From: Bernd Koecke Organization: Schlund+Partner User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc2) Gecko/20020510 X-Accept-Language: de, en MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: cvs commit: jakarta-tomcat-connectors/jk/native2/common jk_worker_lb.c References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N costinm@covalent.net wrote: > On Tue, 14 May 2002, Bernd Koecke wrote: > > >>Hi Costin, >> >>the new patch seems to work, but I'll test it more exactly tomorrow. Then I'll >>create the patches and the functional description. >> >>In short, the patched lb_worker uses an additinal flag on the other workers (e.g >>worker.ajp13.local_worker=1) to determine if it should be moved to the beginning >>of the balanced_workers. So we don't need to deal with two lists in lb_worker >>and the lb_value '0' has no special meaning. The flag for sending requests only >>to local workers is 'local_worker_only' on the lb_worker. More when the patch is >>tested and ready. > > > Ok. I already commited part of the changes for jk2 - but my version is > called 'hwBalanceErr', on worker_lb. > > If 0 normal selection of non-local workers takes place if all locals are > in error state. If non 0, we'll return the value as the error code - for > a front-end balancer to detect and stop forwarding requests for this > instance. > > I think that's the behavior you need - and it also allows customization > for the returned error code. > That sounds great, many thanks! The patch for jk1 is on the way and I added some explanation how it works and about the two config flags. Bernd > Costin > > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > -- Dipl.-Inform. Bernd Koecke UNIX-Entwicklung Schlund+Partner AG Fon: +49-721-91374-0 E-Mail: bk@schlund.de -- To unsubscribe, e-mail: For additional commands, e-mail: