You are looking at the documentation of a prior release. To read the documentation of the latest release, please
visit here.
New to KubeDB? Please start here.
MySQL Replication Mode Transform
This guide will give an overview on how KubeDB Ops Manager transform replication mode of MySQL. Currently, you can transform remote replica to group replication.
Before You Begin
- You should be familiar with the following
KubeDBconcepts:
How Replication Mode Transform Process Works
The following diagram shows how KubeDB Ops Manager transform replication mode of MySQL database components. Open the image in a new tab to see the enlarged version.
The Replication Mode Transform process consists of the following steps:
At first, a user creates a
MySQLCustom Resource (CR).KubeDBprovisioner operator watches theMySQLCR.When the operator finds a
MySQLCR, it creates requiredPetSetand related necessary stuff like secrets, services, etc.Then, in order to transform replication mode of the
MySQLdatabase the user creates aMySQLOpsRequestCR with desired information.KubeDBops-manager operator watches theMySQLOpsRequestCR.When it finds a
MySQLOpsRequestCR, it pauses theMySQLobject which is referred from theMySQLOpsRequest. So, theKubeDBprovisioner operator doesn’t perform any operations on theMySQLobject during the mode transform process.Then the
KubeDBops-request operator will transform replication mode to reach the expected replication mode defined in theMySQLOpsRequestCR.After the successful transformation of replication mode of the MySQL database, the
KubeDBops-request operator updates the new replication mode in theMySQLobject to reflect the updated state. After that, theKubeDBops-request operator resumes theMySQLobject so that theKubeDBprovisioner operator resumes its usual operations.
In the next docs, we are going to show a step-by-step guide on transform replication mode of various MySQL database using MySQLOpsRequest CRD.






























