Group Replication operates either in single-primary mode or in
multi-primary mode. The group's mode is a group-wide configuration
setting, specified by the
system variable, which must be the same on all members.
ON means single-primary mode, which is the
default mode, and
OFF means multi-primary mode.
It is not possible to have members of the group deployed in
different modes, for example one member configured in
multi-primary mode while another member is in single-primary mode.
You cannot change the value of
manually while Group Replication is running. From MySQL 8.0.13,
you can use the
UDFs to move a group from one mode to another while Group
Replication is still running. These UDFs manage the process of
changing the group's mode and ensure the safety and consistency of
your data. In earlier releases, to change the group's mode you
must stop Group Replication and change the value of
on all members. Then carry out a full reboot of the group (a
bootstrap by a server with
to implement the change to the new operating configuration. You do
not need to restart the servers.
Regardless of the deployed mode, Group Replication does not handle client-side failover. That must be handled by a middleware framework such as MySQL Router 8.0, a proxy, a connector, or the application itself.