Buying an RDS for MariaDB Instance
Scenarios
This section describes how to buy a DB instance on the RDS console.
RDS for MariaDB supports the yearly/monthly and pay-per-use billing modes. You can tailor your compute resources and storage space to your business needs.
Procedure
- Sign up for a HUAWEI ID and enable Huawei Cloud services.
- Before purchasing DB instances, ensure that your account balance is sufficient. Top up your account if required.
- For fine-grained permissions management, create an Identity and Access Management (IAM) user and user group on the IAM console and grant the user specific operation permissions. For details, see Creating a User and Granting Permissions.
- Go to the Buy DB Instance page.
- On that page, click the Custom Config tab, select a billing mode, configure information about your DB instance, and click Buy.
- Engine Options
Figure 1 Basic information
Table 1 Basic information Parameter
Description
Billing Mode
- Yearly/Monthly: A prepaid billing mode in which you pay for resources before using it. Bills are settled based on the subscription period. The longer the subscription, the bigger the discount. This mode is a good option for long-term, stable services.
- Pay-per-use: A postpaid billing mode. You pay as you go and just pay for what you use. The DB instance usage is calculated by the second but billed every hour. This mode allows you to adjust resource usage easily. You neither need to prepare for resources in advance, nor end up with excessive or insufficient preset resources.
Region
Region where your resources are located.
NOTE:Products in different regions cannot communicate with each other through a private network. After a DB instance is created, the region cannot be changed. Therefore, exercise caution when selecting a region.
DB Engine
MariaDB
DB Engine Version
For details, see DB Engines and Versions.
Supported DB engine versions may vary by region. For the actual options, see them on the console.
DB Instance Type
- Primary/Standby: uses an HA architecture with a primary DB instance and a synchronous standby DB instance. It is suitable for production databases of large- and medium-sized enterprises in Internet, Internet of Things (IoT), retail e-commerce sales, logistics, gaming, and other sectors. The standby DB instance improves instance reliability and is invisible to you after being created.
- Single: uses a single-node architecture, which is more cost-effective than primary/standby DB instances. It is only recommended for development and testing of microsites, and small and medium enterprises, or for learning about RDS.
AZ
An AZ is a physical region where resources use independent power supply and networks. AZs are physically isolated but interconnected through an internal network. Some regions support both single-AZ and multi-AZ deployment and some only support single-AZ deployment.
To achieve high reliability, RDS will automatically deploy your primary and standby instances in different physical servers even if you deploy them in the same AZ.
You can deploy primary and standby instances in a single AZ or across AZs to achieve failover and high availability.
Storage Type
Determines the DB instance read/write speed. The higher the maximum throughput is, the higher the DB instance read/write speed can be.
- Cloud SSD: cloud disks used to decouple storage from compute. The maximum throughput is 350 MB/s.
- Extreme SSD: uses 25GE network and RDMA technologies to provide you with up to 1,000 MB/s throughput per disk and sub-millisecond latency.
- Instance Configuration
Figure 2 Instance Configuration
Table 2 Specifications and storage Parameter
Description
Instance Class
Refers to the vCPU and memory of a DB instance. Different instance classes support different numbers of database connections and maximum IOPS.
After a DB instance is created, you can change its vCPU and memory. For details, see Changing a DB Instance Class.
Storage Space
Contains the system overhead required for inodes, reserved blocks, and database operation.
Storage space can range in size from 40 GB to 4,000 GB and can be scaled up only by a multiple of 10 GB.
After a DB instance is created, you can scale up its storage space. For details, see Scaling Up Storage Space.
- Basic Settings and Connectivity
Figure 3 Basic Settings and Connectivity
Table 3 Network Parameter
Description
DB Instance Name
Must start with a letter and consist of 4 to 64 characters. Only letters (case-sensitive), digits, hyphens (-), and underscores (_) are allowed.
- If you intend to buy multiple DB instances at a time, the allowed length for each instance name will change.
- If you buy multiple DB instances at a time, they will be named instance-0001, instance-0002, and so on. (instance indicates the DB instance name you specify.)
Administrator
The default login name for the database is root.
Administrator Password
Must consist of 8 to 32 characters and contain the following character types: uppercase letters, lowercase letters, digits, and special characters (~!@#$%^*-_=+?,()&). Enter a strong password and periodically change it for security reasons.
If the password you provide is regarded as a weak password by the system, you will be prompted to enter a stronger password.
Keep this password secure. The system cannot retrieve it.
After a DB instance is created, you can reset this password. For details, see Resetting the Administrator Password.
Confirm Password
Must be the same as Administrator Password.
VPC
A virtual network in which your RDS for MariaDB DB instances are located. A VPC can isolate networks for different workloads. You can select an existing VPC or create a VPC. For details about how to create a VPC, see Creating a VPC and Subnet.
If no VPC is available, RDS for MariaDB allocates a VPC to you by default.
NOTICE:After a DB instance is created, the VPC cannot be changed.
Subnet
Improves network security by providing dedicated network resources that are logically isolated from other networks. Subnets are only valid within a specific AZ. Dynamic Host Configuration Protocol (DHCP) is enabled by default for subnets where you plan to create RDS for MariaDB DB instances and cannot be disabled.
A floating IP address is automatically assigned when you create a DB instance. You can also enter an unused IPv4 floating IP address in the subnet CIDR block.
Security Group
Enhances security by controlling access to your DB instance from other services. A network access control list (ACL) can help control inbound and outbound traffic of subnets in your VPC. Ensure that the security group you select allows the client to access the DB instance.
If no security group is available or has been created, RDS for MariaDB allocates a security group to you by default.
- Additional Options
Table 4 Additional options Parameter
Description
Enterprise Project
If your account has been associated with an enterprise project, select the target project from the Enterprise Project drop-down list.
For more information about enterprise projects, see Enterprise Management User Guide.
Parameter Template
Contains engine configuration values that can be applied to one or more DB instances. If you intend to create a primary/standby DB pair, they use the same parameter template.
You can modify the instance parameters as required after the DB instance is created. For details, see Modifying RDS for MariaDB Instance Parameters.
Time Zone
You need to select a time zone for your instance based on the region hosting your instance. You can change the time zone after the DB instance is created.
Table Name
Specifies whether table names are case sensitive.
NOTE:The case sensitivity of table names for created instances cannot be changed.
Tag
Tags an RDS for MariaDB instance. This parameter is optional. Adding tags to RDS for MariaDB instances helps you better identify and manage the DB instances. A maximum of 20 tags can be added for each DB instance.
If your organization has configured tag policies for RDS, add tags to DB instances based on the policies. If a tag does not comply with the policies, DB instance creation may fail. Contact your organization administrator to learn more about tag policies.
After a DB instance is created, you can view its tag details on the Tags page. For details, see Managing Tags.
- Required Duration and Quantity
Table 5 Required duration and quantity Parameter
Description
Required Duration
This option is available only for yearly/monthly DB instances. The system will automatically calculate the configuration fee based on the selected required duration. The longer the required duration is, the larger discount you will enjoy.
Auto-renew
- This parameter is available only for yearly/monthly DB instances and is not selected by default.
- If you select this option, the auto-renew cycle is determined by the selected required duration.
Quantity
RDS for MariaDB allows you to create DB instances in batches. If you choose to create primary/standby DB instances and set Quantity to 1, a primary DB instance and a standby DB instance will be created at the same time.
- If you have any questions about the price, click Pricing details at the bottom of the page.
- The performance of your DB instance depends on its configurations. Hardware configuration items include the instance specifications, storage type, and storage space.
- Engine Options
- Confirm the specifications.
Figure 4 Confirming specifications (pay-per-use)Figure 5 Confirming specifications (yearly/monthly)
- For pay-per-use DB instances, if you do not need to modify your settings, click Submit.
- For yearly/monthly DB instances, if you do not need to modify your settings, click Pay Now.
- If you need to modify your settings, click Previous.
- Select a payment method and complete the payment.
This operation applies only to the yearly/monthly billing mode.
- To view and manage your DB instance, go to the Instances page.
- When your DB instance is being created, the status is Creating. The status changes to Available after the instance is created. To view the detailed progress and result of the creation, go to the Task Center page.
- The automated backup policy is enabled by default. You can change it after the DB instance is created. An automated full backup is immediately triggered once your DB instance is created.
- After a DB instance is created, you can enter a description for it.
- The default database port is 3306. You can change it after a DB instance is created.
You are advised to change the default database port in a timely manner. For details, see Changing a Database Port.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot