After a lane group is created, you can directly access applications and monitor the inbound traffic of an ingress application.

Prerequisites

Before you configure end-to-end traffic adjustment for applications, make sure that the following prerequisites are met:
  • Microservices-based applications are created. For more information, see Overview.

    An ingress application is available. For example, a service gateway is built based on Spring Cloud Gateway or Spring Cloud Netflix Zuul. The service gateway is associated with a microservice namespace of Enterprise Distributed Application Service (EDAS).

    If you want to build an ingress gateway based on Spring Cloud Gateway, make sure that the version of Spring Cloud Gateway is 2.1.x or later.

  • A Server Load Balancer (SLB) instance is bound to the ingress application. For more information, see Bind SLB instances or Reuse an SLB instance.

Create a lane group

  1. Log on to the EDAS console.
  2. In the left-side navigation pane, choose Microservices Governance > End-to-end Traffic Adjustment.
  3. In the top navigation bar, select a region. On the End-to-end Traffic Adjustment page, select a microservice namespace.
  4. In the lower part of the End-to-end Traffic Adjustment page, click Create Lane Groups and Lanes.
    If a lane group is created in the selected microservice namespace, click Create to the right of the Select swim lane group field.
    Note A microservice namespace can contain up to two lane groups.
  5. In the Create swimlane panel, set relevant parameters and click OK.
    Create a lane group
    Parameter Description
    Microservice Space The microservice namespace that you select on the End-to-end Traffic Adjustment page. The selected microservice namespace cannot be changed.
    Lane group name The name of the lane group. The name can contain letters, digits, hyphens (-), and underscores (_). The name must be 1 to 64 characters in length.
    Entry type The type of the ingress application. Default value: Entry application (application/gateway deployed in EDAS).
    Note EDAS allows you to use a service gateway that is built based on Spring Cloud Gateway or Spring Cloud Netflix Zuul as an ingress application. The service gateway must be associated with a microservice namespace of EDAS.
    Entry application This parameter is displayed only when the Entry type parameter is set to Entry application (application/gateway deployed in EDAS).
    Swim lane group covers all applications Click Applications involved in adding flow control links and select all applications that are involved based on the ingress application or ingress gateway that you select.
    After the lane group is created, the involved applications of the created lane group are displayed in the Swim lane group involves applications section of the End-to-end Traffic Adjustment page. Check whether the ingress application and the involved applications are properly selected. To modify the information about the lane group, click Edit and modify the information as needed.

Monitor the traffic of an ingress application

  1. Obtain the endpoint of the SLB instance that is bound to the ingress application or ingress gateway that you want to manage.
    1. On the Applications page, click the name of the ingress application or ingress gateway.
    2. In the Access configuration section of the Application Overview page, copy the endpoint of the SLB instance.
  2. Use a browser or other tools to access an involved application of the lane group multiple times.
    In this example, the transaction center is accessed in a browser and the traffic is routed in different ways. For more information about how to route traffic to specific applications, see Use the end-to-end traffic adjustment feature to route traffic to specific applications.
    Case 1: A [172.20.**.**] -> B1[172.20.**.**] -> C[172.20.**.**]
    Case 2: A [172.20.**.**] -> B[172.20.**.**] -> C[172.20.**.**]
    Case 3: A2 [172.20.**.**] -> B[172.20.**.**] -> C[172.20.**.**]
    .......
  3. View the traffic monitoring chart of the ingress application.
    1. On the End-to-end Traffic Adjustment page, select the lane group whose data you want to view.
    2. On the End-to-end Traffic Adjustment page, select a monitoring time. The traffic monitoring chart is refreshed in the Ingress Application Monitoring (total) section.
      In the traffic monitoring chart, you can view the queries per second (QPS) at a point in time.