• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat Native Load Balancer - sticky setting not working

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I am trying to set up load balancing for an application that utilizes tomcat 5.5 (two tomcat sessions on one server). I was able to get the LB working, confirmed by the "STATUS" page. I also created a "HELLO FROM TOMCATx" on each server and saw it switch back and forth from 1 and 2 upon hitting each browser refresh.

I am having problems with the application, and I think the problem is related to the session not sticking to the same tomcat server that did the authentication. I configured the environment with sticky session enabled, but it doesn't seem to work. I would expect that if it was working, refreshing the browser would always show the same response "HELLO FROM TOMCAT1" or "HELLO FROM TOMCAT2". It that correct?

Here is my workers.properties file:

=========================

worker.list=balancer,stat

worker.tomcat1.type=ajp13
worker.tomcat1.port=8109
worker.tomcat1.host=myserver.mydomain.com

worker.tomcat2.type=ajp13
worker.tomcat2.port=8209
worker.tomcat2.host=myserver.mydomain.com

worker.balancer.type=lb
worker.balancer.balance_workers=tomcat1,tomcat2

worker.stat.type=status
worker.balancer.sticky_session=1

=============================

I have the AJP port configured on each server.xml file and the jvmRoute="tomcat1" or jvmRoute="tomcat2" respectively.

Let me know if you have any thoughts or comments about what I am doing wrong here.

Thank you,
M.Mosley
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic