Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Changed convention of tomcat letters to numbers to match port numbers used.

...

In the above case are creating a worker called tomcat_0_worker for a web application to connect to TomcatA Tomcat0 which will run in the www.krypton.com virtualhost. Notice the host=localhost line in yellow. This should point to the server that Tomcat is running on. In this case, we are have Apache and Tomcat on the same server so we use localhost.

...

The load balancing uses weighted round-robin with sticky sessions. The lower the lbfactor number the less weight and as such the less work done by the worker. In our example, since both TomcatA Tomcat0 and TomcatB Tomcat1 have a factor of 1 the load balance is split about 50/50.

...

First verify that you can hit the examples application without mod_jk by directly hitting the TomcatA Tomcat0 server running on port 8080.

...

If you wanted to use the load balancer you would change TomcatA Tomcat0 to loadbalancer.

Restart Apache

...