Step 1: Buy a GaussDB(for Cassandra) Instance
This section describes how to buy a DB instance that is compatible with Cassandra APIs.
By default, each tenant can have up to 50 GaussDB(for Cassandra) instances. To apply for a higher quota, see Quota Management.
Prerequisites
- You have registered a HUAWEI CLOUD account.
- Your account balance is greater than or equal to ¥0.
Procedure
- Log in to the GaussDB NoSQL console.
- On the Instance Management page, click Buy DB Instance.
- On the displayed page, select a billing mode, select your DB instance specifications, and click Next. Figure 1 Billing mode and basic information
Table 1 Billing mode Parameter
Description
Billing Mode
Select Yearly/Monthly or Pay-per-use.
- Yearly/Monthly
- You need to set Required Duration as required. Then, the system deducts the fees incurred from your account based on the service price.
- If you will no longer use the instance for a long time after it expires, you can change the billing mode from yearly/monthly to pay-per-use. For details, see Changing the Billing Mode from Yearly/Monthly to Pay-per-Use. NOTE:
DB instances paid in yearly/monthly mode cannot be deleted. If a DB instance is no longer needed, it can only be unsubscribed. For details, see section Unsubscribing a Yearly/Monthly DB Instance.
- Pay-per-use
- You do not need to set Required Duration because the system deducts the fees incurred from your account based on the service duration.
- If you want to use a DB instance at a low cost for a long period of time, you can change its billing mode from pay-per-use to yearly/monthly. For details, see Changing the Billing Mode from Pay-per-Use to Yearly/Monthly.
Table 2 Basic information Parameter
Description
Region
The region where the tenant is located.
NOTICE:Select the region nearest where you will be accessing the DB from so latency can be kept to a minimum and response time will be faster. Also, products deployed in different regions cannot communicate with each other through a private network and you cannot change the region of an instance after buying the instance.
DB Instance Name
The name can be the same as an existing instance name and have 4 to 64 characters. It must start with a letter and can contain only uppercase letters, lowercase letters, numbers, hyphens (-), and underscores (_).
After the DB instance is created, you can change its name. For details, see Modifying the DB Instance Name.
Compatible API
Cassandra
DB Instance Type
Cluster
DB Engine Version
3.11
CPU Type
- x86
The x86-based CPU architecture uses Complex Instruction Set Computing (CISC). Each instruction can be used to execute low-level hardware operations. The number of instructions is large, and the length of each instruction is different. Executing these instructions is complex and time-consuming.
- Kunpeng
The Kunpeng-based CPU architecture uses Reduced Instruction Set Computing (RISC). RISC is a microprocessor that executes fewer types of computer instructions than CISC but at a higher speed. RISC simplifies computer architecture and improves running speed. Compared with x86-based CPU architecture, Kunpeng-based CPU architecture has a more balanced performance and power consumption ratio.
Kunpeng-based CPU architecture features high density, low power consumption, and high cost-effectiveness for heavy-workload services.
AZ
An AZ is a part of a region with its own independent power supplies and networks. AZs are physically isolated but can communicate through an internal network connection.
Currently, instances can be deployed in a single AZ or three AZs.
- If you want to deploy an instance in a single AZ, select one AZ.
- If you want to deploy an instance across AZs for disaster recovery, select three AZs. In this deployment mode, the nodes are evenly distributed in the three AZs.
If you need to deploy an instance in three AZs, choose Service Tickets > Create Service Ticket in the upper right corner of the management console and submit the application.
Figure 2 Specifications and storage
Table 3 Specifications and storage Parameter
Description
Instance Specifications
The CPU and memory of a DB instance.
Different performance specifications support different numbers of connections and maximum IOPSs. Select CPU and memory specifications based on your service requirements.
After a DB instance is created, you can change its CPU and memory. For details, see Changing a DB Instance Class.
Nodes
The number of nodes ranges from 3 to 12. Select the number of nodes based on the site requirements.
After a DB instance is created, you can add nodes. For details, see Adding Nodes.
Storage Space
Storage space depends on the instance specifications. The minimum storage space is 100 GB, and the storage space you set must be an integer. You can select a minimum of 1 GB at a time.
After a DB instance is created, you can scale up its storage space. For details, see Scaling Up Storage Space.
Figure 3 Network and database configuration
Table 4 Network Parameter
Description
VPC
The virtual network where your DB instances are located. A VPC isolates networks for different services. You can select an existing VPC or create a VPC.
If no VPC is available, the system creates one for you by default.
For details on how to create a subnet, see the "Creating a VPC" section in the Virtual Private Cloud User Guide.
NOTE:- After the GaussDB(for Cassandra) instance is created, the VPC where the instance resides cannot be changed.
- If you want to connect to an instance through an ECS over an internal network, the instance and the ECS must be in the same VPC. If they are not in the same VPC, you can create a VPC peering connection to enable access.
Subnet
A subnet provides dedicated network resources that are logically isolated from other networks for network security.
Security Group
A security group controls access between GaussDB NoSQL instances and other services. When you select a security group, you must ensure that it allows the client to access DB instances.
If there are no security groups available, the system allocates resources to you by default.
SSL
Secure Sockets Layer (SSL) certificates set up encrypted connections between clients and servers, preventing data from being tampered with or stolen during transmission.
You can enable SSL to improve data security. After a DB instance is created, you can connect to it using SSL.
Table 5 Database configuration Parameter
Description
Administrator
The default administrator account is rwuser.
Administrator Password
Set a password for the administrator. The password:
- Must be 8 to 32 characters long.
- Must be a combination of uppercase letters, lowercase letters, numbers, and the following special characters: ~!@#%^*-_=+?
- For security reasons, you must select a strong password. The system will verify the password strength.
Keep this password secure. If you lose it, the system cannot retrieve it.
Confirm Password
Enter the administrator password again.
Parameter Template
A parameter template contains engine configuration values that can be applied to one or more instances.
After a DB instance is created, you can modify its parameters to better meet your service requirements. For details, see Modifying a Parameter Template.
Enterprise Project
This parameter is provided for enterprise users.
An enterprise project facilitates project-level management and grouping of cloud resources and users. The default project is default.
Select an enterprise project from the drop-down list. For more information about enterprise project, see Enterprise Management User Guide.
Table 6 Tags Parameter
Description
Tags
The setting is optional. Adding tags helps you better identify and manage your DB instances. Each DB instance can have up to 20 tags.
A tag is composed of a key-value pair.
- Key: Mandatory if the DB instance is going to be tagged
Each tag key must be unique for each DB instance. The key can include up to 36 characters, including numbers, letters, underscores (_), hyphens (-).
- Value: Optional if the DB instance is going to be tagged
The value can contain up to 43 characters, including numbers, letters, underscores (_), periods (.), and hyphens (-).
After a DB instance is created, you can view its tag details on the Tags tab. In addition, you can add, modify, and delete tags for existing instances. For details, see Tag.
Table 7 Required duration Parameter
Description
Required Duration
Sets the service duration if you select the Yearly/Monthly billing mode. The service duration ranges from one month to three years.
Auto-renewal
- By default, this option is not selected.
- If you select this option, the auto-renew cycle is determined by the selected required duration.
- Yearly/Monthly
- On the displayed page, confirm the DB instance details.
- For yearly/monthly DB instances
- If you need to modify the specifications, click Previous to return to the previous page.
- If you do not need to modify the specifications, click Pay Now to go to the payment page and complete the payment.
- For pay-per-use DB instances
- If you need to modify the specifications, click Previous to return to the previous page.
- If you do not need to modify the specifications, click Submit to start creating the instance.
- For yearly/monthly DB instances
- On the Instance Management page, you can view and manage your DB instances.
- Creating a DB instance takes about 5 to 9 minutes. During the process, the instance status displayed in the DB instance list is Creating.
- After the creation is complete, the status changes to Available.
You can click
in the upper right corner of the page to refresh the DB instance statuses. - During creation, an automated backup policy is enabled by default. A full backup is automatically triggered after a DB instance is created.
Last Article: Connecting to a GaussDB(for Cassandra) Instance Over Private Networks
Next Article: Step 2: Configure Security Group Rules
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.