Wrox Home  
Search P2P Archive for: Go

  Return to Index  

apache_tomcat thread: Load-Balancing & Failover...


Message #1 by "Franck" <Franck@p...> on Mon, 10 Mar 2003 10:13:54
Hi

I'm currently testing the Load-Balancing & Failover possibilities of 
Tomcat and i came to the conclusion that something goes wrong with the 
Failback...

Actually, I tried to apply the "Tomcat Load Balancing with Apache" section 
of the book (p.273) using :

Server #1 (Win2000)
- Apache/1.3.27
- mod_jk/1.1.0 
- Tomcat/4.1.18

Server #2 (Win2000)
- Tomcat/4.1.18

HTTP requests are send to server #1's Apache.
Talking about load-balancing, everthing is Ok. Requests to dynamic pages 
are processed by both Tomcat servers according to the lbFactor (50/50)

Then I stop server #2.
The next HTTP request takes a few seconds to be proceed. I guess this is 
normal, since the load-balancer has to analyse the situation and determine 
that server #2 is no more available.

The problem is that when I re-start the 2nd server, load-balancer ignore 
it and requests are still proceed 100% by server #1.

I have to re-start the Apache/HTTP server to make the load-balancing 
working again...

Did someone tried this test and note the same results ?
Do you think there is something else to configure to be sure that the load-
balancer determine servers availability on the fly ?

Thanx

--
Franck
Message #2 by "Franck" <Franck@p...> on Mon, 10 Mar 2003 14:46:01
After setting-up an automatic refresh of my page, it appeared that it 
takes up to 5/6 minutes to the load-balancer to concider the 2nd server as 
alive after the restart !

Whaoo, pretty strange behaviour... :)
Hope this feature can be modify somewhere in a the configuration file !
I keep on searching....

--
Franck

  Return to Index