From the course: Java EE: Application Servers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Tomcat clustering

Tomcat clustering

From the course: Java EE: Application Servers

Start my 1-month free trial

Tomcat clustering

- [Instructor] Web application server clustering offers some nice benefits in sharing user session when combined with load balancing, thus providing scalability and high availability of the application to its users. Although it's pretty common to talk about load balancing using Apache HTTP Server, or some other load balancing appliance like BIG-IP, for this video we're going to stay focused on how to cluster two Tomcat servers, and not necessarily on load balancing. First, let's create a directory in our terminal window, we'll call this our tomcat9_cluster, we'll cd into the tomcat_9 cluster, and then we're going to copy our apache Tomcat 9 directory into our cluster directory, and we'll call it, node_a. Then we're going to copy, again using the -Rf node_a, and we'll call this one node_b, if we do a ls -la on node_b, you'll notice that all of the Tomcat configuration directories are available. With this done, we ar going to modify the port in our node_b server XML file. We'll do this…

Contents