Session 7 Questions
Session 7 Questions
html
However, moments later there is a catastrophic failure and servers s3, s4 and s5 stop
unexpectedly. A few seconds after this, looking again at
the replication_group_members table on s1 shows that it is still online, but several others
members are not. In fact, as seen below they are marked as UNREACHABLE. Moreover, the
system could not reconfigure itself to change the membership, because the majority has
been lost.
mysql> SELECT MEMBER_ID,MEMBER_STATE FROM
performance_schema.replication_group_members;
+--------------------------------------+--------------+
| MEMBER_ID | MEMBER_STATE |
+--------------------------------------+--------------+
| 1999b9fb-4aaf-11e6-bb54-28b2bd168d07 | UNREACHABLE |
| 199b2df7-4aaf-11e6-bb16-28b2bd168d07 | ONLINE |
| 199bb88e-4aaf-11e6-babe-28b2bd168d07 | ONLINE |
| 19ab72fc-4aaf-11e6-bb51-28b2bd168d07 | UNREACHABLE |
| 19b33846-4aaf-11e6-ba81-28b2bd168d07 | UNREACHABLE |
+--------------------------------------+--------------+
The table shows that s1 is now in a group that has no means of progressing without
external intervention, because a majority of the servers are unreachable. In this
particular case, the group membership list needs to be reset to allow the system to proceed,
which is explained in this section. Alternatively, you could also choose to stop Group
Replication on s1 and s2 (or stop completely s1 and s2), figure out what happened
with s3, s4 and s5 and then restart Group Replication (or the servers).
dev.mysql.com/doc/mysql-shell/8.0/en/reboot-outage.html
https://dev.mysql.com/doc/mysql-router/8.0/en/mysqlrouter.html#option_mysqlrouter_bootstrap
The main option to perform a bootstrap of MySQL Router by connecting to the InnoDB
Cluster metadata server at the URI provided. MySQL Router configures itself based on the
information retrieved from the InnoDB Cluster metadata server.
https://dev.mysql.com/doc/mysql-shell/8.0/en/mysql-innodb-cluster-securing.html
The SSL mode of a cluster can only be set at the time of creation
REQUIRED: Enable SSL encryption for the seed instance in the cluster. If it cannot be enabled,
an error is raised.
https://dev.mysql.com/doc/refman/8.0/en/stop-group-replication.html
(MISSING): The state of an instance which is part of the configured cluster, but
is currently unavailable.
Note
The MISSING state is specific to InnoDB Cluster, it is not a state generated by
Group Replication. MySQL Shell uses this state to indicate instances that are
registered in the metadata, but cannot be found in the live cluster view.
dev.mysql.com/doc/refman/8.0/en/group-replication-system-
variables.html#sysvar_group_replication_consistency
o BEFORE_ON_PRIMARY_FAILOVER
New RO or RW transactions with a newly elected primary that is applying backlog
from the old primary are held (not applied) until any backlog has been applied. This
ensures that when a primary failover happens, intentionally or not, clients always see
the latest value on the primary. This guarantees consistency, but means that clients
must be able to handle the delay in the event that a backlog is being applied. Usually
this delay should be minimal, but does depend on the size of the backlog.