Apache Load Balancing issue using in clusterenvionment of tomcat.

This is a discussion on Apache Load Balancing issue using in clusterenvionment of tomcat. within the Apache forums in Application Servers & Tools category; Hi All, i am doing clustering with load balance environment and got stuck with an issue. can anyone please help me ... below is scenario. i have two servers running tomcat 1 and 2 (running in cluster)and apache is on server with tomcat 1. here is load balancing entries. <Proxy balancer://ajpcluster > BalancerMember ajp://127.0.0.1:8009 route=tomcat1 loadfactor=100 BalancerMember ajp://192.168.0.5:8009 route=tomcat2 status=+H </Proxy> ProxyPass /vopium/ balancer://ajpcluster/vopium/ ProxyPassReverse /vopium/ balancer://ajpcluster/vopium/ when i make tomcat 1 down then all hits transfers to tomcat 2 with no delay with same session state. but after that when i make tomcat1 up and tomcat 2 down then ...

Go Back   Application Development Forum > Application Servers & Tools > Apache

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 11-10-2008, 02:39 AM
kashif_tomcat
Guest
 
Default Apache Load Balancing issue using in clusterenvionment of tomcat.


Hi All,

i am doing clustering with load balance environment and got stuck with an
issue. can anyone please help me ... below is scenario.

i have two servers running tomcat 1 and 2 (running in cluster)and apache is
on server with tomcat 1.
here is load balancing entries.

<Proxy balancer://ajpcluster >
BalancerMember ajp://127.0.0.1:8009 route=tomcat1 loadfactor=100
BalancerMember ajp://192.168.0.5:8009 route=tomcat2 status=+H
</Proxy>
ProxyPass /vopium/ balancer://ajpcluster/vopium/
ProxyPassReverse /vopium/ balancer://ajpcluster/vopium/

when i make tomcat 1 down then all hits transfers to tomcat 2 with no delay
with same session state. but after that when i make tomcat1 up and tomcat 2
down then it shows me Service Temporarily Unavailable for at least 15 or
more seconds and in apache error logs i get following message

[error] ap_proxy_connect_backend disabling worker for (192.168.0.5)
[error] proxy: AJP: failed to make connection to backend: 192.168.0.5
[error] proxy: BALANCER: (balancer://ajpcluster). All workers are in error
state
[error] proxy: BALANCER: (balancer://ajpcluster). All workers are in error
state (EVEN tomcat 1 is up and running)

and after 15 or more seconds apache sends all hits to tomcat 1 and session
starts from same position with no screen crashing.

now if i use following entries

<Proxy balancer://ajpcluster >
BalancerMember ajp://192168.0.5:8009 route=tomcat2 loadfactor=100
BalancerMember ajp://127.0.0.1:8009 route=tomcat1 status=+H
</Proxy>

then i get reverse results. means if 2 is down then apache moves to tomcat 1
with no delay with same session state but after that if 2 gets up and 1 gets
down then it takes 15 or more seconds to switch to tomcat 2 with same
session state while showing Service Temporarily Unavailable for that time
period.


now if i use following enrtries

<Proxy balancer://ajpcluster >
BalancerMember ajp://127.0.0.1:8009 route=tomcat1 loadfactor=50
BalancerMember ajp://192.168.0.5:8009 route=tomcat2 loadfactor=50
</Proxy>


then it always take some time to switch to any other server. means if 1 gets
down with 2 is up then for some time Service Temporarily Unavailable and
then session starting from same position from tomcat2. and if 2 gets down
with 1 is up then again for some time Service Temporarily Unavailable page
and then session starting from same position from tomcat1.




i have tried different ways too but no success. i ll be very thankful to
anyone how can help me in this regard.

Thanks in anticipation
Kashif
--
View this message in context: http://www.nabble.com/Apache-Load-Ba...p20415537.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 07:35 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.