Skip to main content

Create a MySQL semi-sync cluster

Create a cluster

  1. In the Dashboard, on the top menu, click Products and select Managed Databases.

  2. Click Create cluster.

  3. Enter a cluster name.

  4. Select a location. The location cannot be changed after the cluster is created.

  5. Select a DBMS — MySQL semi-sync.

  6. Select a version MySQL semi-sync. The version cannot be changed after the cluster is created.

  7. Fill in the blocks:

  8. Check the Managed Database cluster price.

  9. Click Create cluster.

Node configuration

  1. Select a configuration line.

  2. If you selected a line with custom configurations, select the disk type, specify the number of vCPUs, RAM size, and disk size.

  3. 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.

  1. Check the Collect technical cluster logs to the logging service checkbox.

  2. Select a log group or create a new one.

  3. If you selected a new group, enter its name.

Network

You can connect a MySQL semi-sync cluster:

You can create a new subnet or add the cluster to an existing one.

  1. To add a cluster to an existing private subnet:

    1.1. In the Subnet field, select an existing subnet. The number of addresses in the selected subnet must not be less than the number of nodes in the cluster. You cannot change the subnet after creating the cluster.

    1.2. Optional: to make cluster nodes accessible from the internet, in the Public access to cluster nodes block, select the checkbox of the node to which you need to connect a public floating IP address. The Public access to cluster nodes block is available if the private subnet meets the requirements. If the subnet does not meet the requirements, you can connect a public floating IP address after creating the cluster.

  2. To create a new private subnet:

    2.1. In the Subnet field, select New private subnet. The number of addresses in the subnet must not be less than the number of nodes in the cluster. You cannot change the subnet after creating the cluster.

    2.2. Optional: change the subnet CIDR.

    2.3. Optional: change the network where the subnet will be created — you can select an existing network or create a new one. You cannot change the network after creating the cluster.

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 default values of DBMS settings or edit them, click Edit. We recommend changing setting values only if necessary — incorrectly selected values may lead to cluster failure or performance degradation.

Create a database

After creating a database, you can grant users access to it.

  1. In the Dashboard, on the top menu, click Products and select Managed Databases.
  2. Open the Active tab.
  3. Open the cluster page → Databases tab.
  4. Click Create database.
  5. Enter a database name.
  6. Click Create.