All Products
Search
Document Center

Serverless App Engine:Manage the lifecycle of an application

Last Updated:Sep 03, 2024

After you deploy an application on SAE, you can manage the lifecycle of the application. For example, you can update, start, stop, and delete the application. You can also scale in or scale out the instances for the application.

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.

View the configurations of an application

In the upper-right corner of the Basic Information page, click View Application Configurations. In the View Current Configurations dialog box, view the configuration details of the application.

Update an application

Modify the configurations of an application

If the number of instances in the application is 0, click Modify Application Configurations in the upper-right corner of the Basic Information page. On the Modify Application Configurations page, configure the parameters.

Note After the configurations of an application are modified, the configurations take effect the next time the number of instances in the application is greater than 0.

Deploy an application

If the number of instances in the application is greater than 0, click Deploy Application in the upper-right corner of the Basic Information page. On the Deploy Application page, configure the parameters. For more information, see the following topics:

Roll back an application to an earlier version

In the upper-right corner of the Basic Information page, click Back to Earlier Version. On the Back to Earlier Version page, select a version and configure a release policy. For more information, see Roll back an application to a previous version.

Manually scale in or scale out the instances for an application

In the upper-right corner of the Basic Information page, click Manual Scaling. For more information, see Manually scale instances.
Note
  • If the total number of the original instances and the instances that you want to add exceeds the upper limit on the number of application instances, the scale-out operation fails. If you want to add additional application instances, join the DingTalk group 32874633 to apply to increase the quota.
  • If you are not urgent to scale in or scale out your instances, we recommend that you use the auto scaling feature. For more information, see Configure an auto scaling policy.

Automatically scale in or scale out the instances for an application

On the Instance Deployment Information tab of the Basic Information page, click + Add Auto Scaling Policy in the Auto Scaling section. For more information, see Configure an auto scaling policy.

Start or stop an application

This section describes how to start and stop an application. For information about how to start and stop multiple applications at a time, see Use the one-click start and stop feature to manage applications.

  • Stop Application: In the upper-right corner of the Basic Information page, click Stop Application. In the Note message, click OK to stop the application.
    You can stop a running application at any time based on your business requirements. After you stop an application, the system automatically sets the minimum number of available instances of the application to 0 and the number of instances to 0. In this case, the system pauses billing or calculating the number of computing resources that are used by the application.
    Warning If your application depends on other cloud services or resources during runtime, such as Server Load Balancer (SLB) instances and virtual private clouds (VPCs), you are still charged for using the services or resources after the application is stopped.
  • Start Application: In the upper-right corner of the Basic Information page, click Start Application. In the Note message, click OK to start the application that is in the stopped state.

    You can start a stopped application at any time based on your business requirements. After you start an application, the number of instances is restored to the value that is specified before the application is stopped. In this case, the system resumes billing or calculating the computing resources that are used by the application.

Restart an application

In the upper-right corner of the Basic Information page of an application that is in the running state, choose More > Restart Application. In the Restart Application dialog box, configure the parameters as prompted.

  • If an auto scaling policy is enabled, configure the Resume Auto Scaling After Application Restart parameter and click Confirm.
  • If no auto scaling policy is enabled, configure the Minimum Available Instances parameter and click Confirm.
Note If an application runs as expected but your business is not running as expected, do not manually restart the application. You must use the health check feature to check the health status of the instances in the application. If the check result indicates that an instance is unhealthy, the system automatically restarts the instance. For more information, see Configure application health checks.

Delete an application

In the upper-right corner of the Basic Information page, choose More > Delete Application. In the Delete Application message, click OK to delete the application.

Warning If your application depends on other cloud services or resources during runtime, such as SLB instances and VPCs, check whether you need to continue using the services or resources before you delete the application. If you no longer need to use a service or a resource, you can deactivate the service or disable the resource. Then, the billing for the service or resource is stopped.

Enable or disable the application monitoring feature for an application

In the upper-right corner of the Basic Information page, click More to enable or disable the application monitoring feature. For more information, see Enable or disable application monitoring for an application.

  • Enable Application Monitoring: Choose More > Enable Application Monitoring. In the Note message, click OK to enable the application monitoring feature.
  • Disable Application Monitoring: Choose More > Disable Application Monitoring. In the Note message, click OK to disable the application monitoring feature.