This page lists instance types and their specifications for ApsaraDB MyBase for MySQL primary instances.
Not all instance types listed here may be available. Check the buy page to see which types are available before you create an instance.
Choose an edition and storage type
ApsaraDB MyBase for MySQL offers two editions, each supporting one or two storage types. Use the following table to identify which section applies to your configuration before selecting a specific instance type.
| Edition | Storage type | Instance type prefix | CPU cores | Max connections |
|---|---|---|---|---|
| High-availability Edition | Enhanced SSD | mysql.z | 2–104 | 1,200–120,000 |
| High-availability Edition | Local SSD | mysql.z | 2–64 | 1,200–80,000 |
| Master-replica Edition | Enhanced SSD | mysql.g | 1–104 | 600–120,000 |
Instance type naming conventions
MyBase instance type codes encode key specifications:
| Code segment | Meaning | Example |
|---|---|---|
z | High-availability Edition with enhanced or local SSDs | mysql.z2.medium.2c |
g | Master-replica Edition with enhanced SSDs | mysql.g4.large.1c |
2 / 4 / 8 (after z or g) | Memory-to-CPU ratio | z2, z4, z8 |
medium / large / xlarge / 2xlarge … | Size class (number of CPU cores) | medium = 2 cores, xlarge = 8 cores |
.2c suffix | Enhanced SSD storage (High-availability Edition) | mysql.z4.xlarge.2c |
.2 suffix | Local SSD storage (High-availability Edition) | mysql.z4.xlarge.2 |
.1c suffix | Enhanced SSD storage (Master-replica Edition) | mysql.g4.xlarge.1c |
High-availability Edition with enhanced SSDs
Instance types follow the naming pattern mysql.z{ratio}.{size}.2c. The z prefix indicates the High-availability Edition. The {ratio} segment (2, 4, or 8) reflects the memory-to-CPU ratio, and {size} is the instance size class.
| Instance type | CPU and memory specifications | Maximum number of connections |
|---|---|---|
| mysql.z2.medium.2c | 2 CPU cores, 4 GB memory | 1,200 |
| mysql.z4.medium.2c | 2 CPU cores, 8 GB memory | 2,000 |
| mysql.z8.medium.2c | 2 CPU cores, 16 GB memory | 2,500 |
| mysql.z2.large.2c | 4 CPU cores, 8 GB memory | 2,000 |
| mysql.z4.large.2c | 4 CPU cores, 16 GB memory | 2,500 |
| mysql.z8.large.2c | 4 CPU cores, 32 GB memory | 5,000 |
| mysql.z2.xlarge.2c | 8 CPU cores, 16 GB memory | 2,500 |
| mysql.z4.xlarge.2c | 8 CPU cores, 32 GB memory | 5,000 |
| mysql.z8.xlarge.2c | 8 CPU cores, 64 GB memory | 10,000 |
| mysql.z2.2xlarge.2c | 16 CPU cores, 32 GB memory | 5,000 |
| mysql.z4.2xlarge.2c | 16 CPU cores, 64 GB memory | 10,000 |
| mysql.z8.2xlarge.2c | 16 CPU cores, 128 GB memory | 20,000 |
| mysql.z2.4xlarge.2c | 32 CPU cores, 64 GB memory | 10,000 |
| mysql.z4.4xlarge.2c | 32 CPU cores, 128 GB memory | 20,000 |
| mysql.z8.4xlarge.2c | 32 CPU cores, 256 GB memory | 40,000 |
| mysql.z2.8xlarge.2c | 64 CPU cores, 128 GB memory | 20,000 |
| mysql.z4.8xlarge.2c | 64 CPU cores, 256 GB memory | 40,000 |
| mysql.z8.8xlarge.2c | 64 CPU cores, 512 GB memory | 80,000 |
| mysql.z2.13xlarge.2c | 104 CPU cores, 192 GB memory | 30,000 |
| mysql.z4.13xlarge.2c | 104 CPU cores, 384 GB memory | 60,000 |
| mysql.z8.13xlarge.2c | 104 CPU cores, 768 GB memory | 120,000 |
High-availability Edition with local SSDs
Instance types follow the naming pattern mysql.z{ratio}.{size}.2. The .2 suffix (without a trailing c) indicates local SSD storage. This configuration tops out at 64 cores and 512 GB memory.
| Instance type | CPU and memory specifications | Maximum number of connections |
|---|---|---|
| mysql.z2.medium.2 | 2 CPU cores, 4 GB memory | 1,200 |
| mysql.z4.medium.2 | 2 CPU cores, 8 GB memory | 2,000 |
| mysql.z8.medium.2 | 2 CPU cores, 16 GB memory | 2,500 |
| mysql.z2.large.2 | 4 CPU cores, 8 GB memory | 2,000 |
| mysql.z4.large.2 | 4 CPU cores, 16 GB memory | 2,500 |
| mysql.z8.large.2 | 4 CPU cores, 32 GB memory | 5,000 |
| mysql.z2.xlarge.2 | 8 CPU cores, 16 GB memory | 2,500 |
| mysql.z4.xlarge.2 | 8 CPU cores, 32 GB memory | 5,000 |
| mysql.z8.xlarge.2 | 8 CPU cores, 64 GB memory | 10,000 |
| mysql.z2.2xlarge.2 | 16 CPU cores, 32 GB memory | 5,000 |
| mysql.z4.2xlarge.2 | 16 CPU cores, 64 GB memory | 10,000 |
| mysql.z8.2xlarge.2 | 16 CPU cores, 128 GB memory | 20,000 |
| mysql.z2.4xlarge.2 | 32 CPU cores, 64 GB memory | 10,000 |
| mysql.z4.4xlarge.2 | 32 CPU cores, 128 GB memory | 20,000 |
| mysql.z8.4xlarge.2 | 32 CPU cores, 256 GB memory | 40,000 |
| mysql.z2.8xlarge.2 | 64 CPU cores, 128 GB memory | 20,000 |
| mysql.z4.8xlarge.2 | 64 CPU cores, 256 GB memory | 40,000 |
| mysql.z8.8xlarge.2 | 64 CPU cores, 512 GB memory | 80,000 |
Master-replica Edition with enhanced SSDs
Instance types follow the naming pattern mysql.g{ratio}.{size}.1c. The g prefix indicates the Master-replica Edition. This edition includes a small size class (1 core, 2 GB) that the High-availability Edition does not offer.
| Instance type | CPU and memory specifications | Maximum number of connections |
|---|---|---|
| mysql.g2.small.1c | 1 CPU core, 2 GB memory | 600 |
| mysql.g2.medium.1c | 2 CPU cores, 4 GB memory | 1,200 |
| mysql.g4.medium.1c | 2 CPU cores, 8 GB memory | 2,000 |
| mysql.g8.medium.1c | 2 CPU cores, 16 GB memory | 2,500 |
| mysql.g2.large.1c | 4 CPU cores, 8 GB memory | 2,000 |
| mysql.g4.large.1c | 4 CPU cores, 16 GB memory | 2,500 |
| mysql.g8.large.1c | 4 CPU cores, 32 GB memory | 5,000 |
| mysql.g2.xlarge.1c | 8 CPU cores, 16 GB memory | 2,500 |
| mysql.g4.xlarge.1c | 8 CPU cores, 32 GB memory | 5,000 |
| mysql.g8.xlarge.1c | 8 CPU cores, 64 GB memory | 10,000 |
| mysql.g2.2xlarge.1c | 16 CPU cores, 32 GB memory | 5,000 |
| mysql.g4.2xlarge.1c | 16 CPU cores, 64 GB memory | 10,000 |
| mysql.g8.2xlarge.1c | 16 CPU cores, 128 GB memory | 20,000 |
| mysql.g2.4xlarge.1c | 32 CPU cores, 64 GB memory | 10,000 |
| mysql.g4.4xlarge.1c | 32 CPU cores, 128 GB memory | 20,000 |
| mysql.g8.4xlarge.1c | 32 CPU cores, 256 GB memory | 40,000 |
| mysql.g2.8xlarge.1c | 64 CPU cores, 128 GB memory | 20,000 |
| mysql.g4.8xlarge.1c | 64 CPU cores, 256 GB memory | 40,000 |
| mysql.g8.8xlarge.1c | 64 CPU cores, 512 GB memory | 80,000 |
| mysql.g2.13xlarge.1c | 104 CPU cores, 192 GB memory | 30,000 |
| mysql.g4.13xlarge.1c | 104 CPU cores, 384 GB memory | 60,000 |
| mysql.g8.13xlarge.1c | 104 CPU cores, 768 GB memory | 120,000 |