You can create and deploy applications in Elastic Compute Service (ECS) clusters.

Prerequisites

Create and deploy an application in an ECS cluster

  1. Log on to the EDAS console.
  2. In the left-side navigation pane, click Applications.
  3. On the Applications page, select the region in which you want to create and deploy an application in the top navigation bar. In the upper part of the page, select the microservice namespace that you want to use. Then, click Create Application in the upper-left corner of the page.
  4. In the Create Application wizard, enter basic information about the application that you want to create in the Basic Information step, and click Next to go to the Configurations step.
    Parameter Description
    Cluster Type Select ECS Clusters.
    Application Runtime Environment
    • Dubbo or Spring Cloud application:
      • Use a JAR package to deploy the application
        • Select Java.
        • From the Java Environment drop-down list, select a JDK version.
      • Use a WAR package to deploy the application
        • Select Tomcat.
        • From the Java Environment drop-down list, select a JDK version.
        • From the Container Version drop-down list, select an Apache Tomcat version.
    • HSF application:
      • Select EDAS-Container (HSF).
      • From the Java Environment drop-down list, select a JDK version.
      • From the Pandora Version drop-down list, select a Pandora version.
      • From the Ali-Tomcat Version drop-down list, select an Ali-Tomcat version.
    Application Name The name of the application that you want to create. The name must start with a letter and can contain digits, letters, underscores (_), and hyphens (-). The name can be up to 36 characters in length.
    Application Description The description of the application. The description can be up to 128 characters in length.
  5. In the Configurations step, select the deployment package source and instance source, and click Next.
    Parameter Description
    Source of Deployment Package
    • Customer Program
      To deploy an existing application to Enterprise Distributed Application Service (EDAS), you must set File Uploading Method:
      • Upload JAR Package, Upload WAR Package, or Upload Deploy Package: Select a local application package and upload it.
      • JAR Package Address, WAR Package Address, or Deploy Package Address: Enter the public URL of your deployment package.
    • Official Demo

      EDAS provides a pair of application demos in the Spring Cloud, Apache Dubbo, and High-Speed Service Framework (HSF) frameworks to help you create and deploy applications. For more information, see Get started with EDAS.

    • Do Not Deploy

      An application is created and its basic information is generated. However, the application is not deployed.

    Instance Source
    • Purchase Instance: EDAS purchases ECS instances for you.
    • Use Existing Instance: You can use existing idle instances in your cluster.
    Environment
    • Default Environment: Create a default cluster in the default microservice namespace. The cluster uses the default virtual private cloud (VPC) in the region.
    • Custom Environment: From the Microservice Namespaces and Cluster drop-down lists, select the microservice namespace and cluster that you create. If no microservice namespaces or clusters are created, you can click Create Microservice Namespace or Create Cluster to create a microservice namespace or a cluster.
    Purchase Method
    • Purchase Based on Recommended Specifications:

      Select instance specifications based on your business needs, set the Quantity and Logon Password parameters, and then select Elastic Compute Service Terms of Service | Terms of Service for Images.

    • Purchase Based on Existing Instance Specifications:

      Select an instance in the Select Template Instance section as the template, set the Recycling Mode, Password, and Quantity parameters, and then select Elastic Compute Service Terms of Service | Terms of Service for Images.

    • Purchase Based on Instance Launch Template:

      Select an instance launch template, set the Recycling Mode and Quantity parameters, and then select Elastic Compute Service Terms of Service | Terms of Service for Images.

  6. In the Advanced Settings step, set the Version and Application Health Check parameters, and click Create Application.
  7. In the Creation Completed step, check the information in the Basic Information, Configurations, and Advanced Settings sections, and then click Create Application.
    At the top of the Basic Information tab, click View Details. You can view the change process on the Change Details page. Wait several minutes until the application is deployed. Then, check the instance status on the Instance Information tab of the application details page. If the status is Normal, the application is deployed.

Configure an SLB instance

The application is created and deployed in a VPC. Therefore, the application does not have a public IP address by default. If you want to open your application over the Internet, we recommend that you configure an Internet-facing SLB instance for the application.

Note Then, EDAS enables the session persistence feature for HTTP listeners. The feature cannot be disabled.
  1. Log on to the EDAS console.
  2. In the left-side navigation pane, click Applications.
  3. On the Applications page, select the region in which your application resides in the top navigation bar. In the upper part of the page, select the microservice namespace of your application, and select ECS Clusters from the Cluster Type drop-down list. Then, click the name of the application that you want to view.
  4. In the Application Settings section of the Basic Information tab, click Add next to SLB (Internet).
  5. In the Bind SLB Instance to Application dialog box, set the parameters. For more information, see Configure a dedicated SLB instance for an application.
    Copy the public IP address and port of the configured Internet-facing SLB instance, such as 39.XX.XX.65:81, and paste it into the address bar of a browser. Then, press the Enter key to go to the web page of the application.

Limits on system configurations on an ECS instance

After the application is created, you may log on to an ECS instance of the application to configure the instance. Take note of the following limits during the configuration: