tencent cloud

TencentDB for MySQL

Release Notes and Announcements
Release Notes
Product Announcements
User Tutorial
Product Introduction
Overview
Strengths
Use Cases
Database Architecture
Resource Isolation Policy
Economical Instance
Feature List
Database Instance
High Availability (Multi-AZ)
Regions and AZs
Service Regions and Service Providers
Kernel Features
Overview
Kernel Version Release Notes
Functionality Features
Performance Features
Security Features
Stability Features
TXRocks Engine
LibraDB Engine
Checking and Fixing Kernel Issues
Purchase Guide
Billing Overview
Selection Guide
Purchase Methods
Renewal
Payment Overdue
Refund
Pay-as-You-Go to Monthly Subscription
Instance Adjustment Fee
Backup Space Billing
Database Audit Billing Overview
Commercial Billing and Activity Description for Database Proxy
Description of the Database Proxy Billing Cycle
Viewing Bills
Getting Started
Overview
Creating MySQL Instance
Connecting to MySQL Instance
SQL Insight (Database Audit)
Overview
Viewing Audit Instance List
Enabling Audit Service
Viewing Audit Log
Log Shipping
Configuring Post-Event Alarms
Modifying Audit Rule
Modifying Audit Services
Disabling Audit Service
Audit Rule Template
SQL Audit Rule (Legacy)
Viewing Audit Task
Authorizing Sub-User to Use Database Audit
MySQL Cluster Edition
Introduction to TencentDB for MySQL Cluster Edition
Creating TencentDB for MySQL Cluster Edition Instance
Maintenance Management Instance
Viewing Instance Monitoring
Adjusting Instance Configuration
Operations for Other Features
Migrate or upgrade to TencentDB for MySQL Cluster Edition
Operation Guide
Use Limits
Operation Overview
Instance Management and Maintenance
Instance Upgrade
CPU Elastic Expansion
Read-Only/Disaster Recovery Instances
Database Proxy
Database Management Center (DMC)
Account Management
Parameter Configuration
Backup and Rollback
Data Migration
Network and Security
Monitoring and Alarms
Log Center
Read-Only Analysis Engine
Tag
Practical Tutorial
Using TencentDB for MySQL to Upgrade MySQL 5.7 to MySQL 8.0
Methods and Instructions for Upgrading from MySQL 5.6 to MySQL 5.7
Cybersecurity Classified Protection Practice for Database Audit of TencentDB for MySQL
Building All-Scenario High-Availability Architecture
Usage Specifications of TencentDB for MySQL
Configuring Automatic Application Reconnection
Impact of Modifying MySQL Source Instance Parameters
Limits on Automatic Conversion from MyISAM to InnoDB
Creating VPCs for TencentDB for MySQL
Enhancing Business Load Capacity with TencentDB for MySQL
Setting up 2-Region-3-DC Disaster Recovery Architecture
Improving TencentDB for MySQL Performance with Read/Write Separation
Migrating Data from InnoDB to RocksDB with DTS
Building LAMP Stack for Web Application
Building Drupal Website
Calling MySQL APIs in Python
The primary and secondary instances have inconsistent query data
White Paper
Performance White Paper
Security White Paper
Troubleshooting
Connections
Performance
Instance Data Sync Delay
Failure to Enable Case Insensitivity
Failure to Obtain slow_query_log_file via a Command
API Documentation
History
Introduction
API Category
Instance APIs
Making API Requests
Data Import APIs
Database Proxy APIs
Database Audit APIs
Security APIs
Task APIs
Backup APIs
Account APIs
Rollback APIs
Parameter APIs
Database APIs
Monitoring APIs
Log-related API
Data Types
Error Codes
FAQs
Related to Selection
Billing
Backup
Rollback
Connection and Login
Parameter Modifications
Instance Upgrade
Account Permissions
Performance and Memory
Ops
Data Migration
Features
Console Operations
Logs
Event
Database audit
Instance Switch Impact
API 2.0 to 3.0 Switch Guide
Service Agreement
Service Level Agreement
Terms of Service
Reference
Standards and Certifications
Contact Us
Glossary

Configuring auto scale-out

PDF
Focus Mode
Font Size
Last updated: 2026-01-06 12:11:46
This document introduces operations related to setting automatic expansion.

Prerequisites

The instance architecture is TencentDB for MySQL general edition two-node, general edition three-node, and single-node local disk (read-only instance).
The instance specification is equal to or less than 32 cores before the CPU Elastic Scaling feature is enabled.
Your Tencent Cloud account has sufficient balance.
The underlying machine supports scale-up. If scale-up is not supported for the underlying machine, the operation of setting automatic expansion will fail.

Billing Instructions

For details about automatic expansion billing information, see Billing Instructions.

Enabling Automatic Scaling

Note:
After automatic expansion is enabled, there is a very low probability that the feature will fail to be triggered. The backend will retry multiple times until the operation is successful.
1. Log in to the TencentDB for MySQL console. In the instance list, click an Instance ID or Manage in the Operation column to go to the instance details page.
2. Choose Instance Details > Specification Configurations > Elastic CPU Expansion, and click Enable.
3. In the Elastic CPU Expansion window, complete the following settings, and after confirming the scaling fee, click Expand Now.

Parameter
Description
Scale-Up Method
Automatic Expansion and Custom Scale-up are supported. Select automatic expansion here.
Automatic Expansion: Perform quick elastic scale-up according to performance to handle traffic peaks, and perform scale-down when traffic drops.
Custom Scale-up: You can select a period for scale-up and decide whether to enable automatic expansion within other periods.
Number of Cores for Scale-Up
The default value is consistent with the number of CPU cores of the current instance specification. For example, if the current instance specification is 6-core and 24,000 MB of memory, the number of cores for scale-up will also be 6 cores. After scale-up is successfully triggered, the CPU of the instance will be 12 cores.
Increased IOPS
By default, the IOPS increases by 1000 for each core scaled up.
Scale-Up Rule
Set the observation period and threshold for triggering scale-up.
Observation period: Supported options include 15 seconds, 30 seconds, 45 seconds, 1 minute, 3 minutes, 5 minutes, 10 minutes, 15 minutes, and 30 minutes.
Threshold: Supported options include 40%, 50%, 60%, 70%, 80%, and 90%.
Scale-Down Rule
Set the observation period and threshold for triggering scale-down.
Observation period: Supported options include 5 minutes, 10 minutes, 15 minutes, and 30 minutes.
Threshold: Supported options include 10%, 20%, and 30%.
4. After you enable automatic expansion, you can view the scale-up rules in the Elastic CPU Expansion preview window.


Modifying the Elastic Scale-up Policy for CPU

After automatic expansion is enabled, only scaling rules can be modified under the feature. You can choose Instance Details > Specification Configurations > Elastic CPU Expansion and click Edit for reconfiguration.
After automatic expansion is enabled, it is not supported to directly change the scale-up method (from automatic expansion to custom scale-up) through Edit operation. If changes are needed, disable automatic expansion first, and then adjust the method while re-enabling CPU elastic scale-up.

Disabling Automatic Expansion

Note:
After automatic expansion is disabled, the CPU cores after scale-up will be immediately scaled down to the number before instance scale-up. After scale-down, scale-up will not be performed based on the scale-up threshold.
1. Log in to the TencentDB for MySQL console. In the instance list, click an Instance ID or Manage in the operations column to go to the instance details page.
2. Choose Instance Details > Specification Configurations > Elastic CPU Expansion, and click Disable Scale-Out.
3. In the pop-up window Disable CPU Expansion, click OK.


FAQs

How to Determine If Automatic Expansion Is Effective After the Automatic Expansion Feature Is Enabled for Elastic CPU Expansion?

When the average CPU utilization of an instance reaches the threshold set for automatic elastic scale-up, the instance will be scaled up automatically. You can check whether the scale-up has taken effect by viewing the instance specification on the instance details page. If the number of CPU cores shows an additional number (actual number of cores), it indicates that scale-up has taken effect. For example, if an instance is configured with 4 cores and 8,000 MB of memory, when the configuration displays as 4 cores and 8,000 MB, it indicates that automatic scale-up has not been triggered. When the configuration displays as 4 (8) cores and 8,000 MB, it indicates that the number has been scaled up to 8 cores.

Related APIs

API
Description
This API is used to enable the Elastic CPU Expansion feature for instances.
This API is used to disable the Elastic CPU Expansion feature for instances.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback