Skip to main content
Create a MySQL semi-sync cluster
Last update:

Create a MySQL semi-sync cluster

Create a cluster

  1. In the control panel, go to Cloud PlatformDatabases.

  2. Click Create Cluster.

  3. Enter a name for the cluster.

  4. Select a region.

  5. Select a pool.

  6. Select version MySQL semi-sync>. Once created, the version will not be able to be changed.

  7. Select node configuration:

    • fixed — configurations with different ratio of virtual processor cores, RAM and local disk;
    • arbitrary — free choice of resource ratio.
  8. For fixed configuration, select configuration line:

    • Standard Line;
    • HighFreq Line.
  9. Optional: check the Add replicas checkbox and specify the number of replicas. Replicas increase the fault tolerance of the cluster.

  10. Select the type of subnet to which the cluster will be connected:

    • private subnet — a subnet with no access from the Internet. You can connect a static public IP address;

    • public subnet — all public subnet addresses are accessible from the Internet.

  11. Select or create a subnet.

    Addresses are assigned to each node in the cluster. Make sure that the number of addresses in the subnet is not less than the number of nodes in the cluster. If you plan to increase the number of replicas after the cluster is created, select a subnet that has a stock of free addresses. Once the cluster is created, the subnet cannot be changed.

    You can restrict the list of addresses from which access to the database cluster will be allowed.

  12. Optional: in a private subnet you can connect a public IP address to a cluster node:

  13. Optionally: change DBMS settings, to do this, click Change. We recommend that you change the settings only when necessary — incorrect values can degrade cluster performance.

  14. Click Create Database Cluster. The cluster will be ready for operation when it moves to the ACTIVE status.

Create a database

Once the database is created, you can grant users access to it.

  1. In Control Panel, go to Cloud PlatformDatabases.
  2. Open the cluster page → Databases tab.
  3. Click Create Database.
  4. Enter the name of the database.
  5. Press Create.