Horizontal clustering in Apache Tomcat 7

For horizontal clustering, we have to configure at least two instances of Apache Tomcat on two different physical or virtual systems. These physical machines can be on the same physical network. It also helps in providing a high-speed bandwidth to the system.


If you want to configure clustering on different networks, then you have to open the firewall between the two networks for the AJP port and the clustering port.

There are prerequisites for configuring horizontal clustering. The following are the details:

  • Time sync between the two servers
  • Proper network connectivity between the two servers
  • Firewall ports between the two servers (if you are connecting from a different network)

In order to configure horizontal ...

Get Apache Tomcat 7 Essentials now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.