Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To keep the example simple I have not added load balance support yet. If you want load do load balancing with a second tomcat instance, a simple configuration would look like this,

...

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 tomcat a TomcatA and b TomcatB have a factor of 1 the load balance is split about 50/50.

...

Look for this block and comment out.

Code Block
languagebash
# Tin: This directory does not exist.
#
# workers.java_home=/usr/lib/jvm/java-gcj

...

This last step will be different depending on if you are using virtual hosts or not.

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

...