I'm just learning Apache Mesos. I would like to run a cluster of web apps (Scala Play) integrating with a database cluster (Cassandra), managed by Mesos.
When a web app goes down or a database goes down, my understanding is that Mesos will auto restart the service. But the problem is that the service may be restarted on a different node in the cluster.
If the DB goes down, and Mesos restarts the DB on another node in the cluster, how would the web app know where to connect to the new DB instance?
What are the pro's and con's of using Mesos to run a cluster of web apps with databases?