To publish an application, you need to create an application first, deploy it, and then configure load balancing.
Make sure an ECS instance has been imported to the region where you want to publish an application. Otherwise, import an ECS instance first.
Log on to the EDAS console, and click Applications in the left-side navigation pane.
Click Create Application at the upper-right corner of the Applications page.
In the Create Application dialog box, select Application Runtime Environment, enter an Application Name, and select Namespace. Then click Next.
- Application runtime environment: If you have no special needs, select the latest EDAS Container version.
- Application name: A meaningful name is recommended.
- Namespace: Select the namespace where you want to publish the application.
Select Application Type and Cluster and specific ECS instances.
Application Type: Select Regular Application.
Cluster and ECS instances: Select cluster and ECS instances where to create the application.
Network type deponds on the selected cluster.
Log on to the EDAS console and click Applications in the left-side navigation pane.
On the Applications page, click the name of the your application to go to the application’s details page. Click Deploy Application at the upper-right corner.
In the Deploy and Publish Application dialog box, set the relevant parameters and then click Deploy Application.
Note: EDAS allows you to deploy an application to multiple ECS instances at the same time. In this example, the application is deployed to one instance. Therefore, select the default value “1 Batch(s)” from the Batch drop-down list.
File Uploading Method: Select Upload WAR Package and click Download Demo Project to save the compiled WAR package to your local storage.
Upload WAR Package: Click Select File and select the downloaded demo project WAR package.
To learn about how to develop WAR packages, see Service Development in the Developer Guide.
Enter Version: Enter the application version.
Publish to Group: Select the target group from the drop-down list. If you have no special requirements, select Group: Default Group.
Batch: Select 1 Batch(s).
Batch Mode: Select Automatic.
The file upload progress is shown at the top of the dialog box. After it reaches 100%, you are redirected to the change order page, where you can see the deployment progress. After deployment, the status changes to Execution Successful.
In the left-side navigation pane, click Basic Information to return to the Application Details page. In the Application Settings section, click Add to the right of SLB (Intranet) or SLB (Internet).
In the Bind SLB to Application dialog box, select the address of your private or public SLB instance from the SLB (Intranet) or SLB (Internet) drop-down list.
Note: If no SLB address is available in the list, first create a SLB instance and configure the SLB instance. Then, go to Resources > SLB in the EDAS console and click Synchronize SLB at the upper-right corner of the page to get the SLB address.
(Optional) To monitor the SLB port, check SLB Port Monitoring, set the SLB Frontend Port, and then click Configure SLB.
After publishing the application, copy the added SLB and port, paste it in your browser’s address bar, and press Enter. The application’s welcome page is displayed.