Containerize MySQL for HA
authorDamien Ciabrini <dciabrin@redhat.com>
Mon, 10 Apr 2017 14:43:09 +0000 (14:43 +0000)
committerDamien <dciabrin@redhat.com>
Wed, 24 May 2017 19:52:40 +0000 (15:52 -0400)
commit0bfadacc7470dd4898ba7c234515e3cc00126881
treee28579dfec4f3242d8fc56b9f8bdce8315187de2
parentd0696b9a9b3685f8215c97111814d6f00932ca57
Containerize MySQL for HA

This service allows configuring and deploying MySQL/galera containers
in a HA overcloud managed by pacemaker.

The containers are managed and run by pacemaker. Inside there is
pacemaker_remote which will invoke the resource agent managing galera.
The resources themselves are created via puppet-pacemaker inside a
short-lived container used for this purpose (mysql_init_bundle).
This container needs to use the 'docker_config' section to invoke
puppet (as opposed to 'docker_puppet_tasks'), because due to the HA
composability each resource creation needs to happen on the bootstrap
node of that service and 'docker_puppet_tasks' will only run on the
controller/primary role.

Co-Authored-By: Michele Baldessari <michele@acksyn.org>
Closes-Bug: #1692842

Depends-On: I3b4d8ad2eec70080419882d5d822f78ebd3721ae

Change-Id: I790dbc30b3de1c1a3fe76d3d8f060e4d7f95e2e7
docker/services/pacemaker/database/mysql.yaml [new file with mode: 0644]