Skip to main content

Key Concepts

The key concepts of the MySQL service are as follows:

Key ConceptDescription
Instance groupAn object that manages the lifecycle of instances and backups
InstanceA VM managed by an instance group, assigned as Primary or Standby based on availability
Instance TypeVirtualized hardware resources including vCPU and memory for database use
- Supports various types optimized for different workloads
Instance group/Instance lifecycleOperational and task states are managed based on the lifecycle of instance groups/instances
BackupPerformed online without database downtime, includes management such as backup creation and deletion
VolumeUses block storage devices to provide the database for MySQL service
- No need for users to manually create or configure block storage
Network and securityProvides network and security features through VPC, enabling logically separated service environments based on network requirements
- All MySQL instances are provided in a VPC environment
IAM and securityGrants appropriate access rights based on user roles through IAM and securely manages MySQL resources
Parameter groupManages MySQL configuration parameters by version and group unit

Instance group

Instance Group is an object that manages the lifecycle of instances and backups.
A MySQL instance group has various status values, including operational and terminated states, which users can check to manage the group.

Instance Group Lifecycle and Status Values

When you create a MySQL instance group, it starts in the Pending state, then transitions through Provisioning and Primary Available before becoming Available. In the Available state, the group can be accessed through the endpoint and port of the selected network. Default ports are 3306 (Primary) and 3307 (Standby), with configurable ports ranging from 1024 to 65535.

MySQL instance group lifecycle

Image MySQL Instance Group Lifecycle

StatusDescription
PendingPreparing to configure a MySQL instance group
- Starts in Pending when first created
ProvisioningCreating instances for the MySQL instance group
Primary AvailableAllocating and configuring virtual resources for Standby instances, group is partially operational
* Standby availability is also indicated
* HA configuration is maintained with Primary instance available
SwitchingManual or automatic failover in progress
AvailableAll instances are in Running state and usable
- Accessible via selected network’s endpoint and port
- Default ports: 3306 (Primary), 3307 (Standby)
RestartingRestarting (single availability only)
Scaling-OutAdding Standby instances
Scaling-InRemoving Standby instances
ErrorTemporary unavailability due to instance errors
TerminatingTerminating all instances and deleting associated backups
TerminatedAll instances and backups deleted, group is unavailable

Instance group availability status

When the group is in Primary Available state, the availability of Standby instances is also displayed.

Instance Group StateAvailability StateDescription
PRIMARY-AVAILABLEREADYAll Standby HA configurations are ready
PARTIAL-READYHA configuration in progress, at least one Standby ready
PARTIAL-UNAVAILABLEAt least one Standby configured and one unavailable
CONFIGUREDAll Standby configurations complete
STANDALONENo usable Standby, at least one unavailable
UNAVAILABLEAll Standbys are unavailable
AVAILABLEREADYAll Standby configurations complete
-No Standbys present

Instance

An Instance is a VM managed by the instance group.
MySQL instances are virtualized databases with vCPU and memory, and are objects within the instance group. Each instance has a status and a role (Primary or Standby).

Instance roles
RoleDescription
PrimaryDefault instance for read/write operations
- Accessible via DNS
StandbyHA-purpose instance used in failover scenarios
- Can also act as Read Replica
- Created when HA is enabled or added later

Instance types

The service offers optimized instance types based on purpose and expected workload.
Specifications are determined by the instance type selected during creation. Pricing is based on usage. More high-performance types will be added later.

MySQL Instance TypevCPUMemory (GiB)
m2a.large28
m2a.xlarge416
m2a.2xlarge832
m2a.4xlarge1664
m2a.8xlarge32128
m2a.12xlarge48192
m2a.16xlarge64256
m2a.24xlarge96384
r2a.large216
r2a.xlarge432
r2a.2xlarge864
r2a.4xlarge16128
r2a.8xlarge32256
r2a.12xlarge48384
r2a.16xlarge64512
r2a.24xlarge96768

Instance lifecycle and status values

An instance starts in the Pending state and transitions through Provisioning and Starting to become Running.

Image MySQL Instance Lifecycle

StatusDescription
PendingPreparing instance configuration
StartingSetting up database and configurations
RunningInstance is operational
Volume-ExtendingExpanding volume size
ErrorInstance temporarily unavailable due to error
TerminatingShutting down and releasing the instance
TerminatedInstance is no longer available

Instance availability config & roles

Availability configuration determines the number and roles of instances.

Availability TypeInstance CountDescription
Single1Only one Primary instance is created
High Availability (HA)Up to 6One Primary and 1–5 Standby instances

Instance availability status

Refers to the replication status between MySQL instances (applies only to HA configurations).

Image MySQL Instance Availability

Availability StatusDescription
CONFIGUREDReplication is functioning normally
CONFIGURINGReplication setup in progress
UNAVAILABLEReplication has stopped

Backup

Backups are managed at the instance group level.

Backup lifecycle and status values

Backups start in Pending, go through Processing, and complete in Succeeded.

Backup states (Before March 19, 2024)

Image MySQL Backup Lifecycle (Pre-March 19, 2024)

StatusDescription
PendingInitial state
ProcessingBackup in progress
In-Use-CheckingVerifying if the backup is being used for restore
Deletion-PendingDeletion waiting until restore finishes
DeletedBackup fully removed
SucceededBackup completed successfully
DeletingBackup being deleted
FatalInternal logic
ErrorBackup failed
- Cannot be restored, but can be deleted
Backup status (Created After March 19, 2024)

Image MySQL Backup Lifecycle (Post March 19, 2024)

StatusDescription
PendingInitial backup status
ProcessingBackup is in progress
- Even if deleted in this state, the deletion is executed after it either completes successfully (Succeeded) or fails (Error)
RestoringIn use for restoration, cannot be deleted
DeletedBackup has been completely deleted
SucceededBackup completed successfully
DeletingDeletion in progress
- If used for restoration, deletion is suspended and status changes to Restoring
ErrorBackup failed
- Cannot be restored, but can be deleted

Failover

MySQL supports High Availability (HA) features. By selecting the high availability option for backup instance types, multiple standby instances can be created. In the event of a failure, failover is performed to minimize service disruption. Both automatic and manual failover are supported.

Note

Service interruption may occur during failover.

Failover lifecycle

Instance group status during failover

StatusDescription
SWITCHINGFailover is in progress. MySQL service is temporarily unavailable.
PRIMARY-AVAILABLEStandby instances are being configured.

Volume

MySQL uses block storage devices as volumes to provide database services. Users do not need to manually create or manage block storage.

Network and security

All MySQL instances operate within a VPC environment. VPC provides networking and security features, allowing you to build logically isolated service environments according to your network requirements. For more information, refer to the VPC documentation.

Parameter group

MySQL allows configuration parameters to be managed in groups.

Parameter application status

Image Parameter Group Application Status

StatusDescription
PendingWaiting to apply the parameter group.
ApplyingParameters are currently being applied to the instance group.
In-SyncParameters have been successfully applied to all instances in the group.
Partial-SyncParameters have only been applied to some instances. This may occur if the group is in Failover, Provisioning, or not in Available state. Once successful, status changes to In-Sync. If failed, status becomes Error-Sync.
Error-SyncFailed to apply parameters to the cluster. You can Retry, which will change the status back to Applying.
SuspendedApplication is paused because a previous group in the sequence failed. You can Retry, which will change the status back to Applying.