Create a MySQL sync cluster
Create a cluster
-
In the Dashboard, on the top menu, click Products and select Managed Databases.
-
Click Create cluster.
-
Enter a cluster name.
-
Select a location. The location cannot be changed after the cluster is created.
-
Select a DBMS — MySQL sync.
-
Select a version MySQL sync. The version cannot be changed after the cluster is created.
-
Fill in the blocks:
- Node configuration;
- optional: Fault tolerance;
- optional: Logging;
- Network;
- optional: Security;
- optional: DBMS settings.
-
Check the Managed Database cluster price.
-
Click Create cluster.
Node configuration
-
Select a configuration line.
-
If you selected a line with custom configurations, select the disk type, specify the number of vCPUs, RAM size, and disk size.
-
If you selected a line with fixed configurations, select a configuration.
After the cluster is created, you can change the node configuration — scale the cluster.
Optional: Fault tolerance
To provide fault tolerance for the cluster, add replicas — full copies of the master node. To do this, specify the number of nodes in the cluster. The first node is the master node, and the others are replicas. Replicas are only available for read operations (SELECT).
For a multi-node cluster, the SLA applies — we guarantee a write availability of 99.95% and a read availability of 99.99%.
Optional: Logging
To have access to cluster logs, enable logging. Logging uses some of the cluster's computing resources.
-
Check the Collect technical cluster logs to the logging service checkbox.
-
Select a log group or create a new one.
-
If you selected a new group, enter its name.
Network
The MySQL sync cluster can be added to a new or existing subnet. A subnet can be:
-
private — with no internet access. You can connect a public IP address for internet access. Each cluster node is connected to a separate public IP address. To connect a public IP address, the private subnet must meet the requirements;
-
public — where all addresses are accessible from the internet.
Private subnet
Public subnet
-
To add an existing private subnet:
1.1. In the Subnet field, select an existing subnet. The number of addresses in the selected subnet must be at least the number of nodes in the cluster. The subnet cannot be changed after the cluster is created.
1.2. Optional: to make cluster nodes accessible from the internet, select the Public access to cluster nodes checkbox, and then the checkbox for the node that you want to provide public access to. The private subnet must meet the requirements. If the subnet does not meet the requirements, you can connect a public IP address after the cluster is created.
-
To add a new private subnet:
2.1. In the Subnet field, select New private subnet. The number of addresses in the subnet must be at least the number of nodes in the cluster. The subnet cannot be changed after the cluster is created.
2.2. Optional: change the subnet CIDR.
2.3. Optional: change the network in which the subnet will be created — you can select an existing network or create a new one. The network cannot be changed after the cluster is created.
Optional: Security
Select security groups to filter incoming and outgoing cluster traffic.
If the Security block is missing, traffic filtering (port security) is disabled in the cluster network. If traffic filtering is disabled, all traffic will be allowed.
Optional: DBMS settings
To view the default DBMS settings or change them, click Change. We recommend changing setting values only if necessary — incorrectly chosen values can lead to cluster failure or performance degradation.
Create a database
After creating a database, you can grant users access to it.
- In the Dashboard, on the top menu, click Products and select Managed Databases.
- Open the Active tab.
- Open the cluster page → Databases tab.
- Click Create Database.
- Enter a database name.
- Click Create.