Create a MariaDB instance in the ApsaraDB RDS console or by calling the CreateDBInstance API operation.
Prerequisites
Before you begin, make sure that you have:
An Alibaba Cloud account
The AliyunRDSFullAccess and AliyunBSSOrderAccess permissions granted to your Resource Access Management (RAM) user. For details, see Authorize resources to a RAM user
Procedure
Go to the ApsaraDB RDS instance creation page. The price is displayed in the lower-right corner of the page and updates as you change configuration options.
Select a billing method
Select a Billing Method.
| Billing method | Best for | Details |
|---|---|---|
| Subscription | Long-term production workloads | Lower cost than pay-as-you-go. Longer subscription durations offer greater discounts. |
| Pay-as-you-go | Short-term testing or evaluation | Release the instance at any time to stop billing. You can convert a pay-as-you-go instance to subscription later. |
Select a region
Select the Region where you want to create the instance.
The region cannot be changed after purchase.
Same region as your ECS instance: Place the RDS instance in the same region as your Elastic Compute Service (ECS) instance to enable internal network connectivity and optimal performance.
No ECS instance: Select a region close to your users and connect through the public endpoint.
Select a database engine and storage type
The Edition is automatically set to High-availability Edition, which deploys a primary node and a secondary node in a classic high-availability architecture. The Product Type is set to Standard.
For Database Engine, select MariaDB.
Select a Storage Type. The available storage type for MariaDB is ESSD. For more information, see Storage types.
Aspect ESSD Scalability Up to 32 TB. No transient connections occur during storage expansion. Supports automatic storage expansion. Upgrade, downgrade, add, or remove nodes in minutes. Performance Three performance levels: PL1 < PL2 < PL3. A PL2 ESSD delivers up to 2x the IOPS and throughput of a PL1 ESSD. A PL3 ESSD delivers up to 20x the IOPS and 11x the throughput of a PL1 ESSD. Backup Backups complete in minutes or seconds. The highest backup frequency is once every 15 minutes. (Optional) Select Cloud Disk Encryption for additional data protection. For more information, see Disk encryption.
Configure the network
The network type is fixed to VPC.
Select a VPC. Use the same VPC as your ECS instance. Services in different VPCs cannot communicate over the internal network.
Specify whether to Add to Whitelist. If you enable this option, ECS instances in the same VPC can access the RDS instance.
Configure zones and deployment method
Zone: Select a zone. An ECS instance achieves slightly better performance when it accesses an RDS instance in the same zone, but the performance difference across zones within the same region is minor.
vSwitch: Select an existing vSwitch or click Create vSwitch. For more information, see Create and manage a vSwitch.
Deployment Method:
Note Multi-zone Deployment is only available for subscription instances. Pay-as-you-go instances support Single-zone Deployment only.Method Description Multi-zone Deployment (recommended) The primary and secondary nodes are deployed in different zones within the same region. Provides cross-zone disaster recovery. Specify the Zone and Network of Primary Node and Zone and Network of Secondary Node. Single-zone Deployment The primary and secondary nodes are deployed in the same zone.
Select an instance type
Select a Category.
Note Dedicated Host is the top-tier configuration of the Dedicated category. It exclusively occupies all CPU, memory, storage, and I/O resources of a physical server.Category Resources When to use General-purpose Instance Types Shared memory and I/O. Dedicated CPU and storage. Cost-effective choice for most workloads. Dedicated Instance Types Dedicated CPU, memory, storage, and I/O. Better and more stable performance for demanding workloads. Select the specifications (CPU cores and memory). For a full list, see Instance types.
Select the storage capacity
Select the Storage Capacity. The available range depends on your instance type and storage type.
Storage capacity is adjustable in increments of at least 5 GB.
Set the subscription duration (subscription only)
If you selected Subscription as the billing method, configure the Subscription Duration in the upper-right corner of the page.
Longer subscription durations offer lower prices. Hover over View Details next to the price to see a breakdown.
Configure optional parameters
The default values work for most use cases.
| Parameter | Description |
|---|---|
| Port | The initial database port. Valid values: 1000 to 5999. |
| Resource Group | Select the default resource group or a custom group to organize instances. |
| Instance Name | A custom name to identify the instance. |
| Tags | Classify and manage instances with tags. For more information, see Filter instances by tag. |
| Privileged Account | Create a privileged account during instance creation. Each instance supports only one privileged account, and it cannot be deleted. |
Set the quantity and confirm
In the upper-right corner of the page, set the number of instances to purchase. The default is 1. You can purchase up to 20 instances at a time.
Review the order information, quantity, and subscription duration (for subscription instances). Click Confirm Order and complete the payment. The console displays a Payment successful or Service activated message.
Verify the instance
Go to the Instances page. In the top navigation bar, select the region of the instance. Find the new instance by its Creation Time.
Instance creation takes about 1 to 5 minutes. Refresh the page to check the status.
Next steps
After the instance is created, complete the following setup:
Configure a whitelist -- Required before any client can connect.
Apply for or release a public endpoint -- Only needed if you connect from outside the VPC.
FAQ
How do I find the total number of RDS instances in my account?
Go to the Overview page in the ApsaraDB RDS console. This page shows the total number of RDS instances across all database engines, along with the regions and running instance counts.
I just created an instance but cannot find it. What should I check?
| Possible cause | What to do |
|---|---|
| Wrong region selected | In the top navigation bar of the ApsaraDB RDS console, switch to the region where you created the instance. |
| Insufficient resources | The selected zone may not have enough resources. Check the Orders page for refunded fees. Try a different zone. |
| RAM policy blocking unencrypted instances | If a RAM policy prevents creating unencrypted instances, select the ESSD storage type, enable Cloud Disk Encryption, configure the Key parameter, and try again. For more information, see Use RAM policies to manage the permissions of RAM users on ApsaraDB RDS instances. |
References
Create an RDS instance by API: CreateDBInstance
Create instances for other database engines: