Pause and resume an instance

更新时间:
复制 MD 格式

AnalyticDB for PostgreSQL lets you manually pause and resume an instance on demand to reduce costs.

Prerequisites

  • The instance uses the pay-as-you-go billing method.

  • This feature is available only for instances in Serverless manual scheduling mode or elastic storage mode.

    Note

    You do not need to manually pause or resume instances in Serverless automatic scheduling mode. These instances automatically manage their state based on traffic. If an instance has no traffic, it enters an idle state, and you are not charged for the computing resource fee.

  • To pause an instance, its status must be Running.

  • To resume an instance, its status must be Paused.

Usage notes

  • When you pause an instance, any ongoing SQL queries are terminated.

  • When you pause an instance, the system immediately creates a snapshot backup.

  • When an instance is paused, you cannot connect to its database or execute SQL queries.

  • When an instance is paused, you can only release the instance, restore the instance from a backup, and resume the instance.

  • If a paused Serverless instance is a source for data sharing, currently subscribed instances are not affected. However, new instances cannot subscribe.

Billing

The total cost for an AnalyticDB for PostgreSQL instance includes a computing resource fee and a storage resource fee. The following table describes how you are billed for each instance status. For detailed pricing information, see Pricing.

Instance status

Computing fee

Storage fee

Pausing

Charged

Charged

Paused

Not charged

Charged

Idle

Not charged

Charged

Resuming

Not charged

Charged

Running

Charged

Charged

Note

When an instance is in the Pausing or Running state, computing resources are subject to per-second billing.

Pause an instance

  1. Log on to the AnalyticDB for PostgreSQL console.
  2. In the upper-left corner of the console, select a region.
  3. Find the target instance. In the Actions column, choose More > Pause Instance.

  4. In the dialog box, click OK.

    While the instance is pausing, its status is Pausing. Once paused, its status changes to Paused.

    Note

    The pause process takes approximately 10 to 15 minutes.

Resume an instance

  1. Log on to the AnalyticDB for PostgreSQL console.
  2. In the upper-left corner of the console, select a region.
  3. Find the target instance. In the Actions column, choose More > Resume Instance.

  4. In the dialog box, click OK.

    While the instance is resuming, its status is Resuming. Once resumed, its status changes to Running.

    Note

    The resume process takes approximately 15 minutes.