Load Balancing Issue in nofailover mode with jboss

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux