This topic describes how to use Enterprise Distributed Application Service (EDAS) to manage applications. Related operations include creating, deploying, updating, scaling in, scaling out, starting, stopping, resetting, restarting, and deleting applications, and upgrading and downgrading runtime environments.

Create an application

You can develop an application based on the Apache Dubbo, Spring Cloud, or High-Speed Service Framework (HSF) framework and build the application into a WAR or JAR package. Then, you can deploy the application to an Elastic Compute Service (ECS) cluster in EDAS.

Deploy an application

On the Basic Information page, click Deploy Application in the upper-right corner to deploy a new application.

On the Basic Information page, click Deploy Application in the upper-right corner to upgrade a deployed application.
Notice When you upgrade the application, you must select the same deployment package type as the initial deployment.

Roll back an application

If an exception is detected after the upgrade of an application, click Roll Back Application in the upper-right corner of the Basic Information page to roll back the application to the earlier version.

If an exception occurs during the application upgrade, the deployment package is unavailable, or the health check fails, you can click Stop Change in the upper-right corner of the Change Details page to roll back the application.

Scale out an application

You can scale out an application by adding application instances to increase the computing capacity of the application. When existing application instances are overloaded, click Scale Out in the upper-right corner of the Basic Information page to add application instances. For more information, see Add instances to applications that are deployed in ECS clusters.
Note If the total capacity of the instances to be added and the existing instances exceeds the upper limit that application resources can support, the scale-out request fails.

Scale in an application

You can scale in an application by removing application instances to decrease the computing capacity of this application. When an application is idle, click the Instance Deployment Information tab. On the tab that appears, click Process Instances in Batch. In the Process Instances in Batch dialog box, select the instances that you want to delete, click Batch Stop, and then delete them.

Start or stop an application

You can stop an application as needed when it is running. After you stop this application, the billing and metering of related application instances are suspended. You can start or stop an application only when at least one application instance is available for this application. When you start or stop an application, all the instances available for this application are accordingly started or stopped. When more than one application instance is available, startup or stop of an application instance affects only the running status of this application instance. When only one application instance is available, the application starts or stops upon startup or stop of this application instance.
Notice After an application that runs based on other services such as Server Load Balancer (SLB) or Virtual Private Cloud (VPC) is stopped, the services on which this application depends are still billed.
  • Start or stop an application

    On the Basic Information page, click Stop Application or Start Application in the upper-right corner to stop or start an application.

  • Start or stop an application instance

    On the Instance Deployment Information tab, click Enable or Stop in the Actions column to start or stop an instance.

    On the Instance Deployment Information tab, click Process Instances in Batch. In the Process Instances in Batch dialog box, select multiple instances and start or stop them.

Delete an application

On the Basic Information page, click Delete Application in the upper-right corner to delete an application.

Reset an application

On the Instance Deployment Information tab, click Reset in the Actions column for the application instance to reset its runtime environment. After the reset, the version of the runtime environment is not changed.

Restart an application

For a running application instance, click Restart in the Actions column for the instance on the Instance Deployment Information tab of the application to stop and restart the instance.

Upgrade or downgrade the application runtime environment

After you deploy an application in an ECS cluster, you can upgrade or downgrade the runtime environment of this application during operation and maintenance to meet different functional requirements. For more information, see Upgrade or downgrade the application runtime environment.