Application Load Balancer (ALB) is a service provided by Alibaba Cloud. ALB runs at the application layer and supports protocols such as HTTP, HTTPS, and Quick UDP Internet Connections (QUIC). ALB offers high elasticity and can process a large amount of network traffic at the application layer. You can connect an ALB instance to an EDAS application so that the vServer group of the application can be automatically managed after the application is published.

Background information

If an EDAS application is deployed in an Elastic Compute Service (ECS) cluster, you can associate an ALB instance with the Classic Load Balancer (CLB) instance that is associated with the application to connect the ALB instance to the EDAS application. This way, you can enjoy the high elasticity and advanced traffic processing capabilities provided by ALB, use the application lifecycle management feature of EDAS, and implement automatic management of the vServer group after the application is published.

The following figure shows how ALB works with EDAS for applications deployed in ECS clusters.


Connect an ALB instance to an EDAS application

  1. Create a CLB instance. In this example, a CLB instance named edas-test-slb is created. For more information, see Create a CLB instance.
  2. Create an ALB instance. For more information, see Create an ALB instance.
  3. Associate the CLB instance with your EDAS application and record the IP address and port of the CLB instance. For more information, see Bind an SLB instance to a single application.
  4. Create a vServer group and add backend servers to the vServer group.
    1. Log on to the Server Load Balancer (SLB) console. In the left-side navigation pane, choose ALB > Server Groups.
    2. On the Server Groups page, click Create Server Group. In the Create Server Group dialog box, set the parameters as required and click Create.
      When you create the vServer group, set the Server Group Type parameter to IP and select the virtual private cloud (VPC) in which your ECS cluster in EDAS resides from the VPC drop-down list.
    3. In the dialog box that appears, click Add Backend Server. On the Backend Servers tab, click Add IP Address. In the Add Backend Server panel, specify the IP address and port obtained in Step 3.
  5. Create a listener for the ALB instance.
    1. In the SLB console, choose ALB > Instances in the left-side navigation pane.
    2. On the Instances page, find the ALB instance created in Step 2 and click Create Listener in the Actions column. Then, complete the wizard to create a listener.
      When you create the listener, select the vServer group created in Step 4.
Note In the SLB console, you can create a vServer group for the CLB instance that is associated with your application. You can also configure a forwarding rule based on the CLB instance for the ALB instance. SLB allows you to configure forwarding rules based on IP addresses and ports or based on domain names and URLs.