Help Center> GaussDB> Getting Started> Buying a DB Instance
Updated on 2024-05-08 GMT+08:00

Buying a DB Instance

Scenarios

You can buy a DB instance on the management console.

GaussDB supports pay-per-use and yearly/monthly billing. GaussDB allows you to tailor your computing resources and storage space to your business needs.

Prerequisites

You have registered a HUAWEI ID and enabled Huawei Cloud services.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and project.

  3. Click in the upper left corner of the page and choose Databases > GaussDB. The GaussDB console is displayed.

  4. On the Instances page, click Buy DB Instance.

  5. On the displayed page, select a billing mode, configure parameters about the instance, and click Next.

    Figure 1 Billing mode and basic information
    Table 1 Basic information

    Parameter

    Description

    Billing Mode

    GaussDB provides two billing modes, yearly/monthly billing and pay-per-use billing.

    • Yearly/Monthly: You pay upfront for the amount of time you expect to use the DB instance for. You will need to make sure you have a top-up account with a sufficient balance or have a valid payment method configured first.
    • Pay-per-use: You can start using the DB instance first and then pay as you go. Pricing is listed on a per-hour basis, but bills are calculated based on the actual usage duration.

    Region

    A region where the tenant is located. You can change the region on the instance creation page, or go back to the Instances page and change it in the upper left corner.

    NOTE:

    Products in different regions cannot communicate with each other over a private network. After the DB instance is created, you cannot change its region.

    DB Instance Name

    The instance name must start with a letter and can consist of 4 to 64 characters. Only letters (case-sensitive), digits, hyphens (-), and underscores (_) are allowed.

    DB Engine Version

    GaussDB 3.223 is supported.

    DB Instance Type

    • Distributed: You can add nodes for distributed instances as needed to handle large volumes of concurrent requests.
    • Primary/Standby: Primary/Standby instances are suitable for scenarios with small and stable volumes of data, where data reliability and service availability are extremely important.

    Deployment Model

    • Distributed instances
      • Independent: Database components are deployed on different nodes. This model is suitable for where high reliability and stability are required and the instance scale is large.
    • Primary/Standby instances
      • HA (1 primary + 2 standby): 3-node deployment where there is a shard. The shard contains one primary DN and two standby DNs.
      • Single replica: single-node deployment where there is only one CMS component and one DN. To create a single-replica instance, ensure that the instance version is 2.2 or later.
      • 1 primary + 1 standby + 1 log: 3-node deployment where there is one shard with three replicas. The shard contains one primary DN, one standby DN, and one log-dedicated DN.
    CAUTION:

    Single replica: The availability (or SLA) cannot be guaranteed because the instance is deployed on a single server.

    Transaction Consistency

    This parameter is available only to distributed instances.

    • Strong consistency: When an application updates data, every user can query all data that has been successfully committed, but performance is affected.
    • Eventual consistency: When an application updates data, the data users queried may be different, and some users may not obtain the most current value. The most current data may take a bit of time to become available for query by all users. However, DB instances with eventual consistency generally have higher performance.

    Failover Priority

    This parameter is available only to distributed instances.

    To use this parameter, contact customer service to apply for the required permissions. The default value is Reliability. For details about how to change the failover priority for an existing instance, see Changing Failover Priority.

    • Reliability: Data consistency is given priority during a failover. This is recommended for applications with highest priority for data consistency.
    • Availability: Database availability is given priority during a failover. This is recommended for applications that require their databases to provide uninterrupted online services.
      NOTE:
      If Availability is selected, exercise caution when modifying the following database parameters. For details about how to modify parameters, see Modifying Instance Parameters.
      • recovery_time_target: If this parameter is changed, the DB instance will undergo frequent forced failovers. To change this parameter, contact technical support first.
      • audit_system_object: If this parameter is changed, DDL audit logs will be lost. To change this parameter, contact technical support first.

    Replicas

    This parameter is available only to distributed instances.

    Total number of DNs each shard, primary and standby DNs combined. There are three replicas in a shard, indicating that there are one primary and two standby DNs in a shard.

    Shards

    This parameter is available only to distributed instances. It indicates the number of shards in an instance. A shard contains multiple DNs. The number of DNs in a shard depends on the value of Replicas, for example, if Replicas is set to 3, there are three DNs (one primary and two standby DNs) in a shard.

    Coordinator Nodes

    This parameter is available only to distributed instances. It indicates the number of CNs in an instance.

    A CN provides the following functions:

    • It receives access requests from applications and returns execution results to clients.
    • It breaks down tasks and distributes task fragments to different DNs for parallel processing.
    NOTICE:

    It is recommended that the number of CNs be less than or equal to twice the number of shards.

    AZ

    A DB instance can be deployed in one AZ or three AZs.

    An AZ is a physical region where resources have their own independent power supply and networks. AZs are physically isolated but interconnected through an internal network.

    Time Zone

    Select a time zone according to the region hosting your DB instance when you buy the instance.

    Figure 2 Specifications and storage
    Table 2 Specifications and storage

    Parameter

    Description

    Instance Specifications

    Indicates the CPU and memory specifications of a DB instance. Different instance specifications have different numbers of database connections.

    For details, see Instance Specifications.

    Dedicated Cloud

    M6.

    NOTE:

    This option is available only when you have purchased Dedicated Computing Cluster (DCC).

    Resource Type

    EVS.

    NOTE:

    This option is available only when you have purchased Dedicated Computing Cluster (DCC).

    Storage Type

    Determines the instance read/write speed. The higher the maximum throughput is, the higher the instance read/write speed can be.

    GaussDB supports ultra-high I/O storage with a maximum throughput of 350 MB/s.

    Storage Space (GB)

    Contains the system overhead required for inode, reserved block, and database operation. After buying an instance, you can scale up its storage space. For details, see Scaling Up Storage Space.

    Free Backup Space

    GaussDB provides free backup storage equal to the amount of your purchased storage space. After the free backup space is used up, you will be billed for the additional space used.

    Disk Encryption

    • Disable: Encryption is disabled.
    • Enable: Encryption is enabled, which improves data security but affects system performance.

      Key Name: If disk encryption is enabled, you need to select or create a key, which is used by tenants.

    Figure 3 Network and database configuration
    Table 3 Network

    Parameter

    Description

    VPC

    A virtual network where your GaussDB instances are located. A VPC isolates networks for different workloads. You need to create or select the required VPC. For details about how to create a VPC, see Creating a VPC.

    If no VPC is available, GaussDB allocates a default VPC for you.

    NOTICE:

    After the GaussDB instance is created, the VPC cannot be changed.

    Subnet

    Provides dedicated network resources that are logically isolated from other networks for network security. Subnets take effect only within a specific AZ. Dynamic Host Configuration Protocol (DHCP) is enabled by default for subnets in which you plan to create GaussDB instances and cannot be disabled. A private IP address is automatically assigned when you create a GaussDB instance.

    NOTE:
    • By default, a subnet supports up to 256 IP addresses. A distributed instance can require up to 1,286 IP addresses. You are advised to use a subnet that can provide 2,048 IP addresses.

    Security Group

    Controls the access that traffic has in and out of a GaussDB instance. By default, the security group associated with the instance is authorized.

    • If you need to change the security group when buying a distributed instance, ensure that the TCP ports in the inbound rule include the following: 40000-60480, 20050, 5000-5001, 2379-2380, 6000, 6500, and <database port>-(<database port> + 100). (For example, if the database port is 8000, the TCP ports for the security group must include 8000-8100.)
    • If you need to change the security group when buying a primary/standby instance, ensure that the TCP ports in the inbound rule include the following: 20050, 5000-5001, 2379-2380, 6000, 6500, and <database port>-(<database port> + 100). (For example, if the database port is 8000, the TCP ports for the security group must include 8000-8100.)

    The security group enhances security by controlling access to GaussDB from other services. When you select a security group, you must ensure that it allows the client to access your DB instances. If you do not need to specify a security group when creating a DB instance, you can submit a service ticket to request it at Service Tickets > Create Service Ticket in the upper right corner of the management console.

    If no security group is available, GaussDB allocates a default security group for you.

    Database Port

    Port used by applications to access the database. Value range: 1024 to 39998. Default value: 8000. The following ports are used by the system and cannot be used: 2378, 2379, 2380, 4999, 5000, 5999, 6000, 6001, 8097, 8098, 12016, 12017, 20049, 20050, 21731, 21732, 32122, 32123, and 32124.

    Single Floating IP Address

    Specifies whether to enable the single floating IP address policy. If this policy is enabled, only one floating IP address is assigned to an instance and is bound to the primary node. The floating IP address does not change after a primary/standby switchover. If this policy is disabled, each node is bound to a floating IP address. The floating IP address changes after a primary/standby switchover.

    The constraints on the single floating IP address policy are as follows:

    • This policy is only available to primary/standby instances of version 3.206 or later.
    • The single floating IP address policy is configurable only during instance creation and cannot be modified afterwards.
    Table 4 Database configuration

    Parameter

    Description

    Administrator

    DB administrator. The default username is root.

    Administrator Password

    Enter a strong password and periodically change it to improve security, preventing security risks such as brute force cracking.

    NOTICE:

    The password must contain:

    • 8 to 32 characters.
    • At least three types of the following: uppercase letters, lowercase letters, digits, and special characters (~!@#%^*-_=+?,).

    Keep your password secure because you cannot retrieve it from the system.

    After a DB instance is created, you can reset this password. For details, see Resetting the Administrator Password.

    Confirm Password

    Enter the administrator password again.

    Table 5 Parameter templates

    Parameter

    Description

    Parameter Template

    A template of parameters for creating an instance. The template contains engine configuration values that are applied to one or more instances. You can modify the instance parameters as required after the DB instance is created.

    For details, see Modifying Parameters in a Parameter Template.

    Enterprise Project

    If the DB instance has been associated with an enterprise project, select the target project from the Enterprise Project drop-down list.

    You can also go to the enterprise project management console to create a project. For details, see Enterprise Management User Guide.

    Table 6 Tags

    Parameter

    Description

    Tag

    This parameter is optional. Adding tags helps you better identify and manage your DB instances. Each instance can have up to 20 tags.

    If your organization has configured tag policies for GaussDB, add tags to instances based on the policies. If a tag does not comply with the policies, instance creation may fail. Contact your organization administrator to learn more about tag policies.

    If you have any questions about the price, click Pricing details at the bottom of the page.

    The performance of your GaussDB instance depends on its settings. Hardware items include the instance specifications, storage type, and storage space.

  6. Confirm the displayed details.

    Confirm your settings for pay-per-use DB instances.

    • If you need to modify your settings, click Previous.
    • If you do not need to modify your settings, click Submit.

    Confirm your order for yearly/monthly DB instances.

    • If you need to modify your settings, click Previous.
    • If you do not need to modify your settings, click Pay Now to go to the payment page. On the displayed page, select a payment method and click Pay.

  7. To view and manage the GaussDB instance, go to the Instances page.

    • When a GaussDB instance is being created, the instance status is Creating.
    • To refresh the instance list, click in the upper right corner of the list. When the creation process is complete, the instance status will be Available.
    • An automated full backup is immediately triggered after once your instance is created.
    • The default database port is 8000. You can change it during instance creation or after an instance is created.