This topic describes how to create an instance in the AnalyticDB for PostgreSQL console.

Prerequisites

  • An Alibaba Cloud account is created. If you do not have an Alibaba Cloud account, visit the Alibaba Cloud official website to create an account.
  • If this is the first time that you create an AnalyticDB for PostgreSQL instance, make sure that a service-linked role is created. For more information, see Service linked role.
    1. Log on to the AnalyticDB for PostgreSQL console.
    2. In the upper-right corner, click Create Instance.
    3. In the Create Service Linked Role message, click OK.

Procedure

  1. Log on to the AnalyticDB for PostgreSQL console.
  2. In the upper-right corner, click Create Instance to go to the buy page.
  3. Configure the Product Type parameter. Valid values:
    • Subscription : You must pay a subscription fee when you create an instance. This billing method is more cost-effective than the pay-as-you-go billing method and is suitable for long-term use. Larger discounts are provided for longer subscription periods.
    • Pay-as-you-go: You are charged on an hourly basis for the resources that you use. The pay-as-you-go billing method is suitable for short-term use. If you no longer need a pay-as-you-go AnalyticDB for PostgreSQL instance, you can release the instance to reduce costs.
    Note You can change the billing method of an instance from pay-as-you-go to subscription. However, you cannot change the billing method from subscription to pay-as-you-go. For more information, see Change the billing method from pay-as-you-go to subscription.
  4. Configure the parameters that are described in the following table.
    Parameter Description
    Region

    Select the region where you want to create the instance.

    Note
    • After you complete the purchase, you cannot change the region of the instance. To accelerate access from users to the instance, we recommend that you select a region that is close to the geographical location of the users.
    • Make sure that the instance is deployed in the same region as the Elastic Compute Service (ECS) instance to which you want to connect. Otherwise, the AnalyticDB for PostgreSQL instance and the ECS instance can communicate only over the Internet. As a result, the performance of the instance may be compromised.
    Zone

    A zone is an independent geographical location in a region. All zones in a region provide the same level of service performance.

    You can create the instance in the same zone as the ECS instance to which you want to connect or in a different zone.

    Network Type Select the network type of the instance. You can select only VPC.
    VPC Select the ID of the virtual private cloud (VPC).

    A VPC is an isolated virtual network that provides higher security and higher performance than the classic network. Before you configure this parameter, make sure that a VPC and a vSwitch are created in the region where you want to create the instance. For more information, see Create and manage a VPC.

    VSwitch Select a vSwitch in the specified VPC.
    Instance Resource Type Select the resource type of the instance. Valid values:
    • Serverless: You can specify only the required computing resources without the need to reserve storage resources.
    • Flexible Storage Mode: You can separately expand disks and smoothly scale out instances online.
    • Reserved Storage Mode: You cannot separately expand disks or smoothly scale out instances.
    Note The resource types that are available vary based on the region and zone. If the current region and zone do not provide the required instance resource type, change the region and zone.
    Edition Select an edition. Valid values: High-availability and High Performance (Basic Edition).
    Note You can select High Performance (Basic Edition) only if you select Reserved Storage Mode for the Instance Resource Type parameter. For more information about Basic Edition, see Basic Edition.
    Coordinator Nodes Select the number of coordinator nodes. Default value: 1.

    The maximum number of coordinator nodes that you can select in the console is 2. If you require more coordinator nodes, Submit a ticket to contact technical support.

    Compute Node Specifications

    Node Cores

    Select specifications for the compute nodes. The available specifications vary based on the resource type and edition. For more information, see Instance specifications.
    Note During the public preview from January 01, 2022 to January 31, 2022, you can select only 4C16G for instances in Serverless mode.
    Nodes Select the number of compute nodes. The instance performance increases with the number of compute nodes. The number of compute nodes that you can select varies based on the resource type and edition:
    • Serverless

      High-availability: Valid values: 2 to 512. The number must be an integral multiple of two.

      Note During the public preview from January 01, 2022 to January 31, 2022, you can select up to 12 compute nodes for instances in Serverless mode.
    • Elastic Storage Mode
      • High-availability: Valid values: 4 to 512. The number must be an integral multiple of four.
      • High Performance (Basic Edition): Valid values: 2 to 512. The number must be an integral multiple of two.
    • Reserved Storage Mode

      High-availability: Valid values: 2, 4, 8, 12, 16, 24, 32, 64, 96, and 128.

    Storage Disk Type

    Storage Type

    Select a disk type. The available disk types vary based on the resource type and edition:
    • Serverless: You do not need to select a disk type.
    • Elastic Storage Mode
      • High-availability: You can select Enhanced SSD (ESSD) or Ultra Disk.
      • High Performance (Basic Edition): You can select only Enhanced SSD (ESSD).
    • Reserved Storage Mode: You can select only SSD.
    Encryption Type Select Not Encrypted or Disk Encryption.
    Note You can configure this parameter only if you select Elastic Storage Mode. Disk encryption is not supported for instances in Serverless mode or reserved storage mode.
    CMK Select a disk encryption key.

    This parameter is required only if you select Elastic Storage Mode and Disk Encryption.

    Single Node Storage Capacity Select the exclusive storage capacity for each node in the instance. Valid values: 50 to 4,000. Unit: GB. The value must be an integral multiple of 50.
    Note You can configure this parameter only if you select Elastic Storage Mode.
    Purchase Plan Select a subscription duration for the instance.
    Note This parameter is required only if you select Subscription.
  5. Click Buy Now.
  6. On the Confirm Order page, perform the following operations based on the value of the Product Type parameter:
    • Subscription
      1. Confirm information in the Parameters section, select Terms of Service, and then click Pay.
      2. On the Purchase page, click Subscribe.
    • Pay-as-you-go

      On the Confirm Order page, confirm the information in the Parameters section, select Terms of Service, and then click Activate Now.

  7. After the instance is created, you can view the instance on the Instances page.
    Note It requires a specific amount of time to initialize an AnalyticDB for PostgreSQL instance. You can perform operations only when the instance is in the Running state.

Related API operations

API Description
CreateDBInstance Creates an AnalyticDB for PostgreSQL instance.

You can call this operation to create an AnalyticDB for PostgreSQL instance in Serverless mode, elastic storage mode, or reserved storage mode.

CreateECSDBInstance Creates an AnalyticDB for PostgreSQL instance in elastic storage mode.