Skip to main content

Create an instance group

This document explains how to create a MySQL instance group.

Create MySQL instance group​

A MySQL instance group is an object that manages the lifecycle of instances and backups.

Creating a MySQL instance group consists of four steps: Basic information, Instance configuration, Advanced settings, and Review.

  1. Go to the KakaoCloud Console > Data Store > MySQL.
  2. Click [Create instance group].

Step 1. Basic information​

Configure availability, multi-availability zone usage, and the instance group name.

ItemCategoryDescription
Instance availabilityHigh availability (Primary and Standby instances)Configures Primary and Standby instances together. You can select a single or multiple availability zones.
Single (Primary instance)Configures a single Primary instance and supports only one availability zone.
Multiple availability zonesUseCreates up to six instances in subnets across different availability zones. Multiple availability zones are recommended for high availability.
Not useCreates up to six instances in subnets within a single availability zone.
Basic settingsInstance group nameName of the instance group
Description (optional)Additional description of the instance group
Relationship between availability and multiple availability zones

If you select Single availability, the multiple availability zones option is disabled.

Step 2. Instance configuration​

ItemCategoryDescription
EngineEngine versionThe MySQL database version is selected automatically
Primary portPort used to communicate with the MySQL Primary instance; range: 1024–65535; default: 3306
* Reserved ports (for example, 33060) are unavailable
Standby portPort used to communicate with MySQL Standby instances; range: 1024–65535; available when high availability is selected; default: 3307
* Reserved ports (for example, 33060) are unavailable
MySQL usernameMySQL database user account name
- Example: admin
* The reserved account name root is unavailable
* For details about permissions, see Instance group user account
MySQL passwordInitial password for the MySQL database administrator account
⚠️ You can change the administrator password after the database starts
⚠️ You cannot retrieve an administrator password changed after the database starts
Parameter groupSelect only a parameter group compatible with the engine version
Instance typeInstance typeSelect an instance type
- Use condition filters to refine your search
Storage capacityPrimary storageSSD
- Volume type: Only SSD is currently supported; more types will be supported later
- Volume size: 100 GB–16,384 GB
* The minimum capacity may vary by instance type
Log storageSSD
- Storage used for database logs; the type cannot be changed after creation
- Volume type: Only SSD is currently supported; more types will be supported later
- Volume size: 100 GB–16,384 GB
* The minimum capacity may vary by instance type
NetworkVPCSelect a network
Subnet and instance countConfigure the subnets and number of Primary and Standby instances
- For differences by availability configuration, see Network settings by availability configuration
Security groupCreate a new security group or select existing security groups; multiple selections are supported

Network settings by availability configuration​

The Subnet and instance count table is configured according to the availability and multiple availability zones settings selected in Step 1. For data redundancy, two instances including a Standby instance are recommended depending on the availability configuration of the Primary subnet. You can create only one subnet per availability zone. Whether you can add a subnet depends on the selected availability configuration, and you can add subnets separately after creating the instance group.

AvailabilityMultiple availability zonesNumber of instancesAdd subnet
SingleNot applicable1 (fixed)Not available
High availabilityNot useDefault: 2; maximum: 6Not available
High availabilityUseDefault: 2; maximum: 6Available
Primary and Standby badges

A Primary badge is displayed on the subnet where the Primary instance is created, and a Primary endpoint is created based on the availability zone containing that subnet. A Standby badge is displayed on a subnet that contains only Standby instances, and a Standby endpoint is created based on the availability zone containing that subnet.

Step 3. Advanced settings​

Configure operating options such as automated backups, additional settings, and Audit logging.

ItemCategoryDescription
Automated backupUseDefault: Use
- When automated backup is enabled, the first backup starts within 30 minutes. Subsequent backups run according to the automated backup start time.
Automated backup retention periodDefault: 7 days; automated backup files can be retained for up to 35 days
Automated backup start timeDefault: 01:00; the backup starts within 15 minutes of the selected time
Additional settingsTable name case sensitivitySets the lower_case_table_names parameter separately from the parameter group value
- Default: Use
- ⚠️ This setting cannot be changed after instance group creation
Audit loggingUseDefault: Not use
- Logging starts or stops after the setting is applied, and generated logs can be downloaded from the log export menu
- When set to Use, you can configure server_audit_events, server_audit_excl_users, and server_audit_query_log_limit
- For details, see Configure Audit logging
Recommended alert policyUseConfigure metric and event alert policies and notification channels for the instance group

When you use Recommended alert policy, metric and event alert policies for the instance group are automatically created and configured after the group is created. You can view and modify the policies in Alert Center.

  • Metric alert policy name: mysql-metric-{instance group ID}
  • Event alert policy name: mysql-event-{instance group ID}
Metric conditions (defaults)​

You can enable or disable each metric and configure its conditions.

MetricThresholdDurationSeverity
Log storage usage (mysql_logstorage_disk_used_percent)95% or higher3 minutesWarning
Primary storage usage (mysql_defaultstorage_disk_used_percent)85% or higher3 minutesWarning
CPU usage (cpu_usage)80% or higher3 minutesWarning
Memory usage (mem_usage)95% or higher3 minutesWarning
Event conditions​

You can enable or disable each event.

Event nameDescription
Instance Group ErrorOccurs when an error in one or more instances makes the instance group temporarily unavailable
Instance ErrorOccurs when an instance error makes the instance temporarily unavailable
Backup ErrorOccurs when a manual backup ends abnormally
Scheduled Backup ErrorOccurs when an automated backup ends abnormally
Instance Storage WarningOccurs when an instance has 30 GB or less available storage
Instance Storage ErrorOccurs when an instance has 5 GB or less available storage
Instance Group Start FailoverOccurs when instance group Failover starts
Instance Group End FailoverOccurs when instance group Failover completes
Maintenance ErrorOccurs when a maintenance task encounters an error
Notification channels​

Specify the channels that receive notifications from the configured alert policies.

  • Select a Channel type and Notification channel. At least one notification channel is required.
  • Supported channel types are email, SMS, AlimTalk, Slack, webhook, and Pub/Sub. Use Add channel to configure up to 10 notification channels.
Note

The channel must be active to receive notifications.

Review​

Review the basic information, instance configuration, and advanced settings selected in the preceding steps. Click [Create] to start creating the instance group.

Creation and usage notes
  • If instance group creation fails due to an unexpected cause such as a network error or insufficient resources, check the event history in Cloud Trail.