Re: jk_lb_worker.c patch

2002-05-06 Thread costinm
Hi Bernd, It's great having you and Mathias working on this - I'll try to find a way to combine the 2 patches. I think it's best to have the minimum amount of modifications in jk1 to get things working. For jk2 I think we should do what's most flexible and powerfull - even if it requires bigge

Re: jk_lb_worker.c patch

2002-05-06 Thread Bernd Koecke
Hi Costin, here is my patch for jk_lb_worker.c, jk_util.c and jk_util.h. It was diffed against the cvs. How does it work? 1) A new config param for lb_worker exists (main_worker_mode). Two values are possible: reject and balance. 2) This results in two new flags in lb_worker struct. If there

Re: jk_lb_worker.c patch

2002-05-06 Thread Bernd Koecke
Hi Costin, at the moment I'm testing my patch and it seems to work. I'll send it soon with an explanation what I did. It's not the same as Mathias did. I used the 0 value and one additional config flag which results in two flags in lb_worker struct. But I think your suggestion for jk2 is the b

Re: jk_lb_worker.c patch

2002-05-06 Thread costinm
Bernd, At this moment I believe we should add flags and stop using the '0' value in the config file. Internally ( in the code ) - it doesn't matter, we can keep 0 or use the flag ( I prefer the second ). I'm waiting for your patch - it seems there is another bug that must be fixed before we ca

Re: jk_lb_worker.c patch

2002-05-06 Thread Bernd Koecke
Hi Costin, thanks for commiting my patch :). After thinking about it, I found the same problem like Mathias. It's a problem for my environment too. We have the same problem with shutdown and recovering here. I'm on the way of looking in jk2. The question for jk1 is, what want we do if the main

Re: jk_lb_worker.c patch

2002-05-04 Thread costinm
Hi Mathias, I think we understand your use case, it is not very uncommon. In fact, as I mentioned few times, it is the 'main' use case for Apache ( multi-process ) when using the JNI worker. In this case Apache acts as a 'natural' load-balancer, with requests going to various processes ( more or

Re: jk_lb_worker.c patch

2002-05-04 Thread Mathias Herberts
Hi, I included the thread that started via email so the list can follow on. The setup I use is the following, a load balancer (Alteon) is in front of several Apache servers, each hosted on a machine which also hosts a Tomcat. Let's call those Apache servers A1, A2 and A3 and the associated Tomca