-
1. Re: mod_jk to load balance between multiple Clusters , jBoss 4.2.3
rhusar Mar 3, 2012 3:39 PM (in response to whizkid.samrat)1 of 1 people found this helpfulHi Samrat,
great question. The answer is "mod_jk domains". The domain is the concept that will allow loadbalancer to indentify which nodes to failover on to. So in your case 1->2, 2->1, 3->4 or 4->3. You will have to configure property
worker.node1.domain=group1 for your workers.
Check out this document to see how to configure https://community.jboss.org/wiki/LoadBalancingWithModjkDomainDirective
HTH,
Rado
-
2. Re: mod_jk to load balance between multiple Clusters , jBoss 4.2.3
whizkid.samrat Mar 9, 2012 11:30 PM (in response to rhusar)Thanks Radoslav for your answer , I however did figure out a parallel way of acheving the same thing. Here are my config files :
Workers.Properties :
worker.list=hrisloadbalancer,cesLoadBalancer,status
worker.template.type=ajp13
worker.template.prepost_timeout=10000
worker.template.connect_timeout=10000
worker.template.socket_connect_timeout=10000
worker.template.connection_pool_size=10
worker.node1.reference=worker.template
worker.node1.host=10.8.100.118
worker.node1.port=18009
worker.node2.reference=worker.template
worker.node2.host=10.8.100.118
worker.node2.port=28009
worker.cssonode1.reference=worker.template
worker.cssonode1.host=10.8.100.118
worker.cssonode1.port=38009
worker.cssonode2.reference=worker.template
worker.cssonode2.host=10.8.100.118
worker.cssonode2.port=48009
worker.hrisloadbalancer.type=lb
worker.hrisloadbalancer.balance_workers=node1,node2
worker.hrisloadbalancer.sticky_session=True
worker.cesLoadBalancer.type=lb
worker.cesLoadBalancer.balance_workers=cssonode1,cssonode2
worker.cesLoadBalancer.sticky_session=True
worker.status.type=status
uriworkermap.properties :
# Simple worker configuration file
# Mount the Servlet context to the ajp13 worker
/jmx-console=hrisloadbalancer
/jmx-console/*=hrisloadbalancer
/web-console=hrisloadbalancer
/web-console/*=hrisloadbalancer
/hrms=hrisloadbalancer
/hrms/*=hrisloadbalancer
# Route request to loadbalancer for CES
/CES=cesLoadBalancer
/CES/*=cesLoadBalancer