Enterprise Distributed Application Service (EDAS) provides lifecycle management for applications deployed in Elastic Compute Service (ECS) clusters. Supported operations include creating, deploying, updating, rolling back, scaling, starting, stopping, restarting, resetting, and deleting applications. You can also upgrade or downgrade application runtime environments.
The following table summarizes each lifecycle operation and where to perform it in the EDAS console.
| Operation | Location | Action |
|---|---|---|
| Deploy or update | Basic Information page | Click Deploy Application |
| Roll back | Basic Information page | Click Roll back Application |
| Roll back (during a failed change) | Change Details page | Click Stop Change |
| Scale out | Basic Information page | Click Scale Out |
| Scale in | Instance Information tab | Click Process Instances in Batch |
| Start application | Basic Information page | Click Start Application |
| Stop application | Basic Information page | Click Stop Application |
| Start or stop individual instances | Instance Information tab | Click Enable or Stop in the Actions column |
| Batch start or stop instances | Instance Information tab | Click Process Instances in Batch |
| Delete application | Basic Information page | Click Delete Application |
| Reset instance | Instance Information tab | Click Reset in the Actions column |
| Restart instance | Instance Information tab | Click Restart in the Actions column |
Create an application
Develop an application based on a supported framework, then build it into a deployment package. Deploy the package to an ECS cluster in EDAS.
| Attribute | Supported options |
|---|---|
| Frameworks | Apache Dubbo, Spring Cloud, High-speed Service Framework (HSF) |
| Package types | WAR, JAR |
Deploy and update an application
After you create an application in EDAS, go to the Basic Information page and click Deploy Application in the upper-right corner.
To update a deployed application, click Deploy Application on the Basic Information page again.
Select the same deployment package type (WAR or JAR) that you used for the initial deployment.
Roll back an application
If an exception occurs after an application update, roll back to the previous version. The rollback method depends on the situation.
| Scenario | Page | Action |
|---|---|---|
| Exception detected after a completed update | Basic Information page | Click Roll back Application in the upper-right corner |
| Exception during instance update, deployment package unavailable, or health check failure | Change Details page | Click Stop Change in the upper-right corner |
Scale out an application
When existing instances are overloaded, add instances to increase the computing capacity of the application.
On the Basic Information page, click Scale Out in the upper-right corner.
For detailed steps, see Add ECS instances to an application that is deployed in an ECS cluster.
The scale-out request fails if the total capacity of the instances to be added and the existing instances exceeds the upper limit that application resources can support
Scale in an application
When the application is idle, remove instances to decrease computing capacity.
Go to the Instance Information tab.
Click Process Instances in Batch.
In the Process Instances in Batch dialog box, select the instances to remove.
Click Batch Stop, then remove the stopped instances.
Start or stop an application
After you stop an application, billing and metering for its instances are suspended.
Dependent services such as Server Load Balancer (SLB) or Virtual Private Cloud (VPC) continue to incur charges after the application is stopped.
How start and stop operations affect instances
| Condition | Effect |
|---|---|
| Multiple instances available | Starting or stopping one instance affects only that instance |
| Single instance available | Starting or stopping the instance starts or stops the entire application |
| Start or stop the application | All available instances are started or stopped |
At least one application instance must be available to perform start or stop operations.
Start or stop an entire application
On the Basic Information page, click Start Application or Stop Application in the upper-right corner.
Start or stop individual instances
Single instance: On the Instance Information tab, click Enable or Stop in the Actions column.
Multiple instances: On the Instance Information tab, click Process Instances in Batch. In the dialog box, select the target instances and start or stop them.
Delete an application
On the Basic Information page, click Delete Application in the upper-right corner.
Reset an application instance
On the Instance Information tab, click Reset in the Actions column to reset the runtime environment of an instance. The runtime environment version remains unchanged after the reset.
Restart an application instance
On the Instance Information tab, click Restart in the Actions column to stop and restart a running instance.
Upgrade or downgrade the runtime environment
After you deploy an application in an ECS cluster, upgrade or downgrade its runtime environment during O&M to meet different requirements.
For detailed steps, see Upgrade or downgrade the runtime environment.