Convert IIS / Tomcat Web Application to a multi-server environment.
Posted
by bill_the_loser
on Stack Overflow
See other posts from Stack Overflow
or by bill_the_loser
Published on 2009-07-22T23:40:35Z
Indexed on
2010/04/08
13:03 UTC
Read the original article
Hit count: 175
I have an existing web application built in .Net, running on IIS that leverages a java servlet that we have running on Tomcat 5.5. We need to scale the application and I'm confused about what relates to our situation and what we need to do to get the servlet running on multiple servers.
Right now I have 4 servers that can each individually process results, it almost seems like all I should have to do is add the ajp13 worker processes from three additional machines to the machine hosting the load balancer worker. But I can't imagine it should be that easy.
What do I need to do to distribute the Tomcat load to the extra three machines?
Thanks.
Update: The current configuration is using a workers2.properties configuration file. From all of the documentation online I have not been able to determine the distinction between the workers.properties and the workers2.properties. Most of the examples that I have found are configuring the workers.properties and revolve around adding workers and registering them in the worker.list element. The workers2.properties does not appears to have a worker.list element and the syntax is different enough between the workers.properties and the workers2.properties that I'm doubtful that I can add that element. If I just add my multiple AJP workers to the workers2.properties file do I need to worry about the apparent lack of a worker.list element?
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
group=lb
[ajp13:host2.mydomain.local:8009]
channel=channel.socket:host2.mydomain.local:8009
group=lb
[ajp13:host3.mydomain.local:8009]
channel=channel.socket:host3.mydomain.local:8009
group=lb
A couple of side notes... One I've noticed that sometime Tomcat doesn't seem to reload my changes and I don't know why. Also, I have no idea why this configuration has a workers2.properties and not a workers.properties. I've been assuming that it's based on version but I haven't seen anything to back up that assumption.
© Stack Overflow or respective owner