background preloader

In Docker Containers

Facebook Twitter

How to Deploy Galera Cluster for MySQL using Docker Containers. Paulczar/docker-percona_galera. Docker - How to configure a high-availability cluster of MariaDB and Redis in Mesos or CoreOS. Ansible provisioning of a Galera Cluster (Percona XtraDB Cluster) Galera replication has been very useful for having a relatively simple to set up and manage a MySQL HA database backend for various platform services at HP.

Ansible provisioning of a Galera Cluster (Percona XtraDB Cluster)

Asynchronous replication is fine, it's just that for complex cloud systems, a simple solution is desired for replication and asynchornous replication would require PRM (corosync/pacemaker). Over the past two years, I've worked with both SaltStack and Chef for provisioning galera clusters. Each had its challenge but they both had some things in common, particularly the issue having to do with bootstrapping the first node and subsequently bring up the other nodes, each with a successively augmented list of member nodes (other than ones self) for wsrep_cluster_address, and then finally updating the first bootstrap node to have a properl list versus There have been a few projects I've been analyzing since working for HP ATG (Advanced Technology Group). Two of those have been Docker and the other Ansible. How it works Requirements: Credits. MariaDB Galera on a Mesos Cluster with Docker.

Building on top of Erkan Yanar's work of packaging and running Galera in Docker containers (Github project) on Giant Swarm, I concluded that also Galera and Mesos in connection with Mesosphere's Marathon should be great fit.

MariaDB Galera on a Mesos Cluster with Docker

Erkan convinced me that Galera's cluster join+quorum logic makes it really suitable for a dynamic environment like a Mesos cluster. The main properties compared to other much more static distributed system - hello Redis, hello Mongo – are the following: Galera cluster logic does not depend on the history, but only on the last state and the new state.Galera nodes are all equalGalera nodes cleanly leave a cluster on SIGTERM and are then just forgotten by the other nodes (read: do not count to the quorum anymore). Especially the first property means that quorum calculations are done ad-hoc when necessary. The required size of a surviving partition during a network split changes when nodes leave cleanly or join the cluster. Seeding a cluster and join nodes Health Checks. Building a MariaDB Galera Cluster with Docker. DominicBoettger/docker-mariadb-galera.

Docker: Containers for the Masses. And now we return to our previously-scheduled blog series "Docker: Containers for the Masses".

Docker: Containers for the Masses

To bring the reader up to speed with what episodes have already aired: Introduction -- this episode introduced the reader to the storyline and characters: what are containers, how they work containers vs. virtual machines, what is Docker.Installation -- this episode featured information about installing Docker In today's episode, the real excitement begins with actually using Docker. The reader will be shown how to perform tasks with Docker, how to build images by hand, and using a Dockerfile to build Docker images.

Also starring in this episode are images that a user can build that have services running as well as ENTRYPOINT and CMD instructions. The Docker CLI The Docker CLI, the tool that one uses to interact with Docker, is very intuitive and has a well-documented help facility that can simply be invoked by running: For instance, if one were to need to find out the options on building images: Yet another way to use Ansible to build Docker images. Good Monday morning!

Yet another way to use Ansible to build Docker images

Over the weekend, there was a comment to my previous post covering using Ansible to build Docker images from Michael DeHaan, CTO and creator of Ansible (thank you!) Reminding me of his work discussed in his blog post Installing and Building Docker with Ansible that is definitely worth sharing and the method I first used to build Docker images and wrote my first role that will be shared in this post. For the reader just joining, the previous posts in this series "Docker: Containers for the Masses" are: Crypticmind/mariadb-galera · GitHub. Kudotty/ansible-dockercontainers-devops · GitHub.