Quantcast
Channel: MySQL Forums - Replication
Viewing all articles
Browse latest Browse all 1561

Create Group Script (no replies)

$
0
0
Hi,

I have some doubts about the process of creating a group for Group Replication. In MySQL FAQ we have this:

"What is the group_replication_bootstrap_group option used for?
The bootstrap flag instructs a member to create a group and act as the initial seed server. The second member joining the group needs to ask the member that bootstrapped the group to dynamically change the configuration in order for it to be added to the group.
A member needs to bootstrap the group in two scenarios. When the group is originally created, or when shutting down and restarting the entire group."

So to start a Group we need to:
SET GLOBAL group_replication_bootstrap_group=ON;
START GROUP_REPLICATION;
SET GLOBAL group_replication_bootstrap_group=OFF;

After this the other servers only need to join:
START GROUP_REPLICATION;

But is there a way to automate the process of checking if there is any active group, otherwise creating one (in settings or by script)? I want to deploy this to two servers without human interference.

Thank You,
Ricardo

Viewing all articles
Browse latest Browse all 1561

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>