This topic describes how to create an AnalyticDB for PostgreSQL instance in Serverless mode.
Prerequisites
An Alibaba Cloud account is created. If you have not created an Alibaba Cloud account, visit the Alibaba Cloud official website to create an account.
The AliyunGPDBFullAccess policy of AnalyticDB for PostgreSQL is attached to the Alibaba Cloud account or a Resource Access Management (RAM) user.
Procedure
- Log on to the AnalyticDB for PostgreSQL console.
In the upper-right corner of the console, click Create Instance to go to the buy page.
The first time you create an AnalyticDB for PostgreSQL instance, you must create a service-linked role. In the Create Service Linked Role message, click OK.
On the buy page, configure the parameters that are described in the following table.
Parameter
Description
Product Type
The billing method of the instance. Select Subscription or Pay-as-you-go.
Region and Zone
The region where you want to create the instance.
NoteAfter you complete the purchase, you cannot change the region of the instance. To accelerate access to the instance, we recommend that you select a region that is close to your geographical location.
Make sure that the AnalyticDB for PostgreSQL instance is deployed in the same region as the Elastic Compute Service (ECS) instance to which you want to connect. Otherwise, you cannot connect these instances over an internal network and make them deliver the optimal performance.
You can find the regions and zones applicable to AnalyticDB for PostgreSQL instances in Serverless mode.
The zone where you want to create the instance. Each zone is an independent physical location within a region. Zones in the same region do not have substantial differences.
You can create the instance in the same zone as the ECS instance to which you want to connect or in a different zone.
Instance Resource Type
The resource type of the instance. Select Serverless Mode.
Serverless Mode
The Serverless mode. By default, Manual Scheduling is selected.
NoteThe Serverless automatic scheduling mode of AnalyticDB for PostgreSQL is in invitational preview. To apply for invitational preview, submit a ticket.
Edition
The edition of the instance. Valid values: High Performance (Basic Edition) and High-availability Edition.
NoteYou can select High-performance Edition (Basic Edition) only when you set the Instance Resource Type parameter to Elastic Storage Mode. For more information, see High-performance Edition.
Coordinator Node Resources
The specifications of coordinator node resources. We recommend that you select coordinator node resources with
the number of compute units (CUs) to be equal to the number of CPU cores per compute node
.If you need more coordinator node resources, you can add more resources after you create the instance. For more information, see Manage coordinator node resources.
NoteThis parameter is unavailable for instances in Serverless auto scheduling mode.
Compute Node Specifications
The specifications of compute nodes. Select 4 Cores, 16 GB or 8 Cores, 32 GB.
Compute Nodes
The number of compute nodes. The instance performance increases with the number of compute nodes.
Valid values when Edition is set to High-availability Edition: 2 to 512, in 2 increments.
Network Type
The network type of the instance. The value is automatically set to VPC.
VPC
The ID of the virtual private cloud (VPC) in which the instance resides.
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.
vSwitch
The vSwitch to which the instance is connected. If no optional vSwitches are available, you can switch to another zone or create a vSwitch in the current zone.
Resource Group
The resource group to which the instance belongs. For more information about resource groups, see What is Resource Management?
SSL Encryption
Specifies whether to enable the SSL encryption feature. Select Enable SSL Encryption or Disable SSL Encryption.
Sample Data
Specifies whether to load sample data to the instance. For information about the sample dataset, see Manage a sample dataset.
Service-linked Role
The service-linked role.
If you have already created a service-linked role, Created is displayed on the buy page. If you have not created a service-linked role, click Create Service-linked Role.
Click Buy Now.
On the Confirm Order page, confirm the information in the Parameters section, read and select the Terms of Service, and then click Activate Now.
Click Console to go to the Instances page.
NoteInstance initialization of AnalyticDB for PostgreSQL requires approximately 5 to 20 minutes to complete. You can perform operations only when the instance is in the Running state.