Per-second billing

更新时间:
复制 MD 格式

Effective August 2, 2022, AnalyticDB for PostgreSQL instances that use the pay-as-you-go billing method are billed on a per-second basis.

Per-second billing overview

Per-second billing applies to pay-as-you-go AnalyticDB for PostgreSQL instances. The billing precision is 1 second. Alibaba Cloud generates a bill for each settlement period and deducts the corresponding fees from your account. If you change the specifications of an instance or pause and resume an instance within an hour, charges are adjusted by the second based on the current specifications and instance state.

Applicable resources

  • Elastic storage mode:
    • computing resources
    • storage resources
  • Serverless mode
    • computing resources
    Note In serverless mode, storage resources are still billed on an hourly basis.

Settlement period

For pay-as-you-go AnalyticDB for PostgreSQL instances, Alibaba Cloud calculates fees and generates a bill hourly. A new settlement period begins once the previous one is settled. For more information, see bills.

For example, if you create a pay-as-you-go instance at 10:59:30 and release it at 12:50:30, the settlement periods are as follows:

  • The first settlement period is 10:00:00–11:00:00. Charges accrue from 10:59:30 to 11:00:00. The billed duration for this settlement period is 30 seconds.
  • The second settlement period is 11:00:00–12:00:00. Charges accrue from 11:00:00 to 12:00:00. The billed duration for this settlement period is 3,600 seconds.
  • The third settlement period is 12:00:00–13:00:00. Charges accrue from 12:00:00 to 12:50:30. The billed duration for this settlement period is 3,030 seconds.

Specification change billing

During a specification change, an instance transitions through the following states in sequence: RunningScalingRunning. You are billed for the original specifications during the first Running state and the Scaling state. Billing switches to the new specifications during the second Running state.

For example, you change the specifications of a pay-as-you-go instance and the change is complete at 11:30:00. The following bills are generated for the 11:00:00–12:00:00 settlement period:

  • 11:00:00–11:30:00: A bill is generated for the original specifications.
  • 11:30:00–12:00:00: A bill is generated for the new specifications.

Pause and resume billing

When an instance is paused and then resumed, it transitions through the following states: RunningPausingPausedResumingRunning. You are not charged for computing resources when the instance is in the Paused or Resuming state.

For example, you pause an instance, and it enters the Paused state at 11:20:00. You later resume the instance, which enters the Running state at 11:40:00. For the 11:00:00–12:00:00 settlement period, bills are generated as follows:

  • 11:00:00–11:20:00: A bill is generated based on the instance specifications.
  • 11:20:00–11:40:00: No bill is generated.
  • 11:40:00–12:00:00: A bill is generated based on the instance specifications.
Note These rules apply to computing resources only. In serverless mode, storage resources are still billed on an hourly basis.