AnalyticDB for PostgreSQL provides the vector search engine optimization feature to suit vector analysis scenarios such as AI-generated content (AIGC) and vector search. This topic describes how to create an AnalyticDB for PostgreSQL instance that has vector search engine optimization enabled.
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.
Free trial
Alibaba Cloud provides a free trial for new users of AnalyticDB for PostgreSQL V6.0 instances in elastic storage mode. If you are new to AnalyticDB for PostgreSQL, you can apply for a free trial. If you are ineligible for a free trial, you can perform the following procedure to create an instance in the AnalyticDB for PostgreSQL console.
Procedure
- Log on to the AnalyticDB for PostgreSQL console.
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.
In the upper-right corner of the console, click Create Instance.
Configure the Product Type parameter. Valid values:
Subscription: You must pay an upfront subscription fee when you create an instance. For long-term use, the subscription billing method is more cost-effective than the pay-as-you-go billing method. You are charged lower prices for longer subscription durations.
Pay-as-you-go: A pay-as-you-go instance is billed per hour based on your actual resource usage. For short-term use, we recommend that you select the pay-as-you-go billing method. If you no longer need a pay-as-you-go instance, you can release the instance to reduce costs.
On the buy page, configure the parameters that are described in the following table.
Parameter
Description
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.
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 Elastic Storage Mode.
NoteThe 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.
For information about the resource types that are available in different regions and zones, see Instance specifications.
Edition
The edition of the instance. Valid values: High-performance Edition (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.
Engine Version
The engine version of the instance. Select 6.0 Standard Edition.
Vector Engine Optimization
Specifies whether to enable vector search engine optimization. Select Enabled.
Vector search engine optimization can improve the performance of your instance in vector analysis, but consumes large amounts of memory resources and significantly reduces query concurrency. Before you enable vector search engine optimization, make sure that you understand its impact.
NoteYou can enable vector search engine optimization only for V6.0 instances in elastic storage mode.
You can enable vector search engine optimization only for instances whose compute node specifications are 4 cores and 32 GB or higher.
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. The available specifications vary based on the resource type and edition. For more information, see Instance specifications.
NoteThis parameter is unavailable for instances in Serverless auto scheduling mode.
Compute Nodes
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.
Valid values for High-performance Edition instances in elastic storage mode: 2 to 512, in 2 increments.
Valid values for High-availability Edition instances in elastic storage mode: 4 to 512, in 4 increments.
Disk Storage Type
The disk storage type. Valid values:
PL1 ESSD (Recommended)
ESSD_PL0
PL2 ESSD (High-throughput)
For information about the performance differences between the disk storage types, see Block storage performance.
NoteThis parameter is available only for instances in elastic storage mode.
Encryption Type
The encryption type of the instance. You can select Not Encrypted or Disk Encryption.
NoteThis parameter is available only for instances in elastic storage mode.
CMK
The encryption key of disks.
This parameter is available only when you select Elastic Storage Mode and Disk Encryption.
Single Node Storage Capacity
The storage capacity of each node in the instance. Unit: GB. Valid values: 50 to . The value must be a multiple of 50.
NoteThis parameter is available only for instances in elastic storage mode.
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?
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.
Duration
The subscription duration of the instance.
NoteThis parameter is available only when you set the Product Type parameter to Subscription.
Click Buy Now.
On the Confirm Order page, perform the following operations based on the value of the Product Type parameter:
Subscription
Confirm the information in the Parameters section, read and select the Terms of Service, and then click Pay.
On the Purchase page, click Subscribe.
Pay-as-you-go
Confirm the information in the Parameters section, read and select the Terms of Service, and then click Activate Now.
After the instance is created, go to the Instances page to view the instance.
NoteIt takes a period of time to initialize an AnalyticDB for PostgreSQL instance. You can perform operations only when the instance is in the Running state.