All Products
Search
Document Center

Enterprise Distributed Application Service:Install EDAS Agent on an ECS instance

Last Updated:Feb 27, 2026

Enterprise Distributed Application Service (EDAS) Agent is a daemon that runs on Elastic Compute Service (ECS) instances and handles communication between an EDAS cluster and deployed applications. EDAS deploys applications only on ECS instances that have EDAS Agent installed, including initial installation and scale-out. In EDAS, application instances are the ECS instances on which EDAS Agent is installed and applications are deployed.

EDAS Agent provides the following capabilities:

  • Application lifecycle management: deploys, starts, and stops applications.

  • Status reporting: reports application liveness status, health check status, and Ali-Tomcat container status.

  • Information retrieval: retrieves monitoring information of ECS instances and containers.

Prerequisites

Before you begin, make sure that you have:

  • An ECS instance running 64-bit CentOS 7.0 or later.

  • Root user access to the ECS instance (required for the command script method).

Choose an installation method

Three methods are available. Choose the one that fits your scenario.

CriteriaEDAS base imageImport ECSCommand script
Best forNew ECS purchasesExisting unmanaged ECS instancesCustom JDK versions or existing instances
Disk formattingYesYes (with image conversion) / No (direct import)No
Default JDKJDK 8JDK 8JDK 8 (supports JDK 7 via -java flag)
Important

By default, EDAS Agent installs Java Development Kit (JDK) 8. To use JDK 7 or other versions, use the command script method.

Important

The EDAS Agent status varies based on the image and cluster type that you select. The EDAS Agent status determines the types of applications that can be deployed on the ECS instance. Follow the instructions for the installation method that you use.

Install via EDAS base image

Select the EDAS base image when purchasing a new ECS instance. This method installs EDAS Agent in a single step.

Important

This method formats disks. To avoid disk formatting, use the command script method instead.

  1. Log on to the EDAS console.

  2. In the left-side navigation pane, choose Resource Management > ECS.

  3. On the ECS page, click Create Instance in the upper-right corner.

  4. In the Image section of the ECS purchase page, select Marketplace Images and click Select from Alibaba Cloud Marketplace (with Operating System).

  5. In the Alibaba Cloud Marketplace dialog box, enter EDAS in the search box and click Search.

  6. In the search results, select EDAS Java Environment (Common ECS). The latest version is selected by default. Do not select earlier versions. Click Use.

  7. Complete the ECS purchase by following the on-screen instructions.

Install via ECS import

If you did not select the EDAS Java Environment (Common ECS) image when purchasing an ECS instance, install EDAS Agent by importing the instance through the EDAS console. You can import an ECS instance directly or by using an image.

Import restrictions

An ECS instance cannot be imported if any of the following conditions apply:

  • The instance was created before December 1, 2017.

  • The instance was created in the classic network and is being imported to a cluster that uses the classic network.

  • The instance is stopped, starting, or stopping.

  • The instance is Windows-based or does not support simple Shell commands.

  • The instance is not imported from an ECS cluster.

Important

If you use an ECS image, the disks on the ECS instance are formatted. To avoid disk formatting, use the command script method instead.

Procedure

  1. Log on to the EDAS console.

  2. In the left-side navigation pane, choose Resource Management > ECS.

  3. On the ECS page, select the region in the top navigation bar and select a microservices namespace from the Microservices Namespace drop-down list. The microservices namespace is optional. Then, click Import ECS in the upper-right corner.

  4. In the Select Cluster and Existing ECS Instances step of the Import ECS wizard, select a microservices namespace and the cluster to which the ECS instance is imported. Select the ECS instance in the instance list, and then click Next. > Note: If the desired ECS instance is not displayed in the instance list, click Synchronize ECS to refresh the list. > Note: > - If you have not created a destination cluster, click Create Cluster next to the Select Destination Cluster drop-down list. > - To manually install EDAS Agent instead, click Switch to Manual Installation in the upper-right corner to go to the Manually Install EDAS Agent on Single Instance page. Then, run a command script to install EDAS Agent.

  5. In the Ready to Import step, view the instance information.

    • Instances that can be imported directly: These appear in the The following instances can be imported directly without conversion (expected conversion time is 10 seconds) section. Click Confirm and Import.

    • Instances that require conversion: If Cloud Assistant is not installed on the ECS instance or Cloud Assistant does not work as expected, you must convert the instance before importing it. Select 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, and enter the new logon password of the root user after the conversion. Then, click Confirm and Import.

    • Ubuntu-based instances in the classic network: Manually run a script before importing the instance.

  6. In the Import step, view the import progress.

    • If the instance is imported directly, wait until the Directly imported. message appears. Click Back to Cluster Details. When the ECS instance status changes to Running, the instance is imported to the cluster.

    • If the instance is imported by using an image, the import status shows Converting. It might take...

    • If you click Back to Cluster Details before the import is complete, the health check status displays Converting. When the import finishes, the status changes to Running.

Install via command script

Use a command script to manually install EDAS Agent. This method applies only to ECS instances in an ECS cluster.

  • Log on to the ECS instance as the root user to run the script.

  • The script can be run repeatedly. Each run overwrites the existing EDAS Agent installation.

  • EDAS Agent does not provide a separate update script. To update EDAS Agent, re-run the installation script.

  • The installation script is region-specific. Switch to the correct region in the EDAS console before copying the script.

  1. Log on to the EDAS console.

  2. In the left-side navigation pane, choose Resource Management > ECS.

  3. In the top navigation bar of the ECS page, select a region, select a microservices namespace at the top of the page, and then click Import ECS in the upper-right corner.

  4. In the Import ECS wizard, click Switch to Manual Installation in the upper-right corner. On the Manually Install EDAS Agent on Single Instance page, click Copy. > Note: To install EDAS Agent by using an image instead, click Switch to Image Installation. For more information, see Install via ECS import.

  5. Log on to the ECS instance as the root user. Paste and run the copied command. If the log contains EDAS Agent installation finished!, EDAS Agent is installed.

Verify the installation

After installation, verify that EDAS Agent is running:

  1. In the EDAS console, choose Resource Management > ECS in the left-side navigation pane.

  2. Select a region in the top navigation bar of the ECS page, and then select a microservices namespace.

  3. Check the Agent Status column. If EDAS Agent is installed and running, the status displays Online.

If the status does not display Online, try the following:

  • For the command script method, re-run the installation script on the ECS instance as the root user.

  • Make sure you selected the correct region and microservices namespace.

Update EDAS Agent

EDAS Agent does not provide a separate update script. To update EDAS Agent, re-run the installation command script. For more information, see Install via command script.