All Products
Search
Document Center

PolarDB:Purchase a subscription cluster

Last Updated:Apr 12, 2024

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

Prerequisites

An Alibaba Cloud account is registered and is used to log on to the PolarDB console. For more information, see Register and log on to an Alibaba Cloud account.

Usage notes

PolarDB for PostgreSQL (Compatible with Oracle) supports 64-bit DATE types that are compatible with Oracle. You must use the latest version of the PolarDB JDBC driver together with this feature. The JDBC driver must be of 42.2.9.1.2 or later. Otherwise, the loss of precision may occur. For more information, see 64-bit DATE types.

Background information

A cluster consists of one primary node and a maximum of 15 read-only nodes. To ensure high availability, at least one read-only node is required to implement the active-active architecture. A node is a virtual database server. You can create and manage multiple databases on a node.

Note
  • PolarDB for PostgreSQL (Compatible with Oracle) supports only Virtual Private Cloud (VPC). Each VPC is an isolated network on Alibaba Cloud and is more secure than the classic network.

  • To fully leverage the performance capabilities of PolarDB, your PolarDB cluster needs to be deployed in the same internal network with other Alibaba Cloud services. We recommend that you deploy PolarDB clusters and Elastic Compute Service (ECS) instances in the same VPC to make full use of the capabilities provided by PolarDB. If your ECS instance is deployed in a classic network, you need to migrate the instance to a VPC.

Step 1: Complete the basic settings

In the Basic Settings step, you can configure the basic parameters and resources that are required to purchase a cluster. The basic parameters include Billing Method, Region, and Zone. The basic resources include the database engine, scaling range of resources, and storage. After you complete the basic settings, click Next: Cluster Configurations.

  1. Go to the PolarDB cluster buy page.

  2. Set Billing Method to Subscription.

    When you create a subscription cluster, you must pay upfront fees for computing, storage, and proxy resources.

  3. Configure the parameters described in the following table.

    Parameter

    Description

    Region

    The region of the cluster. After a cluster is created, the region of the cluster cannot be changed.

    Note
    • Make sure that the PolarDB cluster and the ECS instance to which you want to connect are deployed in the same region. Otherwise, the PolarDB cluster and the ECS instance can communicate only over the Internet, which degrades cluster performance.

    • You can deploy your PolarDB cluster and the ECS instance in the same zone or in different zones. If you create a PolarDB cluster in the same zone as the ECS instance, the network latency is reduced and the access speed is increased.

    Creation Method

    The method that is used to create a PolarDB cluster.

    • Create Primary Cluster: Create a PolarDB cluster.

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

      • Source Version: the version of the cluster that is deleted.

      • Deleted Clusters: the name of the cluster that is deleted.

      • Backup History: the backup file that you want to restore.

    Note

    You can select other options to create databases of other engines.

    Database Engine

    Set Database Engine to PolarDB for Oracle 1.0 or PolarDB for Oracle 2.0.

    Database Edition

    Enterprise is selected by default.

    Edition

    Cluster Edition (Recommended) is selected by default.

    CPU Architecture

    X86 is selected by default.

    Nodes

    If the cluster edition is Cluster Edition (Recommended), the system creates a primary node and a read-only node that have the same specifications by default. You do not need to configure this parameter.

    Primary Zone

    The primary zone where the cluster resides.

    • 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.

    • You need to specify only the primary zone. The system automatically selects a secondary zone.

    Enable Hot Standby Cluster

    Specifies whether to enable Hot standby storage cluster.

    • If the hot standby storage cluster feature is enabled, both the primary cluster and the hot standby storage cluster are deployed 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.

    • If this feature is 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.

    Specification

    Dedicated is selected by default.

    The compute node specifications.

    Note

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

    PolarProxy Type

    Dedicated Enterprise is selected by default.

    Storage Type

    PolarDB provides two storage types: PSL5 and PSL4.

    • PSL5: the storage types 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

    The storage type of existing clusters cannot be changed. To use PSL4, we recommend that you purchase a new cluster, set the storage type to PSL4, and then migrate the data of an existing cluster to the new cluster.

    For more information about the two storage types, see Comparison between PSL4 and PSL5.

    Storage Billing Method

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

    • Pay-as-you-go: The storage capacity is provided based on a serverless architecture. This way, you do not need to specify the storage capacity when you purchase clusters. The storage capacity of the clusters can be automatically scaled up as the volume of data increases. You are charged for the amount of storage capacity that is consumed by data.

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

    For more information about the two storage billing methods, see Overview.

    Storage Capacity

    The amount of storage capacity that you want to purchase for your cluster. The storage capacity ranges from 50 GB to 100 TB, in 10 GB increments.

    Note

    This parameter is available only when Storage Billing Method is set to Subscription.

    Storage Cost

    The storage cost. You do not need to configure this parameter. You are charged for the amount of storage capacity that is consumed by data on an hourly basis. For more information, see Specifications and pricing.

    Note
    • You do not need to specify the storage capacity when you create a cluster. The system automatically scales storage resources based on data volume.

    • This parameter is available only when Storage Billing Method is set to Pay-as-you-go.

Step 2: Complete the cluster configurations

In the Cluster Configurations step, set the configurations including cluster name and network type. After you complete the cluster configurations, click Next: Confirm Order.

Configure the parameters described in the following table.

Parameter

Description

Cluster Name

You can specify a custom cluster name or use an Auto-generated name.

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

If you select Cluster Name, 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.

  • The name must start with a letter and can contain letters, digits, periods (.), underscores (_), and hyphens (-).

Resource Group

Select a resource group from the drop-down list. For more information, see Create a resource group.

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 belongs to only one resource group. For more information, see Use RAM to create and authorize resource groups.

Network Type

Configure the VPC and vSwitch.

The network type can only be VPC. You do not need to configure this parameter. Make sure that the PolarDB cluster is created in the same VPC as the ECS instance to which you want to connect. Otherwise, the cluster and the ECS instance cannot communicate over an internal network to achieve optimal 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 this VPC.

  • Otherwise, use the default VPC and the default 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. For example, the CIDR block of the default VPC can be 192.168.0.0/16. This CIDR block provides up to 65,536 private IP addresses.

      • The default VPC does not count towards the quota of VPCs that you can create on Alibaba Cloud.

    • 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. For example, the CIDR block of the default vSwitch can be 192.168.0.0/20. This CIDR block provides up to 4,096 private IP addresses.

      • The default vSwitch does not count towards 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 own VPC and vSwitch. For more information, see Create and manage a VPC.

Enable TDE

Specifies whether to enable Transparent Data Encryption (TDE). When 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 reduces the performance of your cluster by 5% to 10%.

Note

TDE cannot be disabled after it is enabled.

Step 3: Confirm the order

Before the cluster is created, make sure that the selected configurations such as the quantity meet your requirements.

  1. Check the selected configurations.

    To modify the settings in a step, click edit.

  2. Specify Quantity.

    Note
    • You can create a maximum of 50 clusters at a time. This allows you to create multiple clusters in specific scenarios. For example, you can deploy multiple game servers at a time.

    • You can purchase up to 50 clusters with your Alibaba Cloud account.

  3. Read and select the Terms of Service.

  4. View the fee and details in the lower part of the page. If they are correct, click Buy Now.

  5. On the Purchase page, confirm the order and the payment method, and click Purchase.

    After you complete the payment, wait 10 to 15 minutes. Then, you can view the new cluster on the Clusters page.

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

    • Make sure that you select the region where 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 details about a PolarDB cluster.

DescribeAutoRenewAttribute

Queries the auto-renewal feature status for a subscription PolarDB cluster.

ModifyAutoRenewAttribute

Configures the auto-renewal feature for a subscription PolarDB cluster.