title: How to configure a high-availability cluster of MariaDB and Redis in Mesos or CoreOS
body: <p>In most tutorials, presentations and demos, only stateless services are presented that are load balanced either via DNS (SkyDNS, skydock, etc.) or via reverse proxy, such as HAproxy or Vulcand, which are configured with etcd or ZooKeeper.</p>
  
  <p>Is there a best practice for deploying a cluster of MariaDB and Redis using:</p>
  
  <ol>
  <li><p>CoreOS + fleet + Docker; or</p></li>
  <li><p>Mesos + Marathon + Docker</p></li>
  <li><p>Any other cluster management solution</p></li>
  </ol>
  
  <p>How can one configure a Redis cluster and a MariaDB cluster (Galera), when the host running Master may change?</p>
  
  <p><a href="https://github.com/sheldonh/coreos-vagrant/tree/master/redis">https://github.com/sheldonh/coreos-vagrant/tree/master/redis</a></p>
  
  <p><a href="http://www.severalnines.com/blog/how-deploy-galera-cluster-mysql-using-docker-containers">http://www.severalnines.com/blog/how-deploy-galera-cluster-mysql-using-docker-containers</a></p>