Enterprise Distributed Application Service (EDAS) groups Elastic Compute Service (ECS) instances into clusters for application deployment. After you create a cluster, you can view cluster details, add or remove instances, transfer instances between clusters, convert billing methods, and delete clusters that are no longer needed.
Prerequisites
Before you begin, make sure that you have:
An Alibaba Cloud account or a RAM user with EDAS permissions
Access to the EDAS console
(For instance operations) One or more ECS clusters with instances
View the cluster list
Log in to the EDAS console.
In the left-side navigation pane, choose Resource Management > ECS Clusters.
On the ECS Cluster page, select a region in the top navigation bar. Select the target microservice namespace from the Microservice Namespace drop-down list, and select ECS Clusters from the Cluster Type drop-down list.
The cluster list displays all ECS clusters under your Alibaba Cloud account, including clusters accessible through RAM users and EDAS sub-accounts.
The cluster list supports the following actions:
| Action | Steps |
|---|---|
| Create a cluster | Click Create Cluster in the upper-left corner. For details, see Create an ECS cluster in the EDAS console. |
| Delete a cluster | Click Delete in the Actions column. See Delete a cluster for prerequisites. |
| View cluster details | Click the cluster ID to open the Cluster Details page. |
View cluster details
On the ECS Cluster page, click the ID of the target cluster.
On the Cluster Details page, review the following sections:
Cluster information
The Cluster Information section displays the following attributes:
| Attribute | Description |
|---|---|
| Cloud | The cloud to which the cluster belongs |
| Cluster ID | The unique identifier of the cluster |
| Cluster name | The name of the cluster |
| Microservice namespace | The namespace that the cluster belongs to |
| Cluster type | The type of the cluster |
| VPC ID | The ID of the associated VPC. Click the link to open the VPC console. |
| Network type | The network type of the cluster |
| Cluster status | The current status of the cluster |
Available actions on the Cluster Details page:
| Action | Steps |
|---|---|
| View full cluster details | Click View Details in the upper-right corner of the Cluster Information section. |
| Edit the cluster description | Click Edit in the upper-right corner of the Cluster Information section. |
| Delete the cluster | Click Delete in the upper-right corner of the page. All ECS instances must be removed first. |
ECS instances
The ECS Instance section lists all instances in the cluster with their status information. For management operations, see Manage ECS instances in a cluster.
Applications
The Applications section lists all deployed applications with the following details:
| Field | Description |
|---|---|
| Application name | Click an application name to open its Basic Information tab. |
| JDK version | The JDK version used by the application |
| Application runtime environment | The runtime environment of the application |
| Total number of instances | The total instance count for the application |
| Number of running instances | The count of currently running instances |
| Owner | The owner of the application |
Manage ECS instances in a cluster
On the Cluster Details page, the ECS Instance section provides an overview of all instances in the cluster and supports the following operations.
Purchase ECS instances to scale out
In the ECS Instance section, use either option:
Click Purchase ECS for Scale-out in the upper-right corner to add new instances.
Click Purchase Same Specifications in the Actions column of an existing instance to purchase instances with identical specifications.
For details, see Purchase ECS instances.
Add existing ECS instances
In the ECS Instance section, select Add Existing ECS Instances in the upper-right corner to add instances that are already provisioned to the current cluster.
For details, see Add existing ECS instances to a cluster.
View instance details
Click the instance ID in the ECS Instance section to open the Instance Details page in the ECS console.
View applications deployed on an instance
In the ECS Instance section, find the target instance.
Click View Details in the Actions column to see basic information about the deployed application.
Click the application name in the Deployed Application column to open the application's Basic Information tab.
Remove ECS instances
Only instances with no deployed applications can be removed from a cluster.
Remove a single instance:
In the ECS Instance section, find an instance with no deployed applications.
Click Remove in the Actions column.
In the Remove ECS Instance message, click Remove.
Remove multiple instances at once:
In the ECS Instance section, select the instances with no deployed applications.
Click Batch Remove in the lower part of the section.
In the OK message, click OK.
Convert pay-as-you-go instances to subscription
In the ECS Instance section, select the pay-as-you-go instances to convert.
Click Switch from Pay-as-you-go to Subscription in the lower part of the section.
In the Switch to Subscription wizard, click Batch Change.
In the Switch to Subscription dialog box, select a subscription duration from the Duration drop-down list. To also convert the disk billing method, select Switch to subscription disk. Click OK.
Transfer ECS instances to another cluster
Only instances with no deployed applications can be transferred. All selected instances are transferred in a single batch.
In the ECS Instance section, select the instances with no deployed applications.
Click Transfer ECS Instance in the lower part of the section.
In the Select Target Cluster step, select the destination namespace from the Namespace drop-down list, select the destination cluster, and click Next.
In the Ready to Import step, click Confirm and Import.
If an instance cannot be directly imported, select the checkbox for I agree to convert the preceding instances that need to be imported, and I understand that the data in the original system will be lost after the conversion. Then set a new logon password for the instance.
Delete a cluster
A cluster cannot be deleted while it contains ECS instances. Remove all instances before you proceed.
On the ECS Cluster page, check that the Instances value for the target cluster is 0.
If the value is 0, proceed to the next step.
If the value is not 0, remove all instances first. See Remove ECS instances.
Click Delete in the Actions column of the target cluster.
In the confirmation message, click OK.