Updated at: 2022-02-22 GMT+08:00

Buying an Instance

This section describes how to buy a DB instance that is compatible with Redis APIs.

By default, each tenant can have up to 50 GaussDB(for Redis) instances. To apply for a higher quota, contact customer service.

Prerequisites

  • You have registered a HUAWEI CLOUD account.

Procedure

  1. Log in to the management console.
  2. Click Service List and choose Databases > GaussDB (for Redis).

    Figure 1 Logging in to the GaussDB (for Redis) console

  3. On the Instance Management page, click Buy DB Instance.
  4. On the displayed page, select a billing mode, select your instance specifications and click Next.

    Figure 2 Billing mode and basic information
    Table 1 Billing mode

    Parameter

    Description

    Billing Mode

    Select Yearly/Monthly or Pay-per-use.

    • Yearly/Monthly
    • For pay-per-use instances
      • You are billed for usage based on how much time the service is in use.
      • If you expect to use the service extensively over a long period of time, you can change its billing mode from pay-per-use to yearly/monthly to reduce costs. 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 instance 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 a DB after creating the instance.

    DB Instance Name

    The instance name must meet the following requirements:

    • Can be the same as an existing instance name.
    • Can contain 4 to 64 characters.
    • Must start with a letter (A to Z or a to z). Only letters, digits (0 to 9), hyphens (-), and underscores (_) are allowed.

    You can change the name of an instance after it is created. For details, see section Changing an Instance Name.

    Compatible API

    Redis

    DB Instance Type

    Proxy cluster

    DB Engine Version

    5.0

    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 internal network connections.

    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 across the three AZs.
    Figure 3 Specifications and storage
    Table 3 Specifications and storage

    Parameter

    Description

    Node Specifications

    Larger vCPU specifications can provide better performance. Select the specifications that meet your service requirements.

    For details about the instance specifications, see DB Instance Specifications.

    Nodes

    Select the number of nodes based on the site requirements.

    After an instance is created, you can add nodes. For details, see Adding Nodes.

    Storage

    Select proper storage space to meet your service requirements.

    After an instance is created, you can scale up its storage space. For details, see Scaling Up Storage Space.

    Load Balancer IP Address

    This option is selected by default and cannot be changed.

    After an instance is created, click the instance to go to the Basic Information page. In the Network Information area, you can find the load balancer IP address in Load Balancer IP Address field, which can be used to connect to the instance. For details, see Connecting to an Instance Using a Load Balancer Address (Recommended).

    Figure 4 Viewing the load balancer IP address

    The load balancer IP address is in the open beta test (OBT) phase. You can contact customer service to apply for a free trial.

    Figure 5 Network and database configuration
    Table 4 Network

    Parameter

    Description

    VPC

    The VPC where your instances are located. A VPC isolates networks for different services. You will need to create or select a VPC.

    For details about how to create a VPC, see "Creating a VPC" in Virtual Private Cloud User Guide.

    If there are no VPCs available, the system allocates resources to you by default.

    NOTE:
    • After the GaussDB(for Redis) instance is created, the VPC where the instance resides cannot be changed.
    • If you want to connect to a GaussDB(for Redis) instance through an ECS over an internal network, the GaussDB(for Redis) 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 security reasons.

    NOTE:

    IPv6 subnets are not supported. You are advised to create and select IPv4 subnets.

    Security Group

    A security group controls access between GaussDB(for Redis) instances and other services. Ensure that there is a security group rule configured that 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) encrypts connections between clients and servers, preventing data from being tampered with or stolen during transmission.

    You can enable SSL to improve data security. After an instance is created, you can connect to it using SSL.

    NOTE:
    • This function is in the open beta test (OBT) phase. To use this function, contact customer service.
    • If SSL is not enabled when you create an instance, you can enable it after the instance is created. For details, see Configuring an SSL Connection.
    Table 5 Database configuration

    Parameter

    Description

    Database Password

    Set a password for the administrator. The password:

    • Must be 8 to 32 characters long.
    • Must contain uppercase letters, lowercase letters, digits, and any of 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

    The value must be the same as the database password.

    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. By default, each instance supports up to 10 tags. To use more tags, contact customer service to apply for a quota of 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 digits, letters, underscores (_), and hyphens (-).

    • Value: Optional if the DB instance is going to be tagged

      The value can contain up to 43 characters, including digits, letters, underscores (_), periods (.), and hyphens (-).

    After an instance is created, you can view its tag details on the Tags tab. In addition, you can add, modify, and delete tags for existing DB instances. For details, see Managing Tags.

    Table 7 Required duration

    Parameter

    Description

    Required Duration

    The length of your subscription if you select Yearly/Monthly billing. Subscription lengths range from one month to three years.

    Auto-renew

    • By default, this option is not selected.
    • If you select this option, the auto-renew cycle is determined by the length of the subscription.

  5. 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, read and agree to the service agreement and 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, read and agree to the service agreement and click Submit to start creating the instance.

  6. On the Instance Management page, view and manage your DB instances.

    • 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.

    • After a DB instance is created, the default database port is 8635 and cannot be changed.

close