All Products
Search
Document Center

Serverless App Engine:Configure graceful start of microservices

Last Updated:Mar 05, 2024

For online applications, operations such as release, scale-out, scale-in, and restart are inevitable. Serverless App Engine (SAE) provides the graceful start feature to protect applications when you perform the preceding operations.

Prerequisites

A microservices application is created. For more information, see Create applications.

Configure graceful start

Dragonwell 11 does not support graceful start of microservices.

Warning

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.

The procedure that can be performed to update an application varies based on the number of instances in the application. This section provides an example on how to configure the required features for an application in which the number of instances is greater than or equal to 1. For information about how to update an application in which the number of instances is 0, see Update an application.

  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. In the upper-right corner of the Basic Information page, click Deploy Application.

  4. In the Graceful Start and Shutdown of Microservices section of the Deploy Application page, click the Graceful Start of Microservices tab. On the tab that appears, turn on Enable Graceful Start for Microservices and click Configuration Wizard of Graceful Start.

  5. In the Parameter Configuration for Graceful Start step, view the related parameter and click Configuration Preview.

    Parameter

    Description

    Port Occupied by SAE Graceful Start

    Default value: 54199. You cannot change the value.

  6. In the Configuration Preview step, check the configurations and click Confirm.

    Note

    If you configured a health check for the application before you configure graceful start of microservices, the configurations vary based on the check method that you selected.

    • HTTP Request Check: By default, the Enable Microservices Application Business Readiness Check check box is selected.

    • TCP Port Check or Command Execution Check: The Enable Microservices Application Business Readiness Check check box is not displayed on the Application Business Readiness Check (Readiness Configuration) tab.

  7. After you configure the settings, click Confirm.

Disable graceful start

You can perform the following operations to disable graceful start for your application:

On the Basic Information page of the application, click Deploy Application or Modify Application Configurations. In the Graceful Start and Shutdown of Microservices section, turn off Enable Graceful Start for Microservices and click Confirm.