13.4.2.11 Functions which Configure the Source List配置源列表的函数

The following functions, which are available from MySQL 8.0.22 for standard source to replica replication and from MySQL 8.0.23 for Group Replication, enable you to add and remove replication source servers from the source list for a replication channel. 以下功能可用于MySQL 8.0.22中的标准源到副本复制,以及MySQL 8.0.23中的组复制,使您能够从复制通道的源列表中添加和删除复制源服务器。The asynchronous connection failover mechanism automatically establishes an asynchronous (source to replica) replication connection to a new source from the appropriate list after the existing connection from the replica to its source fails. 异步连接故障切换机制会在副本与其源之间的现有连接失败后,自动从相应列表中建立到新源的异步(源到副本)复制连接。From MySQL 8.0.23, the connection is also changed if the currently connected source does not have the highest weighted priority in the group. 从MySQL 8.0.23开始,如果当前连接的源在组中没有最高的加权优先级,则连接也会更改。For Group Replication source servers that are defined as part of a managed group, the connection is also failed over to another group member if the currently connected source leaves the group or is no longer in the majority. 对于定义为受管组一部分的组复制源服务器,如果当前连接的源离开组或不再占多数,则连接也会故障转移到另一个组成员。For more information on the mechanism, see Section 17.4.9, “Switching Sources with Asynchronous Connection Failover”.有关该机制的更多信息,请参阅第17.4.9节,“使用异步连接故障切换切换源”

The source lists are stored in the mysql.replication_asynchronous_connection_failover and mysql.replication_asynchronous_connection_failover_managed tables, and can be viewed in the Performance Schema table replication_asynchronous_connection_failover.源列表存储在mysql.replication_asynchronous_connection_failovermysql.replication_asynchronous_connection_failover_managed表中,可以在性能模式表replication_asynchronous_connection_failover中查看。