Skip to main content

Create and manage instance group

info

Create MySQL instance group

A MySQL instance group is an object that manages the lifecycle of instances and backups. It has multiple statuses including running and terminated, which users can monitor and manage.

To create an instance group in the MySQL service:

info

There is no limit to the number of MySQL instance groups or instances that can be created per project.

  1. Go to KakaoCloud Console > Data Store > MySQL.

  2. Click [Create instance group].

  3. In the Create instance group screen, enter the necessary information and click [Create].

    ItemCategoryDescription
    Basic informationInstance group nameName of the MySQL instance group
    - Duplicate names are not allowed within the same project
    - Example: mysql-instance-01
    Description (optional)Optional description for the instance group (up to 100 characters)
    Instance availabilityHigh availability (primary and standby instances)Allows creation of a primary instance and multiple standby instances
    - Available in single or multi AZ
    Single (primary instance)Creates only one primary instance
    - Available in a single AZ only
    MySQL settingsEngine versionMySQL version is automatically selected
    - Currently supports MySQL 8.0.34, 8.0.41
    Primary portPort for primary instance communication (range: 1024–65535), default: 3306
    * Reserved ports (e.g., 33060) are not allowed
    Standby portPort for standby instance communication (range: 1024–65535), used only in high availability mode, default: 3307
    * Reserved ports (e.g., 33060) are not allowed
    MySQL usernameUsername for the MySQL database
    - Example: admin
    * Reserved names like root are not allowed
    * For details on permissions, see Instance group user account
    MySQL passwordInitial password for the MySQL admin account
    - Must be 8–16 characters
    - Cannot include spaces, /, ', ", @

    ⚠️ You can change the password after database startup
    ⚠️ Changed passwords cannot be retrieved later
    Parameter groupSelect a parameter group compatible with the engine version
    Instance typeSelect an instance type for computing resources
    - See Instance types for more info
    Primary storageSSDConfigure storage type and volume size for database usage
    - Only SSD is currently supported
    - Size: 100 GB to 16,384 GB
    * Minimum size may vary depending on instance type
    Log storageSSDDedicated storage for logs, type cannot be changed after creation
    - Only SSD is currently supported
    - Size: 100 GB to 16,384 GB
    * Minimum size may vary depending on instance type
    Network settingsMulti-AZ optionAvailable when high availability is selected; allows configuration of subnet and instance count per AZ
    VPCSelect the VPC for the MySQL instance group
    Subnet and instance countConfigure subnets and instance counts in a table
    - Single availability: 1 instance
    - High availability: up to 6 total instances combining primary and standby
    Role PrimarySelect subnet and set instance count for primary
    - Single availability: 1 instance
    - High availability: at least 2 instances recommended including 1 primary
    Role StandbySelect subnet and set instance count for standby
    - Available only in multi-AZ
    - Use [Add subnet] button for additional standby per AZ
    Add subnetAdd one subnet per availability zone
    Security groupCreate or select pre-existing security groups
    - Multiple selections supported
    Auto backupAuto backup optionEnable/disable automatic daily backups
    Backup retention periodChoose retention from 1 to 35 days
    - Applies to all automatic backups in the instance group
    Auto backup start timeBackups begin within 15 minutes of selected time
    Advanced settingsCase sensitivity for tablesSet lower_case_table_names independently of the parameter group
    - Cannot be changed after creation
info

For detailed descriptions of instance groups, refer to the Instance group documentation.

info
  • If creation fails due to network error or resource constraints, check event history in Cloud Trail.
  • Even after volume expansion, IOPS remains fixed at the initial value. Choose volume size accordingly to maintain stable performance.

Instance group user account

When creating a MySQL instance group, the user-defined username and password are used to generate a user account.
This account has the role of User Admin and can access resources after authentication. The roles and privileges are listed below.

info
  • Applies only to the kr-central-2 region.
  • Modifying privileges arbitrarily may interfere with internal operations.
    Use the official Stored Procedure provided by KakaoCloud when granting permissions.
CategoryRolePrivileges
User accountUser AdminGRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, PROCESS, REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, REPLICATION SLAVE, REPLICATION CLIENT, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER, CREATE ROLE, DROP ROLE ON . TO admin@%
GRANT FLUSH_OPTIMIZER_COSTS, FLUSH_STATUS, FLUSH_TABLES, FLUSH_USER_RESOURCES, REPLICATION_APPLIER, SENSITIVE_VARIABLES_OBSERVER, SET_USER_ID, SHOW_ROUTINE, XA_RECOVER_ADMIN ON . TO admin@%

Connect to MySQL instance group

After creating a MySQL instance group and completing instance configuration, you can connect to the MySQL instance group using a MySQL Client. Below describes how to connect to an instance in the group.

Prerequisites

To connect to a MySQL instance group, you need the following setup:

  • A Virtual Machine (VM) instance within the same network as the MySQL instance group
  • An environment that can access the endpoint of the MySQL instance group

Make sure that the Outbound policy of the VM's Security Group allows either:

  • A user-defined port (range: 1024–65535), or
  • TCP 3306 for Primary instances, TCP 3307 for Standby instances (default MySQL ports)

Connect to instance

You can connect to an instance in the instance group as follows:

  1. Refer to Create and connect to VM instance to access a VM.
    If MySQL commands are not recognized, you may need to install a MySQL Client.

  2. Go to the KakaoCloud Console, and navigate to
    Data Store > MySQL.

  3. In the Instance Group menu, select the instance group to connect to.

  4. Under the Details tab, check the Endpoint and DB Username.
    These will be used when executing the MySQL connection command. Copy and save them.

  5. On the VM, run the following command in the MySQL Client to connect:

    mysql --user={USER} --password={USER_PASSWORD} --host {ENDPOINT} --port {PORT}
    ItemDescription
    user{USER}: DB username obtained in step 2.
    - This is the admin account for the MySQL instance.
    password{USER_PASSWORD}: Initial password of the admin account used to connect to the MySQL instance.
    - Set during instance creation.
    host{ENDPOINT}: Endpoint obtained from the Details tab.
    - The endpoint assigned to the MySQL instance.
    port{PORT}: Port number specified during instance group creation.
info

For detailed information on the roles and types of instances, refer to Instance.

info

MySQL endpoints are provided as DNS-based FQDN. To resolve this, you must allow udp/53 in the Security Group’s Outbound rules. During failover, the IP mapped to the domain may change. Please consider the following:

  • Avoid caching the MySQL endpoint domain name. (TTL 0 seconds)
    (Example) For Java-based applications: networkaddress.cache.ttl=0
  • All existing connections will be disconnected during a primary switch, so applications must be configured to automatically reconnect.

Manage instance group

Here is how to manage your MySQL instances and instance groups in the service.

View MySQL Instance Group List

You can view a list of currently active MySQL instance groups.

  1. Go to KakaoCloud Console > Data Store > MySQL.

  2. Under the Instance Group menu, review the list of instance groups.

    ColumnDescription
    Instance Group NameName assigned during instance group creation.
    - Click the name to view its detailed info.
    StatusCurrent status of the MySQL instance group.
    - For details, refer to Instance Group.
    Engine VersionVersion of the MySQL database selected during creation.
    Instance TypeMySQL instance type selected during creation.
    AvailabilitySelected availability configuration.
    Multi-AZWhether multi-AZ is enabled.
    Auto Backup Retention PeriodDuration for which automatic backups are retained.
    - Hover to see start time.
    Scheduled TasksNumber of upcoming maintenance tasks. Click to go to the Maintenance page.
    Created AtTimestamp of the instance group creation.
    Created ByUser who created the instance.
    [⋮] ButtonConfigure Auto Backup: Set backup retention and start time
    Expand Volume: Increase volume (data/log)
    Change Parameter Group: Change applied parameter group
    Add Standby: Add a standby instance (guide)
    Manual Failover: Perform failover
    Create Backup: Create a manual backup
    Delete Group: Delete the instance group and its associated resources

View MySQL instance group details

You can view detailed information about a MySQL instance group.

info

Due to the nature of the file system, there may be a discrepancy between the displayed storage usage at the top and the actual usable capacity.
Monitoring metrics for storage capacity will be provided in a future update.

  1. Go to the KakaoCloud Console > Data Store > MySQL.
  2. From the Instance Group menu, select the MySQL instance group you want to check.
  3. Check the detailed information for the selected MySQL instance group.

MySQL instance group security groups

View security groups

In the Security tab of the details page, you can view the security groups applied to the instance group and their detailed policies.
In order to access the instance group, the required port must be allowed in the security group. Click the name of a linked security group in the list to go to its detailed page under VPC > Security Groups.

Modify security groups

You can modify the security groups linked to an instance group. At least one security group must be associated.

  1. Go to the KakaoCloud Console > Data Store > MySQL.
  2. From the Instance Group menu, click the [⋮] button for the group you want to edit and select Modify security group.
  3. In the popup window, select the security groups to apply.
    ItemDescription
    Selected instance groupName of the instance group to update security groups for
    Select security groupChoose security groups to apply. Selected items will appear as chips below
    Applied rulesView Inbound/Outbound rules of each selected security group
  4. Click the [Apply] button.
info

To manage Inbound/Outbound rules, go to VPC > Security Group.

Expand MySQL instance group volumes

You can expand the volume of a MySQL instance group. Both data and log storage volumes can be expanded up to 16TB (16,384 GB).

info
  • To apply the maximum IOPS corresponding to the new volume size, instances with a “Pending Restart” badge must be restarted after volume expansion.
  • For restart instructions, refer to Instance Management > Restart.
  1. Go to the KakaoCloud Console > Data Store > MySQL.
  2. From the Instance Group menu, click the [⋮] button for the group you want to expand and select Expand Volume.
  3. Enter the desired storage size for either the data or log volume and click [OK].
  4. Review the selected size and maximum IOPS, then click [OK] again.
  5. After volume expansion is complete, go to Details > Instance Tab, find instances with a Pending Restart badge, and restart them.
  6. Once restarted, the Pending Restart badge will disappear, confirming the update.

Delete MySQL instance groups

You can delete MySQL instance groups that are no longer in use.
Deleting an instance group will terminate all instances in the group, and the resources will be completely released. After deletion, no resource usage fees will be charged.

Only automatic backups are deleted along with the group — manual backups remain.
If you want to retain automatic backups, make sure to check the Preserve Automatic Backups option in the popup window.

caution

After deletion, instance resources and automatic backups are permanently released and cannot be recovered.

  1. Go to the KakaoCloud Console > Data Store > MySQL.
  2. In the Instance Group menu, click the [⋮] button next to the group you want to delete, then select Delete instance group.
  3. In the popup window, enter the required information and click the [Delete] button.

Change parameter group

You can change the parameter group linked to an instance group.
Be sure to select a parameter group that matches the engine version of the instance group.
Changes to parameter values may affect the running MySQL service, so it’s recommended to review all changes carefully before applying them.

If a parameter group change is already in progress, additional change requests may fail.
Refer to the Create and Manage Parameter Groups guide for more details.

  1. Go to the KakaoCloud Console > Data Store > MySQL.
  2. In the Instance Group menu, click the [⋮] button for the group you want to update, then select Change parameter group.
  3. In the popup window, select the new parameter group and click [OK].