All Products
Search
Document Center

Serverless App Engine:Change the instance specifications of an application

Last Updated:Apr 01, 2024

After you deploy an application on Serverless App Engine (SAE), you can change the instance specifications that are required during runtime, such as vCPUs and memory size.

Prerequisites

To ensure business continuity, you must configure the Minimum Available Instances parameter before you change the instance specifications. For more information, see Roll back an application to a previous version.

Background information

After an application runs for a specific period of time, the application may fail if a specified instance specification is lower than an instance specification that is required. For example, if the memory usage is too large, an out-of-memory (OOM) error may occur. In this case, you must change the specifications of the application instances to ensure that the application can run as expected.

Important After you change the instance specifications of an application, SAE automatically redeploys the application.
  • If you change the instance specifications of an application that contains only one instance, the application is unavailable for several seconds. We recommend that you perform this operation during off-peak hours to control business risks.
  • If you change the instance specifications of an application that contains multiple instances, the application can run as expected.

Procedure

  1. Log on to the SAE console.

  2. In the left-side navigation pane, click Applications. In the top navigation bar, select a region. Then, click the name of an application.

  3. On the Basic Information tab, click Change Specifications in the Application Information table.
    bt_change_the_instance_type
  4. In the Change Instance Specifications dialog box, select a set of instance specifications based on your business requirements and click OK.
  5. Verify the result.
    • Method 1: On the Basic Information tab of the Basic Information page, view the value of the Instance Specifications parameter. If the value is updated, the instance specifications are changed.
    • Method 2: On the Change Records page of the application, check whether the corresponding change process is in the Executed state. If the change process is in the Executed state, the instance specifications are changed.