VK Cloud logo
Updated at December 20, 2023   05:58 AM

Single and Master-Replica configurations

  1. Go to VK Cloud personal account.

  2. Select the project where you want to create a DB instance.

  3. Go to Databases → Database instances.

  4. Click the Create database or Add button.

  5. On the “Configuration” step:

    1. Select the desired database type.
    2. Select the desired version.
    3. Select the configuration Single or Master-Replica. The configuration is available for some DBMS types.
    4. Click the Next step button.
  6. On the “Create instance” step:

    1. Set general instance parameters:

      • Database instance name: it can contain only Latin letters, numbers and symbols ., -, _.

        Instance hostnames will consist of the specified name and a suffix. The suffix will be different for different DBMS.

      • Category of virtual machine: select the flavor of the VM. For more information, see Cloud Servers service overview.

      • Type of virtual machine: configuration template for the DB instance.

        Templates with high-performance CPUs are available on request to the support service. To use these templates, select the option Show only high performance CPUs.

      • Availability zone: availability zone for the DB instance.

      • Disk Type: disk type for the DB instance.

      • Disk size, GB: disk size (in gigabytes).

        The larger the disk size, the higher its performance in some disk operations.

      • Enable volume autoscaling: select this option so that the disk size increases automatically when the disk is filled with data. When selecting this option, also specify The maximum volume size, GB.

      • Network: the network where the DB instance will be hosted. If the desired network is not in the list, create it.

      • Assign an external IP: select this option to assign a floating IP address to the DB instance.

        Such a DB instance will be accessible from the Internet.

      • Firewall settings: a list of security groups for the DB instance.

        Add the ssh security group to the list to be able to connect to DB instance via SSH.

      • Create replica: this option affects the instance configuration and determines whether a replica will be added.

        The option is available for the following DBMS types:

        • MySQL,
        • PostgreSQL,
        • PostgresPro Enterprise,
        • PostgresPro Enterprise 1C.

        The option works like this:

        • If this option is not selected, a DB instance will be created in the Single configuration: with a single host with the Master role.
        • If this option is selected, a DB instance will be created in the Master-Replica configuration: with one host as Master and another host as Replica.
      • SSH access key: select an existing key or create a new one.

        The key is used to connect to instance hosts via SSH.

    2. Set up a backup. If necessary, the backup parameters can be set or changed after the cluster is created.

      Backup is not available for Tarantool.

      Select this option to not use backup for the DB instance.

    3. Select the option Enable monitoring if you need to monitor the DB instance using the tools of the VK Cloud.

      This option is not available for Redis and MongoDB.

    4. Click the Next step button.

  7. On the “Initialization” step:

    1. Specify the database initialization parameters. The available parameters depend on the Creation type selected:

      A new empty database will be created.

      There are no initialization parameters for Redis.

      For Tarantool: set a username and password.

      For other types of DBMS:

      • Specify the name of the database.
      • Specify a username and password.
    2. Click the Create database button.

      Wait for the operation to complete. Creating a DB instance can take a long time.