I recently came across this article, discussing how to leverage mod_cluster to create dynamic Tomcat clusters. My company is about to take our first leap into Amazon’s EC2 cloud, and will be deploying our application on Tomcat 7. We’d like to take advantage of mod_cluster so that we can dynamically scale our application as traffic increases. EC2, however, does not support the use of multicast, which is how this document has you configure your cluster setup.
Has anyone setup mod_cluster for dynamic Tomcat clusters in the EC2 environment? I saw a small mention of leveraging S3 for storing information about the cluster members, but couldn’t find any documentation explaining how to do it. Has anyone seen any good docs or tutorials on the subject? Personal experience? I’d appreciate any insight you can give me.
Consider using of jbossas 7. I Think is easier to configure and more suitable for clustering, especially in the cloud.
And you can use mod_cluster 😉
Here the cluster tutorial: https://docs.jboss.org/author/display/AS71/AS7+Cluster+Howto