All Products
Search
Document Center

AnalyticDB:Per-second billing

Last Updated:Mar 28, 2026

AnalyticDB for PostgreSQL bills pay-as-you-go instances by the second — charges accrue while an instance is running, and stop when it is paused or starting after a resume. This model has been in effect since August 2, 2022.

Applicable resources

Per-second billing applies to the following resources:

ModeResource
Elastic storage modeComputing resources
Elastic storage modeStorage resources
Serverless modeComputing resources
Note In Serverless mode, storage resources are still billed on an hourly basis.

Settlement period

Each settlement period starts and ends on the hour. A bill is generated at the end of each settlement period. For details, see Bills.

Example: An instance is created at 10:59:30 and released at 12:50:30.

Settlement periodDuration billedNotes
10:00:00–11:00:0030 secondsBilling starts at the moment of creation
11:00:00–12:00:003,600 secondsInstance runs for the full period
12:00:00–13:00:003,030 secondsBilling stops at the moment of release

Billing during instance operations

Specification changes

When you change instance specifications, the instance passes through three states: Running → Scaling → Running.

StateSpecifications used for billing
Running (before change)Original specifications
ScalingOriginal specifications
Running (after change)New specifications

Example: A specification change completes at 11:30:00 during the 11:00:00–12:00:00 settlement period.

  • 11:00:00–11:30:00: billed at original specifications

  • 11:30:00–12:00:00: billed at new specifications

Pause and resume

When you pause and resume an instance, it passes through five states: Running → Pausing → Paused → Starting → Running.

StateCharges
RunningBilled
PausingBilled
PausedNo charges
StartingNo charges
Running (after resume)Billed

Example: An instance reaches Paused state at 11:20:00, then reaches Running state again at 11:40:00.

  • 11:00:00–11:20:00: billed at current specifications

  • 11:20:00–11:40:00: no charges (instance is Paused or Starting)

  • 11:40:00–12:00:00: billed at current specifications

Note For Serverless mode instances, these rules apply to computing resources only. Storage resources are still billed on an hourly basis.