DBW provides an automatic specification scaling management feature for RDS for MySQL (Cloud Disk) instances. Based on the instance CPU threshold and its duration, this feature dynamically adjusts the instance specification. This reduces the frequency of manual configuration changes, optimizing usage costs while ensuring performance. This topic describes how to manage automatic scaling for cloud disk instances in the DBW console.
Enable auto scaling feature itself incurs no additional fees. After a specification change is triggered by a rule, the instance fees will be recalculated based on the new specification and the current billing method of the instance. For more billing information, refer to Billing items and prices of RDS for MySQL. - Usage and mutual exclusion rules:
- Applicable Instances: This feature is only available for instances with High performance cloud disk, Cloud ESSD FlexPL, or Cloud ESSD PL0 storage types. For detailed information on instance specifications, refer to Product specifications.
- This feature is in beta. To use it, Submit a ticket to contact technical support.
- Business impact and risk warnings:
- Risk of transient connection interruptions: During the scaling process, the instance may experience brief disconnections (1 to 3 times) or enter a second-level read-only state. It is recommended to configure automatic retry and reconnection mechanisms for your application to ensure business continuity.
- Interruption of DDL tasks: The scaling operation will interrupt ongoing OnlineDDL tasks. Please schedule the operation with caution. For more information about OnlineDDL, see Create a Lock-Free DDL Ticket (OnlineDDL).
- Risk of execution failure: After an automatic scaling rule is triggered, the task may fail or not take effect if the instance state does not support the change, underlying resources are insufficient, the target specification is unavailable, or safety conditions (such as memory) are not met during scale-down. The final success depends on the actual execution result of the task. Please monitor the instance status and automatic O&M events in a timely manner.
- Unidirectional policy description: If only automatic scale-up or automatic scale-down is enabled for an instance, the instance will not automatically revert to its original specification after the corresponding operation is completed.
- Configuration and specification limits:
- Account balance requirement: Before using the automatic O&M feature, ensure that your account has sufficient balance to support instance specification changes. For more billing information, see Billing overview.
- Specification upgrade constraints: The CPU core count of the selected new specification must be greater than the current specification, and the memory size must be greater than or equal to the current specification.
- Read-only node change restrictions: When an instance has multiple read-only nodes, the system will validate whether a change is triggered according to the following rules:
- Scale-out limit: If the current specification of a read-only node is ≥ the set maximum scalable specification, scale-out is not triggered.
- Scale-in limit: If the current specification of a read-only node is ≤ the set minimum scalable specification, scale-in is not triggered.
- Configuration conflict validation: Ensure the maximum scalable specification is higher than the minimum scalable specification. Otherwise, the configuration may not be saved or the rules may not function properly.
- Relationship between primary instance and read-only instances:
- Independent policies: The auto-scaling configurations and specification limits for primary/standby nodes and read-only nodes are independent and do not affect each other.
- Synchronization with primary/standby switchover: After a primary/standby switchover, the system continues to determine whether a specification adjustment is needed based on the post-switchover node role, current specification, and auto-scaling rules.
- Independent judgment for read-only nodes: Read-only nodes are unaffected by primary/standby switchovers. The system independently determines whether to trigger scale-out or scale-in based on the read-only node's current specification, monitoring metrics, and rule configuration.
- High Availability and Business Continuity Assurance
- Automatic response to sudden load: When CPU usage exceeds the preset threshold (e.g., 90%), the system automatically scales out to a higher specification to avoid service degradation or interruption.
- Automatic adaptation for primary-standby switchover: If a primary instance triggers a primary-standby switchover after scaling out, the new primary instance continues to automatically adjust its specification based on load, ensuring performance consistency in high-availability architectures.
- Cost Optimization and Improved Resource Utilization
- Pay-as-you-go to avoid idle waste: Automatically retract specifications during business troughs, keeping resource consumption at the lowest level, especially suitable for businesses with clear peaks and valleys (e.g., e-commerce promotions, game server launches).
- Supports cost-saving shutdown mode: Retains cloud disk data and suspends computing resources during scaling in; allows rapid recovery during scaling out, significantly reducing scaling time and the cost of repeated instance creation.
- Enhanced Operational Efficiency and Automation Capabilities
- Fully automated closed-loop management reduces manual intervention risks: The entire process from "monitoring → scaling out → retracting" is automated, requiring no manual intervention, making it particularly suitable for complex environments with multiple instances and services.
- Multi-dimensional observability: Provides capabilities such as scaling activity logs, monitoring metrics, and anomaly detection, facilitating quick root cause analysis and improving troubleshooting efficiency.
- Architectural Flexibility and Scalability Support
- Supports independent scaling of nodes: You can set policies for the primary node and read-only nodes separately to meet the evolving needs of complex architectures such as read/write separation and sharding.
Currently supports enabling only automatic scaling up, only automatic scaling down, or both automatic scaling up and down.
Only enable automatic expansion
Only enable automatic scaling
Enable Automatic scale-up and scale-down
If automatic scaling up is enabled for an instance but automatic scaling down is not, the instance will not perform scaling down after scaling up when the conditions are met.
- On the top menu bar, select the project and region.
- On the left navigation bar, select Operation and maintenance management > Observation and diagnosis.
- On the Observation and diagnosis page, click AutoOps.
- In the upper-right corner of the page, locate the drop-down list and select the target database type - RDS for MySQL.
- In the upper-right corner of the page, locate the drop-down list and select the target instance.
- On the AutoOps tab, select Configure AutoOps rules > Compute scaling.
- On the Configure AutoOps rules - Compute scaling panel, configure the Auto scaling parameters to enable only auto scaling up.
If the instance has not enabled auto scaling, even if auto scaling down rules are configured, the instance will not perform any scaling down operations. Therefore, before enabling auto scaling down, you must enable auto scaling configuration.
- On the top menu bar, select the project and region.
- On the left navigation bar, select Operation and maintenance management > Observation and diagnosis.
- On the Observation and diagnosis page, click AutoOps.
- In the upper-right corner of the page, locate the drop-down list and select the target database type - RDS for MySQL.
- In the upper-right corner of the page, locate the drop-down list and select the target instance.
- On the AutoOps tab, click Configure AutoOps rules.
- On the Configure AutoOps rules - Compute scaling panel, configure parameters to Only enable automatic scaling for auto scaling.
- On the top menu bar, select the project and region.
- On the left navigation bar, select Operation and maintenance management > Observation and diagnosis.
- On the Observation and diagnosis page, click AutoOps.
- In the upper-right corner of the page, locate the drop-down list and select the target database type - RDS for MySQL.
- In the upper-right corner of the page, locate the drop-down list and select the target instance.
- On the AutoOps tab, click Configure AutoOps rules.
- In the Configure AutoOps rules - Compute scaling panel, configure Auto scaling and enable the automatic scaling up and automatic scaling down parameters.
Modify automatic scale-up only
Modify automatic scale-down only
Modify auto scaling
- On the top menu bar, select the project and region.
- On the left navigation bar, select Operation and maintenance management > Observation and diagnosis.
- On the Observation and diagnosis page, click AutoOps.
- In the upper-right corner of the page, locate the drop-down list and select the target database type - RDS for MySQL.
- In the upper-right corner of the page, locate the drop-down list and select the target instance.
- On the AutoOps tab, click Configure AutoOps rules.
- In the Configure AutoOps rules - Compute scaling panel, configure Auto scaling and enable the automatic scaling up and automatic scaling down parameters.
- On the top menu bar, select the project and region.
- On the left navigation bar, select Operation and maintenance management > Observation and diagnosis.
- On the Observation and diagnosis page, click AutoOps.
- In the upper-right corner of the page, locate the drop-down list and select the target database type - RDS for MySQL.
- In the upper-right corner of the page, locate the drop-down list and select the target instance.
- On the AutoOps tab, click Configure AutoOps rules.
- On the Configure AutoOps rules - Compute scaling panel, configure parameters to Only enable automatic scaling for auto scaling.
- On the top menu bar, select the project and region.
- On the left navigation bar, select Operation and maintenance management > Observation and diagnosis.
- On the Observation and diagnosis page, click AutoOps.
- In the upper-right corner of the page, locate the drop-down list and select the target database type - RDS for MySQL.
- In the upper-right corner of the page, locate the drop-down list and select the target instance.
- On the AutoOps tab, click Configure AutoOps rules.
- In the Configure AutoOps rules - Compute scaling panel, configure Auto scaling and enable the automatic scaling up and automatic scaling down parameters.
- On the top menu bar, select the project and region.
- On the left navigation bar, select Operation and maintenance management > Observation and diagnosis.
- On the Observation and diagnosis page, click AutoOps.
- In the upper-right corner of the page, locate the drop-down list and select the target database type - RDS for MySQL.
- In the upper-right corner of the page, locate the drop-down list and select the target instance.
- On the AutoOps tab, click Configure AutoOps rules.
- In the Configure AutoOps rules - Compute scaling panel, configure the following parameters.
- Disable all scaling rules: You can directly click Disable on the Automatic O&M rules > Specification scaling control panel.
- Disable automatic scale-up only: On the Automatic O&M rules > Specification sScaling control panel, click Only enable automatic expansion, and disable the scale-up configuration for primary/secondary nodes or read-only nodes as needed.
- You can disable either the scale-up configuration for primary/secondary nodes or the scale-up configuration for read-only nodes, but not both.
- Disable automatic scale-down only: On the Automatic O&M rules > Specification scaling control panel, click Only enable automatic scaling, and disable the scale-down configuration for primary/secondary nodes or read-only nodes as needed.
- You can disable either the scale-down configuration for primary/secondary nodes or the scale-down configuration for read-only nodes, but not both.
- Disable simultaneous auto scale-out and auto scale-in: In the Automatic O&M Rules > Specification Scaling Control Panel, click Enable Auto Scale-Out and Auto Scale-In Simultaneously, and then disable the scale-out and scale-in configurations for primary/secondary nodes and read-only nodes as needed.
- When disabling this feature, you must retain at least one scale-up rule and one scale-down rule.
View scheduled scaling events
You can view scaling up events within the last 30 days at most.
- On the top menu bar, select the project and region.
- On the left navigation bar, select Operation and maintenance management > Observation and diagnosis.
- On the Observation and diagnosis page, click AutoOps.
- In the upper-right corner of the page, locate the drop-down list and select the target database type - RDS for MySQL.
- In the upper-right corner of the page, locate the drop-down list and select the target instance.
- On the AutoOps event tab under the AutoOps tab, set the time frame for querying events as needed. The target events you can view include Event ID, Event status, Trigger value, Trigger condition, Rule type, Before/After adjustment, Trigger time, and Last update time
Before/After triggering indicates the node specifications before and after automatic scaling up is triggered.
Q: Why is auto scaling not triggered even when threshold conditions are met?
A: Auto scaling not being triggered is usually caused by the following reasons:
- State restrictions: The instance is currently in a state that does not support configuration changes (e.g., restarting, upgrading, or under maintenance).
- Resource limitations: Insufficient underlying available resources prevent the configuration change from completing.
- Scale-down condition validation: Triggering automatic scale-down depends not only on CPU thresholds and duration but also on comprehensive safety checks, such as memory usage. If any condition is not met, the system will pause execution. It is recommended to check the specific trigger conditions and resource/state restrictions by reviewing instance monitoring metrics and the execution records of the current task.
Q: Will scaling affect business connections?
A: Possibly. During scaling, the instance may experience brief disconnections (1–3 times) or enter a second-level read-only state. To ensure business continuity, it is strongly recommended to configure an automatic reconnection mechanism for your application or schedule operations during off-peak hours.
Q: Can scaling be performed while the instance is executing OnlineDDL?
A: It is not recommended to perform both simultaneously. Scaling operations will interrupt ongoing OnlineDDL tasks. Before performing configuration changes (including automatic and manual), confirm whether the instance has any running OnlineDDL tasks and try to schedule the operation in an appropriate maintenance window.