Where the open source database community meets: Use code PERCONA75 and secure your spot for Percona Live.  Register

Docker Images for Percona Server for MySQL Group Replication

February 15, 2017
Author
Vadim Tkachenko
Share this Post:

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

0 0 votes
Article Rating
Subscribe
Notify of
guest

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

Thanks a lot indeed.

Seo
Seo
9 years ago

Does TokuDB work with group replication?

Kata
Kata
9 years ago

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

Ramesh
9 years ago

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)
$

Far
Enough.

Said no pioneer ever.
MySQL, PostgreSQL, InnoDB, MariaDB, MongoDB and Kubernetes are trademarks for their respective owners.
© 2026 Percona All Rights Reserved