暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

Deploying InnoDB ReplicaSet

原创 忘忧草 2022-08-15
243

You deploy InnoDB ReplicaSet in a similar way to InnoDB Cluster.

Configure at least two MySQL server instances, see Section 6.1, “Using MySQL AdminAPI”:

One functions as the primary, in the following example, rs-1.

The other instance functions as the secondary, in this tutorial rs-2, which replicates the transactions applied by the primary.

This asynchronous MySQL replication, using source and replica, is similar to InnoDB Cluster. The procedure is described at Deploying a Production InnoDB Cluster.

Connect to the instances using MySQL Shell, and configure each instance you will use in your ReplicaSet before creating a ReplicaSet.

When creating an InnoDB ReplicaSet using MySQL Shell 8.0.28 and later, if you have security requirements that want all accounts created automatically by AdminAPI to have strict authentication requirements, you can set a value for the replicationAllowedHost configuration option of the ReplicaSet.

Once you have created the ReplicaSet, you can add instances to it. For more information, see Adding Instances to a ReplicaSet.

InnoDB ReplicaSet is compatible with sandbox instances, which you can use to deploy locally for testing purposes. See Section 6.8.1, “Deploying Sandbox Instances” for instructions. However, this tutorial assumes you are deploying a production InnoDB ReplicaSet, where each instance is running on a different host.

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论