In a Cloud where multiple VMs are running and with IP addresses being dynamic (dhcp), what is the approach to set up a tomcat cluster. Kindly share your experiences and ideas.
One way I can think of is that since dhcp address range is known, the worker.properties file could be created (generated) with all IP addresses in the given range. Whichever nodes are up, they take part in the cluster.
The obvious downside to this approach is if in a particular VM there is someother server listening in port 8080, which could be mistaken for a tomcat worker node.
Kindly share your experiences and ideas.