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.
-
Go to KakaoCloud Console > Data Store > MySQL.
-
In the Instance Group menu, select the MySQL instance group for which to view the instance list.
-
Go to the Instance tab.
Item Description Name Instance name Role Primary or Standby; see Instance availability configuration and roles Availability zone AZ where the instance was created Engine version MySQL engine version applied to the instance; a warning icon appears if it differs from the instance group version Status Instance status; see Instance lifecycle Availability status Data replication status between instances; see Instance availability status Instance type MySQL instance type; a warning icon appears when a type change is required Base/log storage size Sizes of base and log storage Uptime Time elapsed since the instance was updated by creation, restart, or failover Created at Instance creation date and time
Monitor instance
In the Monitoring tab, you can check the monitoring results of a MySQL instance group.
-
Go to KakaoCloud Console > Data Store > MySQL.
-
In the Instance Group menu, select the MySQL instance group to monitor.
-
Click the Monitoring tab.
Category Description Monitoring instance Select the instance to monitor Metric Select the monitoring metrics
- Options: MySQL / CPU / Memory / FileSystem / Disk / Network
- All metrics are shown by default
- Multiple selections availableData period Time range for the data to be shown on the graph
- Options: 1 hour (default) / 3 hours / 12 hours / 1 day / 7 daysView mode Graph layout (1-column, 2-column, 3-column) Auto-refresh interval Set the auto-refresh interval
- Options: Do not refresh (default) / 10 sec / 30 sec / 1 min / 5 minManual refresh Manually refresh the monitoring data by clicking the button Monitoring data provided
Category Metric Description MySQL Queries per second (QPS) Queries per second over time MySQL Connections (count) Number of connections over time
- Max connections: Maximum connection count
- Active connections: Currently connected clients and their proportion of the maximum connection countMySQL Slow queries (count) Number of slow queries executed within each five-minute period MySQL Query count by type (5-min, count) Number of INSERT, SELECT, UPDATE, DELETE, and COMMIT queries executed within five minutes MySQL Row lock wait (count) Current row lock count and time spent waiting for row locks over time MySQL Binary log (Bytes(IEC)) Binary log size and file count over time
- Active binary log: Current size relative to the configured maximum and binlog replication lagCPU Total usage (%) Total CPU usage over time Memory Total usage (%) Total memory usage over time Memory Usage by type (Bytes(IEC)) Memory usage over time by type, including used, buffered, cached, and swap FileSystem Total usage (%) Base and log storage disk usage over time FileSystem Total usage (Bytes(IEC)) Base and log storage disk usage in bytes over time FileSystem Inode usage by mount (%) Base and log storage inode usage per mount over time Disk Read bytes (Bytes/s(IEC)) Data read per second from base and log storage disks Disk Write bytes (Bytes/s(IEC)) Data written per second to base and log storage disks Disk Read IOPS (IO/sec) Completed read operations per second on base and log storage disks Disk Write IOPS (IO/sec) Completed write operations per second on base and log storage disks Disk Available disk space (Bytes(IEC)) Remaining available space in default and log storage disks Disk Total disk capacity (Bytes(IEC)) Total capacity of default and log storage disks Disk Available inode count Number of available inodes in default and log storage Disk Reserved inode count Number of reserved inodes in default and log storage Disk Used inode count Number of inodes currently in use in default and log storage Network RX per interface (Bytes/s(IEC)) Bytes received per second by network interface Network TX per interface (Bytes/s(IEC)) Bytes sent per second by network interface Network RX per interface (PPS) Network RX packet rate over time by interface Network TX 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.
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.
Deletion is available only when the instance group status is Available, Primary-Available, or Storage-Full.
- Go to KakaoCloud Console > Data Store > MySQL.
- Select the instance group containing the instance to delete.
- In the Instance tab, click [⋮] > Delete instance on the desired instance.
- 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 type | innodb_buffer_pool_size | max_connections |
|---|---|---|
| m2a.large | 5G | 680 |
| m2a.xlarge | 11G | 1360 |
| m2a.2xlarge | 22G | 2730 |
| m2a.4xlarge | 44G | 5460 |
| m2a.8xlarge | 88G | 10920 |
| m2a.12xlarge | 132G | 16380 |
| m2a.16xlarge | 176G | 21840 |
| m2a.24xlarge | 264G | 32760 |
| r2a.large | 11G | 1360 |
| r2a.xlarge | 22G | 2730 |
| r2a.2xlarge | 44G | 5460 |
| r2a.4xlarge | 88G | 10920 |
| r2a.8xlarge | 176G | 21840 |
| r2a.12xlarge | 264G | 32760 |
| r2a.16xlarge | 352G | 43690 |
| r2a.24xlarge | 528G | 65530 |
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.
- Go to Monitoring in KakaoCloud Console.
- In the Explorer tab, select MySQL.
- Check the query period, and enter
"*/mysql_log/slowlog/slowquery.log"in File path under Log filter. - View the results in the chart and log list.
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.
- 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.
- Go to KakaoCloud Console > Data Store > MySQL.
- Select the instance group to restart.
- Go to the Instance tab.
- Click [⋮] > Restart instance, or select multiple instances and click Restart instance.
- Confirm the information and click [Restart] in the popup.