A temporary disk temporarily stores data for an application instance. You can configure the disk size as needed.
This feature is in invitational preview. To use this feature, contact our technical support in the DingTalk group (group ID: 32874633) for access.
Idle mode is available only for the standard and professional editions of SAE applications.
Introduction
Before you configure a temporary disk, review the following key information:
-
Default configuration
SAE provides each application instance with 20 GiB of free temporary disk space by default.
By default, the temporary disk is mounted to the root directory of the application instance.
-
Lifecycle and data security
The temporary disk is tied to the lifecycle of the application instance. When an application instance is reclaimed, the attached disk is also released. All data on the disk is permanently deleted and cannot be recovered.
If you need to permanently store data from your application instances, use a persistent storage solution such as NAS or OSS.
-
Adjustable range
You can adjust the temporary disk size within a range of 20 GiB to 500 GiB.
-
Billing
SAE converts this usage into CUs for billing.
Procedure
Create an application
-
Log on to the SAE console. In the left-side navigation pane, choose Application Management > Application List. Select the target region and namespace, and then click Create Application.
-
On the Basic Information wizard page, complete the required settings and then click Next: Advanced Settings.
-
Find and expand the Temporary storage settings section, and then set the Temporary disk size.
SAE provides 20 GiB of free temporary storage per instance by default, which you can increase as needed. The value for Temporary Disk Size ranges from 20 GiB to 500 GiB.
-
Click Create Application.
Change specifications
After you redeploy an application, the application is restarted. To prevent unpredictable errors such as business interruptions, we recommend that you deploy applications during off-peak hours.
-
Log on to the SAE console. In the left-side navigation pane, choose Application Management > Application List. Select the target region and namespace, and then click the target application ID.
-
On the application's Basic Information page, on the Application Information tab, click Change Specifications in the Application Information section.
-
In the Change Specifications panel, set the Instance Type, Temporary disk size, and Minimum Available Instances as needed, and then click Confirm.
Changing the specifications automatically triggers a deployment task. Set the minimum number of live instances based on your workload. The Temporary Disk Size can range from 20 GiB to 500 GiB.
Verify the results
Log on to the instance using Webshell and run the df -h command to verify that the temporary disk is mounted to the / directory.
root@demo-xxx:/home/admin# df -h
Filesystem Size Used Avail Use% Mounted on
overlay 51G 4.3G 44G 9% /
tmpfs 64M 0 64M 0% /dev
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
tmpfs 2.0G 16K 2.0G 0% /etc/podinfo
/dev/vda5 51G 4.3G 44G 9% /etc/hosts
shm 64M 0 64M 0% /dev/shm
tmpfs 2.0G 16K 2.0G 1% /home/admin/.spas_key
tmpfs 1.9G 0 1.9G 0% /proc/acpi
tmpfs 1.9G 0 1.9G 0% /proc/scsi
tmpfs 1.9G 0 1.9G 0% /sys/firmware
root@demo-xxx: /home/admin#