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
    NameInstance name
    RolePrimary or Standby; see Instance availability configuration and roles
    Availability zoneAZ where the instance was created
    Engine versionMySQL engine version applied to the instance; a warning icon appears if it differs from the instance group version
    StatusInstance status; see Instance lifecycle
    Availability statusData replication status between instances; see Instance availability status
    Instance typeMySQL instance type; a warning icon appears when a type change is required
    Base/log storage sizeSizes of base and log storage
    UptimeTime elapsed since the instance was updated by creation, restart, or failover
    Created atInstance creation date and time

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: Currently connected clients and their proportion of the maximum connection count
    MySQLSlow queries (count)Number of slow queries executed within each five-minute period
    MySQLQuery count by type (5-min, count)Number of INSERT, SELECT, UPDATE, DELETE, and COMMIT queries executed within five minutes
    MySQLRow lock wait (count)Current row lock count and time spent waiting for row locks over time
    MySQLBinary log (Bytes(IEC))Binary log size and file count over time
    - Active binary log: Current size relative to the configured maximum and binlog replication lag
    CPUTotal usage (%)Total CPU usage over time
    MemoryTotal usage (%)Total memory usage over time
    MemoryUsage by type (Bytes(IEC))Memory usage over time by type, including used, buffered, cached, and swap
    FileSystemTotal usage (%)Base and log storage disk usage over time
    FileSystemTotal usage (Bytes(IEC))Base and log storage disk usage in bytes over time
    FileSystemInode usage by mount (%)Base and log storage inode usage per mount over time
    DiskRead bytes (Bytes/s(IEC))Data read per second from base and log storage disks
    DiskWrite bytes (Bytes/s(IEC))Data written per second to base and log storage disks
    DiskRead IOPS (IO/sec)Completed read operations per second on base and log storage disks
    DiskWrite IOPS (IO/sec)Completed write operations per second on base and log storage disks
    DiskAvailable disk space (Bytes(IEC))Remaining available space in default and log storage disks
    DiskTotal disk capacity (Bytes(IEC))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/s(IEC))Bytes received per second by network interface
    NetworkTX per interface (Bytes/s(IEC))Bytes sent per second by network 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.

Notes when deleting instances

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.

Instance deletion available states

Deletion is available only when the instance group status is Available, Primary-Available, or Storage-Full.

  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​

You can check MySQL slow queries using the KakaoCloud Monitoring log explorer. Log Explorer retains slow query logs for up to five days. To view older logs, use Export logs.

  1. Go to Monitoring in KakaoCloud Console.
  2. In the Explorer tab, select MySQL.
  3. Check the query period, and enter "*/mysql_log/slowlog/slowquery.log" in File path under Log filter.
  4. View the results in the chart and log list.
Log explorer

For more information, see Log explorer.

Restart instance​

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

Notes when restarting instances
  • When restarting Standby and Primary instances, all Standby instances restart first, then the Primary instance restarts and switching occurs. All connected sessions are terminated during switching, and endpoint access is unavailable.
  • When restarting only the Primary instance, only the Primary instance restarts without switching. All connected sessions are terminated and Primary endpoint access is unavailable. The service cannot be used normally until restart is complete, and downtime may occur if a service is running. Check the impact before proceeding.
  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 [Restart] in the popup.