tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luis Esquivel <LEsqui...@copera.org>
Subject RE: Connector IIS7 Load balancing Issue (workers.properties)
Date Thu, 17 Jun 2010 22:02:59 GMT
Rainer, 

You are right. I had an error in the jvmroute hence my problem.  Once I put the correct node
it worked.

Thank you for taking the time to respond.

-----Original Message-----
From: Rainer Jung [mailto:rainer.jung@kippdata.de] 
Sent: Thursday, June 17, 2010 9:54 AM
To: Tomcat Users List
Subject: Re: Connector IIS7 Load balancing Issue (workers.properties)

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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


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


Mime
View raw message