重点:
GR中第1台必须使用group_replication_bootstrap_group=on 之后,手工start group_replication,自举创建第一个GR资源视图。随后的第2+台万万不可再使用该参数!
-
Configuring
group_replication_bootstrap_group
instructs the plugin whether to bootstrap the group or not. In this case, even though s1 is the first member of the group we set this variable to off in the option file. Instead we configuregroup_replication_bootstrap_group
when the instance is running, to ensure that only one member actually bootstraps the group.ImportantThe
group_replication_bootstrap_group
variable must only be enabled on the first server instance bootstraps a group at a point time, usually the first time you bootstrap the group (or in case the entire group is brought down and back up again). If you bootstrap the group multiple times, for example when multiple server instances have this option set, then they could create an artificial split brain scenario, in which two distinct groups with the same name exist. Always setgroup_replication_bootstrap_group=off
after the first server instance comes online.
Group Replication Configuration for all servers in the group is quite similar!
You need to change the specifics about each server (for example server_id
, datadir
, group_replication_local_address
).