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 do not have 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 RAM user. For more information about authorization, see Grant permissions to the 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 click Database Free Tier to apply for a free trial. If you are ineligible for a free trial, you can create an instance in the AnalyticDB for PostgreSQL console based on the following procedure.
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 dialog box, click OK. For more information about service-linked roles, see Service linked role.
In the upper-right corner of the console, click Create Instance.
Configure the Product Type parameter. Valid values:
Subscription: You must pay a subscription fee when you create an instance. For long-term usage, 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: You are charged on an hourly basis for the resources that you use. 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.
NoteYou can change the billing method of an instance from pay-as-you-go to subscription, but not the other way around. For more information, see Switch between billing methods.
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 your required instance resource type, change the region and zone.
For more 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 (Basic Edition) and High-availability.
For more information, see Overview and 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 vector analysis performance of your instance, but consumes large amounts of memory resources and significantly decreases the concurrency of queries. Make sure that you have learned the impact before you enable vector search engine optimization.
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 more.
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.
NoteThis parameter is unavailable for instances in Serverless automatic scheduling mode.
Compute Node Specifications
The specifications of compute nodes.
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 the 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.
Storage Disk Type
The disk storage type. Valid values:
PL1 ESSD (Recommended)
ESSD_PL0
PL2 ESSD (High-throughput)
For information about performance differences between the disk storage types, see EBS performance.
Encryption Type
The encryption type of the instance. You can select Not Encrypted or Disk Encryption.
NoteThis parameter is available only when you set the Instance Resource Type parameter to 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 6000. The value must be a multiple of 50.
Network Type
The network type of the instance. It is automatically set to VPC.
VPC
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. For more information, see Create and manage a VPC.
vSwitch
The vSwitch to which the instance is connected.
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 more information about the sample dataset, see Manage the 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.