httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "vasanthakumar Lakshmanan" <vasanth.mailingl...@gmail.com>
Subject [users@httpd] Load Balancing Issue in nofailover mode with jboss
Date Tue, 10 Jul 2007 19:01:33 GMT
Hi All,

I am having problem in Load Balancing with Apache 2.2.4, my server
setup and problem statements are as follows,

I have two machines [Box1 and Box2] having Jboss4.2 GA with two server
instances [TestAdmin and Test] in both boxes. All the server instances
are in cluster. In addition, I have configured apache 2.2.4 with
mod_proxy_balancer for load balancing.

I have deployed two applications namely TestAdmin and Test in
respective server instance in both boxes. The TestAdmin is to manage
the Login; Test is to rest of the job. My primary goal of the
clustering is for load balancing not for failover. [No session
replication] and I am using Clustered SingleSignOn.

My proxy balancer configurations is as follows,

# Admin Load Balancer
<Proxy balancer://admin_loadbalancer >
   Order deny,allow
   Allow from all
   BalancerMember ajp://box1:8100/admin route=admin_1  loadfactor=10
smax=50 max=50 min=5 ttl=60
   BalancerMember ajp://box21:8100/admin route=admin_2  loadfactor=10
smax=50 max=50 min=5 ttl=60
</Proxy>

# Test Load Balancer
<Proxy balancer://test_loadbalancer >
   Order deny,allow
   Allow from all
   BalancerMember ajp://box1:8101/test route=test_1  loadfactor=10
smax=50 max=50 min=5 ttl=60
   BalancerMember ajp://box2:8101/test route=test_2  loadfactor=10
smax=50 max=50 min=5 ttl=60
</Proxy>

ProxyRequests off
ProxyPass /admin        balancer://admin_loadbalancer
lbmethod=bytraffic  nofailover=On stickysession=JSESSIONID
ProxyPass /test           balancer://test_loadbalancer
lbmethod=bytraffic  nofailover=On stickysession=JSESSIONID

The problem is when I login to the TestAdmin Application it append the
jvm route in the sessionid (e.g.: xxxxx.admin_1). When I click the
Test application related link in TestAdmin page. I am getting Service
temporarily unavailable and I am getting the error as All workers are
in error state for route (admin_1) in apache error log. It seems to be
it is expecting the admin_1 route in test_balancer but it does not
have the route.

I want to use different route for each application.

Any thoughts on this issue are welcome.

Thank you,
Vasanth

---------------------------------------------------------------------
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


Mime
View raw message