Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Docker Images for Percona Server for MySQL Group Replication

DZone's Guide to

Docker Images for Percona Server for MySQL Group Replication

Since the new Percona Server for MySQL is very new, it requires some fairly complicated steps to set up and get running.

· Performance Zone
Free Resource

Group ReplicationIn this short blog post, we’ll point to a new Docker image for Percona Server for MySQL Group Replication.

Our most recent release of Percona Server for MySQL (Percona Server for MySQL 5.7.17) comes with Group Replication plugins. Unfortunately, since this technology is very new, it requires some fairly complicated steps to set up and get running. To help with that process, I’ve prepared Docker images that simplify its setup procedures.

You can find the images here.

To start the first node (bootstrap the group):

docker run -d -p 3306 --net=clusternet -e MYSQL_ROOT_PASSWORD=passw0rd -e CLUSTER_NAME=cluster1 perconalab/pgr-57

To add nodes into the group after:

docker run -d -p 3306 --net=clusternet -e MYSQL_ROOT_PASSWORD=passw0rd -e CLUSTER_NAME=cluster1 -e CLUSTER_JOIN=CONTAINER_ID_FROM_THE_FIRST_STEP perconalab/pgr-57

You can also get a full script that starts N number of nodes.

Topics:
percona server ,mysql ,docker ,performance ,group replication

Published at DZone with permission of Vadim Tkachenko, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}