Chapter 10. Tomcat Clustering

In this chapter, we detail the process of clustering Tomcat: setting up multiple machines to host your web applications. There are several significant problems related to running your web application on a single server. When your web site is successful and begins to get a high volume of requests, eventually one server computer just won't be able to keep up with the processing load. Another common problem of using a single server computer for your web site is that it creates a single point of failure. If that server fails, your site is immediately out of commission. Regardless of whether it's for better scalability or for fault tolerance, you will want your web applications to run on more than one server computer. This chapter will show you how to set up a clustered Tomcat system that does exactly that.

Warning

Clustering is an advanced topic and is not useful to everyone. Also, as of the early stable versions of Tomcat 6.0, the code that makes clustering possible is still somewhat immature and should be considered experimental code, unless you exhaustively test your installation and find it to be stable. You should perform your own testing to ensure that clustering works in your environment. However, you cannot assume that the clustering code has been comprehensively tested by anyone else, including the original authors!

Giving all of the details of clustering techniques, or even exhaustively covering how a particular clustering product works, is beyond ...

Get Tomcat: The Definitive Guide, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.