[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Tomcat Load Balancing Confusion

  • Thread starter Thread starter christian.bryan@capita.co.uk
  • Start date Start date
Status
Not open for further replies.
C

christian.bryan@capita.co.uk

Guest
I have got this working now. My issue was that i misunderstood the Tomcat clustering and the Load Balancing which are independent of each other, My setup now has: 1. Apache HTTPD web server with Mod_JK installed and a virtual 'lb' and 'status' instances with a worker.properties file containing PAS instances with their respective AJP ports. 2. I have clustered my PAS instances and they are replicating sessions between each other for this you need to turn on AJP and Clustering on each PAS instances and make sure they share the same multicast address and port, all settings are in the catalina.properties file. Once you have clustering working and you can test this without a load balancer, you can then test with the load balancer. I then set the following in the worker.properties: # # Load balancer directives # CJB remember to turn off sticky sessions and let the clustering support session replication # worker.lb.type=lb worker.lb.balance_workers=OneFormBlue,OneForm worker.lb.sticky_session=true worker.lb.sticky_session_force=false worker.lb.method=Request The key here is that i am using sticky sessions but i am not forcing them, which means if one of PAS instances goes down the Load Balancer will recognize this and move the request on to another PAS instance. I am doing this with the JSDO and FORM based pas instances, but its easy enough to test in POSTMAN.

Continue reading...
 
Status
Not open for further replies.
Back
Top