The assured serverless feature enables the serverless capabilities for existing subscription and pay-as-you-go ApsaraDB RDS for PostgreSQL instances with fixed specifications.
Function introduction
The assured serverless feature elastically adjusts CPU and memory on fixed-specification RDS PostgreSQL instances based on workload to handle periodic traffic spikes, reduce usage costs, and improve resource utilization.
For business scenarios with irregular traffic spikes, the instance automatically upgrades when traffic spikes occur, enhancing instance stability and ensuring business continuity.
After traffic spikes end, the instance automatically downgrades based on CPU and memory usage to avoid resource waste and control database O&M costs.
Comparison with serverless instances
Instances with assured serverless enabled have the following advantages compared to Serverless instances (with Serverless billing method):
Support for more features: Supports features such as PgBouncer connection pool, SSL encryption, and Babelfish for RDS PostgreSQL.
Greater flexibility: Assured serverless supports elastic adjustment of CPU or memory separately to meet user requirements in specific business scenarios. Serverless instances only support elastic adjustment in RCU units (with a fixed CPU to memory ratio of 1:2).
Higher scale-out limit: Assured serverless supports scaling up to twice the original instance CPU and memory specifications, meeting scenarios requiring large specifications, while Serverless instances support a maximum of 16 RCU.
Prerequisites
The RDS PostgreSQL instance must meet the following conditions:
Product type: Standard
Billing method: Subscription, pay-as-you-go
Billing
During the public preview period, when scaling up instance specifications through the assured serverless feature, no additional fees are charged for the added resources, and you are billed only for the original specifications.
Notes
During the public preview, the instance performance will not be downgraded. However, instances with the assured serverless feature enabled do not guarantee the Service Level Agreement (SLA).
When the assured serverless feature takes effect, if the current host resources are tight, instance migration (to an idle host) may occur, causing a transient connection of no more than 30 seconds. Therefore, we recommend that you configure the effective time during off-peak business hours.
During the temporary automatic upgrade period of assured serverless, RDS for PostgreSQL instances do not allow operations such as changing configurations, migrating zones, or upgrading major or minor versions.
Enable assured serverless
Go to the Instances page. In the top navigation bar, select the region in which the RDS instance resides. Then, find the RDS instance and click the ID of the instance.
In the Configuration Information section of the Basic Information page, click Settings next to Assured Serverless.
In the Assured Serverless Settings page that appears, turn on the feature switch and configure the related function parameters.
Parameter
Description
Resources Threshold for Assured Serverless
Configure the elastic scaling CPU Upper Limit and Memory Upper Limit.
Maximum CPU Resources: Each adjustment is 1 core, with a maximum of twice the initial CPU configuration of the instance.
Maximum Memory: The unit is GB, each adjustment is 2 GB, with a maximum of twice the initial memory configuration of the instance.
Effective Policy
Select an effective policy.
Immediately.
Within Maintenance Window, which means the feature takes effect during the instance's Maintenance Window. You can view and configure the Maintenance Window in the Configuration Information section.
NoteWhen the Assured Serverless feature takes effect, if the current host resources are tight, instance migration (to an idle host) may occur, causing a transient connection of no more than 30 seconds. Therefore, we recommend that you configure the effective time during off-peak business hours.
Upgrade Threshold
The CPU Threshold and Memory Threshold for elastic scale-out.
When the CPU or memory usage of the instance exceeds the set threshold, the system automatically scales out the CPU and memory of the instance to the upper limit specifications.
NoteWhen the CPU or memory usage of the instance exceeds the scale-up threshold, Assured Serverless will directly scale up to the set specification upper limit, while Serverless instances adjust instance specifications in steps according to load fluctuations.
Downgrade Threshold
The CPU Threshold and Memory Threshold for elastic scale-in.
During the scale-in observation period (90 seconds), when both the CPU and memory usage of the instance are lower than the set thresholds, the system will automatically scale in the CPU and memory of the instance to the initial specifications in steps (CPU decreases by 1 core, memory decreases by 2 GB).
If during the observation period, the CPU or memory usage of the instance exceeds the set Upgrade Threshold, the system will maintain or scale out the CPU and memory of the instance to the set upper limit specifications until the memory and CPU usage of the instance meet the Downgrade Threshold again.
Click OK.