Skip to main content

Manage instances

This guide explains how to manage running instances in the MySQL service.

View instance list

You can check the list of instances included in the running MySQL instance group. For the relationship between instance groups and instances, refer to Key concepts.

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

  2. In the Instance Group menu, select the MySQL instance group for which to view the instance list.

  3. Go to the Instance tab.

    ItemDescription
    Instance nameThe name in the format MySQL instance group name-creation order starting from 0
    AZAvailability zone where the instance is created
    StatusMySQL instance status
    - For details, refer to Instance lifecycle and status values
    Availability statusStatus of data replication between MySQL instances, applicable only when High availability is selected
    - For details, refer to Instance availability status
    RoleRole of the instance
    - For details, refer to Instance availability configuration and roles
    Instance typeType of MySQL instance selected during creation
    Storage sizeStorage size set at creation
    UptimeElapsed time since the instance was last updated due to restart or failover
    CreatedDate and time the instance was created

Monitor instance

In the Monitoring tab, you can check the monitoring results of a MySQL instance group.

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

  2. In the Instance Group menu, select the MySQL instance group to monitor.

  3. Click the Monitoring tab.

    CategoryDescription
    Monitoring instanceSelect the instance to monitor
    MetricSelect the monitoring metrics
    - Options: MySQL / CPU / Memory / FileSystem / Disk / Network
    - All metrics are shown by default
    - Multiple selections available
    Data periodTime range for the data to be shown on the graph
    - Options: 1 hour (default) / 3 hours / 12 hours / 1 day / 7 days
    View modeGraph layout (1-column, 2-column, 3-column)
    Auto-refresh intervalSet the auto-refresh interval
    - Options: Do not refresh (default) / 10 sec / 30 sec / 1 min / 5 min
    Manual refreshManually refresh the monitoring data by clicking the button
    Monitoring data provided
    CategoryMetricDescription
    MySQLQueries per second (QPS)Queries per second over time
    MySQLConnections (count)Number of connections over time
    - Max connections: Maximum connection count
    - Active connections: Maximum, current, and average within selected time range
    MySQLSlow queries (count)Number of slow queries over time
    MySQLQuery count by type (5-min, count)Number of queries per type over time
    MySQLRow lock wait (count)Number of row lock waits over time
    MySQLBinary log (Bytes)Binary log size over time
    - Active binary log: Maximum, current, and average size within selected time range
    CPUTotal usage (%)Total CPU usage over time
    MemoryTotal usage (%)Total memory usage over time
    MemoryUsage by type (Bytes)Memory usage by type over time
    FileSystemTotal usage (%)Total file system usage over time
    FileSystemTotal usage (Bytes)Total file system usage in bytes over time
    FileSystemInode usage by mount (%)Inode usage per mount over time
    DiskRead bytes (Bytes/sec)Disk I/O read usage over time
    DiskWrite bytes (Bytes/sec)Disk I/O write usage over time
    DiskRead IOPS (IO/sec)Disk I/O read operations per second
    DiskWrite IOPS (IO/sec)Disk I/O write operations per second
    DiskAvailable disk space (Bytes)Remaining available space in default and log storage disks
    DiskTotal disk capacity (Bytes)Total capacity of default and log storage disks
    DiskAvailable inode countNumber of available inodes in default and log storage
    DiskReserved inode countNumber of reserved inodes in default and log storage
    DiskUsed inode countNumber of inodes currently in use in default and log storage
    NetworkRX per interface (Bytes)Network RX usage over time by interface
    NetworkTX per interface (Bytes)Network TX usage over time by interface
    NetworkRX per interface (PPS)Network RX packet rate over time by interface
    NetworkTX per interface (PPS)Network TX packet rate over time by interface

Delete instance

You can delete unused MySQL standby instances. When an instance is deleted, all resources are released and cannot be recovered.

caution

If all instances in an AZ are deleted, the endpoint in that AZ becomes inactive and cannot be accessed.
Check instance and endpoint status before deleting.

info

Only available if the instance group status is Available, Primary-Available, or Error.

  1. Go to KakaoCloud Console > Data Store > MySQL.
  2. Select the instance group containing the instance to delete.
  3. In the Instance tab, click [⋮] > Delete instance on the desired instance.
  4. Enter the information in the confirmation popup and click [Delete].

Configure MySQL instances

MySQL instances are virtual machines managed by the instance group, assigned either Primary or Standby roles. Changing settings is planned for a future update.

Instance typeinnodb_buffer_pool_sizemax_connections
m2a.large      5G680
m2a.xlarge11G1360
m2a.2xlarge22G2730
m2a.4xlarge44G5460
m2a.8xlarge88G10920
m2a.12xlarge132G16380
m2a.16xlarge176G21840
m2a.24xlarge264G32760
r2a.large11G1360
r2a.xlarge22G2730
r2a.2xlarge44G5460
r2a.4xlarge88G10920
r2a.8xlarge176G21840
r2a.12xlarge264G32760
r2a.16xlarge352G43690
r2a.24xlarge528G65530
info

See Instance for more information on roles and types.

View slow query

Use monitoring service

You can check MySQL slow queries using the KakaoCloud Monitoring log explorer.

  1. Go to Monitoring in KakaoCloud Console.

  2. In the Explorer tab, select MySQL.

  3. Set log filter path: "*/mysql_log/slowlog/slowquery.log"

  4. View results in chart and log list.

info

For more information, see Log explorer.

Use stored procedure

You can use KakaoCloud’s built-in stored procedure to view slow queries from a table.

info
  • Logs retrieved via stored procedure do not appear in log explorer.
  • You must manage the table data and retention.
  • slow_log is not replicated; after primary switch, logs from the old primary are not transferred.
  • See Stored procedure guide for more.
  1. Set log_output to TABLE:

    CALL mysql.mnms_set_configuration('log_output', 'TABLE');
  2. Retrieve slow queries:

    SELECT * FROM mysql.slow_log;
  3. To decode BLOB SQL text:

    SELECT start_time, user_host, query_time, lock_time, rows_sent, rows_examined, db, last_insert_id, insert_id, server_id, CONVERT(sql_text USING utf8), thread_id FROM mysql.slow_log;
  4. Reset log output to default:

    CALL mysql.mnms_set_configuration('log_output', 'FILE');

Restart instance

You can restart instances in an instance group. While restarting, endpoint access is unavailable and service interruption may occur.

caution
  • Restarting both standby and primary instances will first restart all standby instances, then the primary, causing a role switch and disconnecting all sessions.
  • Restarting only the primary will not switch roles, but all sessions are disconnected and service downtime may occur.
  1. Go to KakaoCloud Console > Data Store > MySQL.
  2. Select the instance group to restart.
  3. Go to the Instance tab.
  4. Click [⋮] > Restart instance, or select multiple instances and click Restart instance.
  5. Confirm the information and click [OK] in the popup.