You can create an ApsaraDB RDS instance in the ApsaraDB RDS console or by calling an API operation. This topic describes how to create an ApsaraDB RDS for MariaDB instance in the console.
Prerequisites
A Resource Access Management (RAM) user must have the AliyunRDSFullAccess and AliyunBSSOrderAccess permissions to create an RDS instance. For more information about how to grant permissions, see Authorize resources to a RAM user.
Procedure
Select a Billing Method.
Billing method
Recommendation
Benefit
Subscription
For long-term use, select Subscription (one-time payment).
Subscription is more cost-effective than pay-as-you-go. Longer subscription durations offer greater discounts.
Pay-as-you-go
For short-term use, select Pay-as-you-go (hourly billing).
You can create a pay-as-you-go instance first and then convert it to subscription after you confirm that it meets your requirements.
Release the instance at any time to stop billing.
NoteView the price in the lower-right corner of the page. The final price is calculated after you complete the configuration.
Select the Region where you want to create the RDS instance.
Create the RDS instance in the same region as your ECS instance to ensure optimal performance.
NoteYou cannot change the region after you purchase an RDS instance. Make sure the RDS instance is in the same region as the ECS instance to enable service interconnection.
If you connect from a device other than an ECS instance, select a region close to your device and connect using the public endpoint.
Select the database Database Engine and Storage Type.
NoteThe Edition is set to High-availability Edition. This edition includes a primary node and a secondary node in a classic high availability architecture. It is suitable for production environments.
The Product Type is set to Standard.
Select the Database Database Engine.
Select MariaDB.
Select a Storage Type. For more information, see Storage types.
Item
ESSD
Scalability
Up to 32 TB.
No transient connections occur during storage capacity expansion.
Upgrade, downgrade, add, or remove nodes in minutes.
Supports automatic storage expansion.
Performance
PL1<PL2<PL3
A PL2 ESSD delivers up to 2 times the IOPS and throughput of a PL1 ESSD.
A PL3 ESSD delivers up to 20 times the IOPS and 11 times the throughput of a PL1 ESSD.
Backup
Backups complete in minutes or seconds.
The highest backup frequency is once every 15 minutes.
NoteSelect Cloud Disk Encryption for additional data protection. For more information, see Disk encryption.
Configure the instance network. The network type is set to VPC.
Select a VPC. We recommend selecting the same VPC as your ECS instance. Services in different VPCs cannot connect to each other over an internal network.
Specify whether to Add to Whitelist. If you add the CIDR block, ECS instances in the same VPC can access the RDS instance.
NoteIf you select No, you can manually configure a whitelist after the instance is created. For more information, see Configure a whitelist.
Select the zone, vSwitch, network, and Deployment Method for the instance.
Zone
There is no functional difference between zones in the same region.
An ECS instance achieves better performance when accessing an RDS instance in the same zone. The performance difference is minor if they are in different zones within the same region.
vSwitch
Select an existing vSwitch or click Create vSwitch. For information about parameter configurations, see Create and manage a vSwitch.
Deployment method
Multi-zone Deployment (Recommended): The primary and secondary nodes are deployed in different zones within the same region. This provides cross-zone disaster recovery.
If you select Deployment Method: Multi-zone Deployment, you must also select 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 (General-purpose or Dedicated).
Category
Description
Features
General-purpose Instance Types
Shared memory and I/O
Dedicated CPU and storage
Low price, cost-effective
Dedicated Instance Types
Dedicated CPU, memory, storage, and I/O
NoteDedicated 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.
Better and more stable performance
NoteThe Basic Edition does not support dedicated instance types.
Select the required specifications (CPU cores and memory). For a list of specifications, see Instance types.
Select the Storage Capacity.
The available storage capacity range depends on the instance type and storage type you selected.
You can adjust the storage capacity in increments of at least 5 GB.
Optional. If you set the Billing Method parameter to Subscription, configure the Subscription Duration parameter in the upper-right corner of the page.
Alibaba Cloud provides lower prices for longer subscription durations. You can move your pointer over View Details next to the Price to view the details.
Set the custom parameters. You can use the default values if you do not have specific requirements.
Parameter
Description
Port
The port can be initialized. Value range: 1000 to 5999.
Release Protection
For pay-as-you-go instances, you can enable Release Protection to prevent accidental release. For more information, see Enable or disable release protection.
Resource Group
Select the default resource group or a custom resource group to help manage your instances.
Instance Name
Specify a custom name to easily identify the instance.
Tags
Use tags to classify and manage instances. For more information, see Filter instances by tag.
Privileged Account
Create a privileged account when you create the RDS instance. Each instance can have only one privileged account. The privileged account cannot be deleted.
In the upper-right corner of the page, select the Quantity of instances to purchase.
The default is 1. You can purchase up to 20 instances at a time. Select the required quantity.
Confirm the order information, quantity, and subscription duration (for subscription instances only). Click Confirm Order and complete the payment. The console displays a Payment successful or Service activated message.
NoteFor subscription instances, select Enable Auto-renewal to prevent service disruptions due to a missed renewal payment.
If you purchase by month, the auto-renewal cycle is one month. If you purchase by year, the auto-renewal cycle is one year. The cycle specified in the order takes precedence. You can cancel auto-renewal at any time. For more information, see Renew an expired resource and Auto-renewal.
View 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.
NoteInstance creation takes about 1 to 5 minutes. Refresh the page to view the status.
What to do next
FAQ
References
Create an RDS instance by calling an API operation: Create an RDS instance
To create other types of instances, see:
