This topic describes how to manually pause and resume an AnalyticDB for PostgreSQL instance. This way, you can pause and resume your instance based on your business requirements to reduce costs.
Prerequisites
Before you begin, ensure that you have:
A pay-as-you-go AnalyticDB for PostgreSQL instance
An instance in Serverless manual scheduling mode or elastic storage mode
To pause: an instance in the Running state
To resume: an instance in the Paused state
Billing
Paused instances incur no computing resource fee. Storage is always charged regardless of instance state.
| Instance state | Computing resource fee | Storage resource fee |
|---|---|---|
| Running | Charged | Charged |
| Pausing | Charged | Charged |
| Paused | Free of charge | Charged |
| Idle | Free of charge | Charged |
| Resuming | Free of charge | Charged |
For more information, see Pricing.
Pause an instance
Before you pause an instance, note the following:
Pausing terminates all running SQL statements immediately.
AnalyticDB for PostgreSQL takes a snapshot backup automatically when the pause begins.
The pause process takes 10 to 15 minutes to complete.
To pause an instance:
Log on to the AnalyticDB for PostgreSQL console.
In the upper-left corner, select a region.
Find the target instance and choose More > Pause Instance in the Actions column.
In the confirmation dialog, click OK.
The instance state changes from Running to Pausing. After the pause completes, the state changes to Paused.
While an instance is paused
Connections and SQL execution are unavailable.
Only three operations are available: release the instance, restore data, or resume the instance.
If the paused instance shares data through the data sharing feature, existing subscribers can still consume the shared data, but new subscriptions are blocked.
Resume an instance
The resume process requires approximately 15 minutes to complete.
Log on to the AnalyticDB for PostgreSQL console.
In the upper-left corner, select a region.
Find the target instance and choose More > Resume Instance in the Actions column.
In the confirmation dialog, click OK.
The instance state changes from Paused to Resuming. After the resume completes, the state changes to Running.