All Products
Search
Document Center

PolarDB:Custom purchase

Last Updated:May 23, 2025

This topic describes how to purchase a PolarDB cluster in the PolarDB console.

Prerequisites

You have registered and logged on to an Alibaba Cloud account.

Precautions

PolarDB for PostgreSQL (Compatible with Oracle) now supports the 64-bit DATE type that is compatible with Oracle. This feature requires PolarDB JDBC driver 42.2.9.1.2 or later. Otherwise, precision loss may occur. For more information, see 64-bit DATE types.

Procedure

  1. Go to the PolarDB Custom Purchase page and configure the following parameters.

    Category

    Configuration item

    Description

    Billing Method

    • Subscription: an upfront payment model. You select and pay upfront for resources when you create a cluster. The longer the subscription duration, the larger the discount. This method is suitable for business services with predictable and consistent workloads over an extended time period.

    • Pay-as-you-go: a postpaid model. You select resources but do not need to pay upfront for the resources when you create a cluster. You are charged based on your actual resource usage. This method is suitable for business services with fluctuating or unpredictable workloads.

    Note

    If the current billing method of your PolarDB cluster does not meet your business requirements, you can change the billing method at any time based on your actual needs.

    Region

    The region of the cluster. You cannot change the region after the cluster is created. For more information, see Regions and zones.

    Note
    • Make sure that you deploy the PolarDB cluster in the same region as the Elastic Compute Service (ECS) instance on which your applications run. Otherwise, the cluster and instance cannot communicate with each other over the internal network. They can communicate only over the Internet, which degrades performance.

    • You can deploy the PolarDB cluster in the same zone as the ECS instance to which you want to connect or in a different zone. Deploying the PolarDB cluster and the ECS instance in the same zone can reduce network latency and increase access speeds.

    Creation Method

    The method that you want to use to create a PolarDB cluster.

    • Create Primary Cluster: creates a new PolarDB cluster.

    • Restore from Recycle Bin: creates a cluster by restoring a backup file of a deleted cluster from the recycle bin.

      • Source Version: the version of the deleted cluster.

      • Deleted Clusters: the name of the deleted cluster.

      • Backup History: the backup set from which you want to restore the cluster.

    Note

    You can select other options to create clusters of other database engines.

    Engine And Version

    Database Engine

    Set Database Engine to PolarDB for PostgreSQL (Compatible with Oracle) 2.0.

    Database Edition

    Set the value to Enterprise Edition.

    Edition

    Cluster Edition (Recommended) is selected by default.

    Specification

    Set the value to Dedicated.

    Note

    For more information about compute node specifications, see Specifications of compute nodes.

    CPU Architecture

    x86 is selected by default.

    Network And Zone

    Primary Zone

    The primary zone of the cluster.

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

    • You can deploy your PolarDB cluster and ECS instance in the same zone or in different zones.

    Network Type

    Configure the VPC and vSwitch of the cluster.

    The network type is fixed as VPC. You do not need to configure this parameter. Make sure that you deploy the PolarDB cluster in the same region as the Elastic Compute Service (ECS) instance on which your applications run. Otherwise, the cluster and instance cannot communicate with each other over the internal network. They can communicate only over the Internet, which degrades performance.

    • If an existing VPC meets your network requirements, select the VPC. For example, if you have an existing ECS instance and the VPC to which the ECS instance belongs meets your network requirements, select the VPC.

    • Otherwise, use the default VPC and the vSwitch:

      • Default VPC:

        • Only one VPC is specified as the default VPC in the region that you select.

        • The CIDR block of the default VPC uses a 16-bit subnet mask, such as 192.168.0.0/16, and provides up to 65,536 private IP addresses.

        • The default VPC does not count against the quota of VPCs that you can create.

      • Default vSwitch:

        • Only one vSwitch is specified as the default vSwitch in the zone that you select.

        • The CIDR block of the default vSwitch uses a 20-bit subnet mask, such as 192.168.0.0/20, and provides up to 4,096 private IP addresses.

        • The default vSwitch does not count against the quota of vSwitches that you can create in a VPC.

    • If the default VPC and vSwitch cannot meet your requirements, you can create your custom VPC and vSwitch. For more information, see Create and manage a VPC.

    High-availability Mode

    The high availability mode of the cluster.

    • Double Zones (Hot Standby Storage Cluster Enabled): PolarDB deploys the primary cluster, including compute nodes that back up each other and primary storage, together with the hot standby storage cluster in the same region. The two clusters each have three replicas, which adds up to six replicas. This delivers higher SLA than when this feature is disabled.

    • Single Zone (Hot Standby Storage Cluster Disabled): Only the primary cluster is deployed. The cluster has three replicas, and the storage unit price is half of that when this feature is enabled. This delivers lower SLA than when this feature is enabled.

    • Note

      For more information about the hot standby storage cluster, see High-availability mode.

    Secondary Zone

    The secondary zone of the cluster. You need to configure this parameter only when you set High-availability Mode to Double Zones (Hot Standby Storage Cluster Enabled). Automatically Allocated is supported.

    Specifications And Proxy

    Node specifications

    The specifications of the compute node.

    Note

    For more information about compute node specifications, see Specifications of compute nodes.

    Nodes

    By default, the cluster has one primary node and one read-only node. The cluster must have one primary nodes. You can determine the number of read-only nodes based on your business requirements. We recommend that you add at least one read-only node to ensure high availability of the cluster.

    Storage

    Storage Type

    PolarDB supports two storage types: PSL5 and PSL4.

    • PSL5: the storage type supported in the historical versions of PolarDB. It delivers higher performance, reliability, and availability.

    • PSL4: a new storage type for PolarDB.PSL4 uses the smart-SSD technology developed by Alibaba Cloud to compress and decompress data at the physical SSD disk level. This can minimize the storage price of data while keeping a high disk performance.

    Note

    You cannot change the storage type of an existing cluster. If you want to change the storage type of a cluster, we recommend that you create a new cluster with the desired storage type and then migrate data from the original cluster to the new cluster.

    For more information about the two storage types, see How to choose between PSL4 and PSL5.

    Storage Billing Method

    PolarDB supports two storage billing methods: Pay-as-you-go and Subscription.

    • Pay-as-you-go: The storage capacity dynamically scales as the data volume increases or decreases. You do not need to specify the storage capacity when you create a cluster, and you are charged for the actual storage usage.

    • Subscription: You must purchase a specific amount of storage capacity when you create a cluster.

    For more information about the two storage billing methods, see Billing rules for storage.

    Note

    You need to configure this parameter only when you set Billing Method to Subscription.

    Storage Capacity

    The amount of storage capacity that you want to purchase for your cluster when you set the storage billing method to Subscription. Valid values: 10 GB to 500 TB. The value must be a multiple of 10 GB.

    Note

    You need to configure this parameter only when you set Billing Method to Subscription and Storage Billing Method to Subscription.

    Advanced Options (optional)

    Cluster Name

    You can select Auto-generated or Custom.

    If you select Auto-generated, the system automatically generates a cluster name after the cluster is created. You can modify the automatically generated cluster name.

    If you select Custom, you must enter a cluster name. The name must meet the following requirements:

    • The name cannot start with http:// or https://.

    • The name must be 2 to 256 characters in length.

    Resource Group

    Select a resource group from the created resource groups.

    Note

    A resource group is a group of resources that belong to an Alibaba Cloud account. Resource groups allow you to manage resources in a centralized manner. A resource can belong to only one resource group. For more information, see Classify resources into resource groups and grant permissions on the resource groups.

    Enable TDE

    Specify whether to enable transparent data encryption (TDE). After TDE is enabled, PolarDB encrypts the data files of your cluster. You do not need to modify the code to allow access to your cluster. However, TDE degrades the performance of your cluster by 5% to 10%.

    Note
  2. On the right side of the page, confirm that all parameters (such as Billing Method, Region, Deployment Mode, and Resource Group) meet your business requirements. Then, configure the parameters listed in the following table.

    Parameter

    Description

    Quantity

    The number of clusters that you want to purchase.

    Note
    • You can create a maximum of 50 clusters at a time. This allows you to create multiple clusters in specific scenarios such as deploying multiple game servers at a time.

    • You can purchase a maximum of 50 clusters with your Alibaba Cloud account.

    Duration

    You need to configure the Duration of the cluster only when the billing method is Subscription. You also need to specify whether to enable Auto-renewal.

    Note

    We recommend that you enable Auto-renewal to prevent service interruptions caused by overdue payments.

    View the total cost and detailed cost breakdown (such as compute specifications, storage, and network). Read the terms of service. If you agree to them, click Buy Now. On the Payment page, confirm the order and payment method and click Subscribe.

The cluster is created 10 to 15 minutes after you complete the payment. Then, you can view the newly created cluster on the Clusters page.

Note
  • If specific nodes in the cluster are in the Creating state, the cluster is being created and is unavailable. The cluster is only available when the cluster is in the Running state.

  • Make sure that you have selected the region in which the cluster is deployed. Otherwise, you cannot view the cluster.

Related API operations

Operation

Description

CreateDBCluster

Creates a PolarDB cluster.

DescribeDBClusters

Queries PolarDB clusters.

DescribeDBClusterAttribute

Queries the attributes of a PolarDB cluster.

DescribeAutoRenewAttribute

Queries the auto-renewal status of a subscription PolarDB cluster.

ModifyAutoRenewAttribute

Specifies the auto-renewal status of a subscription PolarDB cluster.