Group ReplicationIn this 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 setup and get running. To help with that process, I’ve prepare Docker images that simplify its setup procedures.

You can find the image here: https://hub.docker.com/r/perconalab/pgr-57/.

To start the first node (bootstrap the group):

To add nodes into the group after:

You can also get a full script that starts “N” number of nodes, here: https://github.com/Percona-Lab/percona-docker/blob/master/pgr-57/start_node.sh

 

4 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
james

Thanks a lot indeed.

Seo

Does TokuDB work with group replication?

Kata

How to start using “docker service” / swarm with replicas ?

Ramesh

We also created a script which allows starting group replication from a binary tarball base directory (this does not use Docker). The startup.sh script is available in the Percona-QA/percona-qa github repository

Change your_group_replication_basedir to the Group Replication basedir in the below. startup.sh will generate a GR startup script called start_group_replication;

$ cd ~
$ git clone https://github.com/Percona-QA/percona-qa
$ cd your_group_replication_basedir
$ ~/percona-qa/startup.sh
Adding scripts: start | start_group_replication | start_valgrind | start_gypsy | stop | kill | setup | cl | test | init | wipe | all | prepare | run | measure | tokutek_init
Setting up server with default directories
[..]
consider switching off the –initialize-insecure option.
Done! To get a fresh instance at any time, execute: ./all (executes: stop;wipe;start;sleep 5;cl)
$