Java applications, for example, require significant CPU resources at startup to load large caches. Once running, their CPU usage typically drops, making a high-performance CPU specification unnecessary. CPU Burst lets you avoid overprovisioning for these temporary peaks, saving costs and preventing resource waste.
Limitations
-
SAE supports a CPU Burst multiplier of 2× for 300 seconds by default. This setting cannot be changed.
-
CPU Burst is available only for instances with a CPU specification of 4 cores or fewer.
-
This feature is available only in the following regions: China (Hangzhou), China (Shanghai), China (Beijing), China (Zhangjiakou), and China (Shenzhen).
-
This feature is not supported for Lightweight applications.
Enable CPU Burst
This topic outlines only the key steps. For the complete procedure, see application deployment.
During creation
-
In the SAE application list, select the target region and namespace from the top navigation bar, and then click Create Application.
-
On the Create Application page, configure the following settings.
-
On the Basic Information wizard page, in the Capacity Settings section, set the Single Instance Type.
For example, select the CPU 1 Core Memory 2 GB specification, and set the number of instances to 2.
ImportantTo enable CPU Burst, the application's instance specification cannot exceed 4 cores.
-
On the Advanced Settings wizard page, in the CPU Burst Configuration section, enable CPU Burst.
-
-
Click Create Application.
During deployment
To enable CPU Burst, this application's instance specification cannot exceed 4 cores.
-
In the SAE application list, select the target region and namespace from the top navigation bar, and then click the target Application ID to go to the application details page.
-
On the application's Basic Information page, click Deploy Application.
-
In the Deploy Application panel, in the CPU Burst Configuration section, enable CPU Burst.
-
Click Confirm.
Verify the result
-
On the Basic Information page for the target application, click the Instances panel. Then, in the Actions column for the target instance, click Webshell.
-
In the command line, run
nprocto view the instance's CPU specification. The output is initially 2 cores. After 300 seconds, it reverts to the original 1 core.