This artical marked the way we scale up Fabflix to handle massive amounts of traffic by using a cluster of MySQL and Tomcat. Since the user would have only one entry point to Fabflix, then we need to use a load balancer to balance the traffic from one entry point to multiple Fabflix instances.
Step 1 (master/slave):
Create a dummy user for the two example Tomcat applications below:
1 | shell> mysql -u root -p |
Step 2 (master/slave):
Setup Tomcat on each master/slave instance.
Step 3 (master/slave):
On each master/slave instance, deploy TomcatTest.war. Make the URL http://PUBLIC_IP:8080/TomcatTest/servlet/TomcatTest work. You may need to modify the username/password and IP address (use the internal AWS instance address). Also make sure to modify the AWS security group setting for these two instances to allow remote access to their 8080 port.
more >>