MySQL 9.0 发行说明
以下函数使您能够检查和配置组可以并行执行的最大一致性实例数。
group_replication_get_write_concurrency()检查组可以并行执行的最大一致性实例数。
语法
INT group_replication_get_write_concurrency()此函数没有参数。
返回值
当前为组设置的最大一致性实例数。
示例
SELECT group_replication_get_write_concurrency()有关更多信息,请参见 第 20.5.1.3 节,“使用组复制组写入一致性”。
group_replication_set_write_concurrency()配置组可以并行执行的最大一致性实例数。使用此函数需要
GROUP_REPLICATION_ADMIN权限。语法
STRING group_replication_set_write_concurrency(instances)参数
members: 设置组可以并行执行的最大一致性实例数。默认值为 10,有效值为 10 到 200 之间的整数。
返回值
任何出现的错误,以字符串形式。
示例
SELECT group_replication_set_write_concurrency(instances);有关更多信息,请参见 第 20.5.1.3 节,“使用组复制组写入一致性”。