Updated on 2024-06-11 GMT+08:00

Step 2: Creating a Cluster

Before using GaussDB(DWS) to analyze data, create a cluster. A cluster consists of multiple nodes in the same subnet. These nodes jointly provide services. This section describes how to create a GaussDB(DWS) cluster.

Creating a Cluster

  1. Log in to the GaussDB(DWS) management console.
  2. In the navigation pane, choose Cluster > Dedicated Clusters.
  3. On the Dedicated Clusters page, click Create Cluster in the upper right corner.
  4. Select the region to which the cluster to be created belongs.

    • Region: Select the current working area of the cluster.
    • AZ: Retain the default value.

  5. Configure node parameters.

    • Resource: For example, Standard.
    • CPU Architecture: Select a CPU architecture based on your requirements, for example, x86.
    • Node Flavor: Retain the default value.
    • Nodes: Retain the default value. At least 3 nodes are required.

  6. Configure cluster parameters.

    • Cluster Name: Enter dws-demo.
    • Cluster Version: The current cluster version is displayed and cannot be changed.
    • Default Database: The value is gaussdb, which cannot be changed.
    • Administrator Account: The default value is dbadmin. Use the default value. After a cluster is created, the client uses this database administrator account and its password to connect to the cluster's database.
    • Administrator Password: Enter the password.
    • Confirm Password: Enter the database administrator password again.
    • Database Port: Use the default port number. This port is used by the client or application to connect to the cluster's database.

  7. Configure network parameters.

    • VPC: You can select an existing VPC from the drop-down list. If no VPC has been configured, click View VPC to enter the VPC management console to create one, for example, vpc-dws. Then, go back to the page for creating a cluster on the GaussDB(DWS) console, click next to the VPC drop-down list, and select the new VPC.
    • Subnet: When you create a VPC, a subnet is created by default. You can select the corresponding subnet.
    • Security Group: Select Automatic creation.

      The automatically created security group is named GaussDB(DWS)-<Cluster name>-<GaussDB(DWS) cluster database port>. The outbound allows all access requests, while the inbound enables only Database Port for access requests from clients or applications.

      If you select a custom security group, add an inbound rule to it to enable Database Port for client hosts to access GaussDB(DWS). Table 1 shows an example. For details about how to add an inbound rule, see "Security > Security Group > Adding a Security Group Rule" in the Virtual Private Cloud User Guide.

      Table 1 Inbound rule example

      Parameter

      Example Value

      Protocol/Application

      TCP

      Port

      8000

      NOTE:

      Enter the value of Database Port set when creating the GaussDB(DWS) cluster. This port is used for receiving client connections to GaussDB(DWS). The default port number is 8000.

      Source

      Select IP address, and enter the IP address and subnet mask of the client host that accesses GaussDB(DWS), for example, 192.168.0.10/16.

  8. Configure the enterprise project to which the cluster belongs. You can configure this parameter only when the Enterprise Project Management service is enabled. The default value is default.

    An enterprise project facilitates project-level management and grouping of cloud resources and users.

    You can select the default enterprise project default or other existing enterprise projects. To create an enterprise project, log in to the Enterprise Management console. For details, see Enterprise Management User Guide.

  9. Select Default for Advanced Settings in this example.

    • Default: indicates that the following advanced settings use the default configurations.
      • CNs: Three CNs are deployed by default.
    • Custom: Select this option to configure the following advanced parameters: Automated Snapshot, CNs

  10. Click Create Now. The Confirm page is displayed.
  11. Click Submit.

    After the submission is successful, the creation starts. Click Back to Cluster List. The Dedicated Clusters page is displayed. The initial status of the cluster is Creating. Cluster creation takes some time. Wait for a while. Clusters in the Available state are ready for use.