On 17.06.2010 16:33, Luis Esquivel wrote:
Hello,

I have a situation where my IIS tomcat load balancing configuration between 2 
nodes keeps switching in every single request from the same browser.
The JSESSIONID changes every time I hit refresh on the browser because it 
switches between the 2 nodes each time.

This was working at some point correctly where once a connection was 
established with a node, the connection stayed on that node until the browser 
was closed.

Has anyone seen this problem before?  Any help would be greatly appreciated.

My workers.properties file looks like this:

worker.list=loadbalancer,status

worker.template.port=8009
worker.template.type=ajp13
worker.template.lbfactor=1
worker.template.ping_mode=A
worker.template.socket_timeout=10
worker.template.connection_pool_timeout=600

worker.node1.reference=worker.template
worker.node1.host=128.1.1.30
worker.node1.cachesize=10

worker.node2.reference=worker.template
worker.node2.host=128.1.2.30
worker.node2.cachesize=10

worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=node1,node2
worker.loadbalancer.sticky_session=1

worker.status.type=status

Versions of the redirector and Tomcat?

This configuration looks very outdated. You should do yourself a favour and switch to a recent version of the redirector and also have an extended look at the example configuration that comes with the source download.

To make load balancing work, each Tomcat needs to have an individual "jvmRoute" set in server.xml and the workers in the balancers need to have names equal to the jvmRoute of the Tomcat they are pointing to. Here the worker names are "node1" and "node2", so those values should be set as jvmRoute in the respective server.xml.

Apart from that look at the redirector logs whether there are errors reported there.

Regards,

Rainer

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to