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 where you want to create and deploy an application in the top navigation bar. In the upper part of the page, select the namespace that you want to use. Then, click Create application in the upper-right corner of the page.
  4. In the Create Application wizard, enter basic information about the application that you want to create in the Application Information step, and click Next to go to the Application Configuration step.
    Parameter Description
    Cluster Type Select ECS Clusters.
    Application Runtime Environment
    • Apache Dubbo or Spring Cloud applications:
      • Use a JAR package to deploy an application.
        • Select Java.
        • From the Java Environment drop-down list, select a JDK version.
      • Use a WAR package to deploy an 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 applications:
      • 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. It 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 basic information about the application. The information can be up to 128 characters in length.
  5. In the Application Configuration 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 a New Instance: EDAS purchases an ECS instance for you.
    • Use Existing Instance: You can use existing idle instances in your cluster.
    Environment
    • Default Environment: Create a default cluster in the default namespace. The cluster uses the default virtual private cloud (VPC) in the region.
    • Custom Environment: From the Namespace and Cluster drop-down lists, select the namespace and cluster that you create. If no namespace or cluster is created, you can click Create Namespace and Create Cluster to create a namespace and a cluster.
    Purchase Method
    • Purchase Based on Recommended Specifications:

      Select instance specifications based on your business needs, set Quantity and Logon Password, and then select ECS Service Terms | Terms of Service for Image Products.

    • Purchase Based on Existing Instance Specifications:

      Select an instance in the Select Template Instance section as the template, set Recycling Mode, Password, and Quantity, and then select ECS Service Terms | Terms of Service for Image Products.

    • Purchase Based on Instance Launch Template:

      Select the launch template, set Recycling Mode and Quantity, and then select ECS Service Terms | Terms of Service for Image Products.

  6. In the Advanced Settings step, set Version and Application Health Check, and click Create Application.
  7. In the Application has been created. step, check Application Information, Application Configuration, and Advanced Application Settings, and then click Create Application.
    Click View Details in the message on top of the Basic Information page. You can view the change process on the Change Details page. Wait several minutes until the application is deployed. Then, check the instance running status on the Instance Deployment Information tab of the Basic Information page. If the running status is Normal, the application is deployed.

Configure a Server Load Balancer (SLB) instance

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

  1. Log on to the EDAS console.
  2. In the left-side navigation pane, click Applications.
  3. On the Applications page, select the region where your application is located in the top navigation bar. In the upper part of the page, select the namespace of your application, and select ECS Cluster from the Cluster Type drop-down list. Then, click the name of the application that you want to view.
  4. On the Basic Information page, click Add next to SLB (Internet) in the Application Settings section of the Basic Information tab.
  5. In the Bind SLB 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 browser address bar. Then, press Enter to go to the web page of the application.