Updated on 2024-06-20 GMT+08:00

Modifying a Listener

Scenarios

You can configure modification protection for a listener, modify the settings of a listener, change the backend server group of a listener, and delete a listener.

Prerequisites

Configuring Modification Protection for a Listener

You can enable modification protection for a listener to prevent it from being modified or deleted by accident.

  1. Log in to the management console.
  2. In the upper left corner of the page, click and select the desired region and project.
  3. Click in the upper left corner to display Service List and choose Networking > Elastic Load Balance.
  4. On the Load Balancers page, locate the load balancer and click its name.
  5. Click Listeners tab, locate the listener, and click its name.
  6. On the Summary tab, click Configure next to Modification Protection.
  7. In the Configure Modification Protection dialog box, enable Modification Protection.

You need to disable Modification Protection if you want to modify or delete a listener.

Modifying Listener Settings

Frontend Protocol/Port and Backend Protocol cannot be modified. If you want to modify the protocol or port of the listener, add another listener to the load balancer.

  1. Log in to the management console.
  2. In the upper left corner of the page, click and select the desired region and project.
  3. Click in the upper left corner to display Service List and choose Networking > Elastic Load Balance.
  4. On the Load Balancers page, locate the load balancer and click its name.
  5. Modify the listener in either of the following ways:
    • On the Listeners tab, locate the listener, and click Edit in the Operation column.
    • Click the name of the target listener. On the Summary tab, click Edit on the top right corner.
  6. In the Edit dialog box, modify parameters, and click OK.

Modifying Timeout Durations

You can modify timeout durations (idle timeout, request timeout, and response timeout) for your listeners to meet varied demands. For example, if the size of a request from an HTTP or HTTPS client is large, you can prolong the request timeout duration to ensure that the request can be successfully routed.

  1. Log in to the management console.
  2. In the upper left corner of the page, click and select the desired region and project.
  3. Click in the upper left corner to display Service List and choose Networking > Elastic Load Balance.
  4. On the Load Balancers page, locate the load balancer and click its name.
  5. Click Listeners, locate the listener, and click the name of the listener.
  6. On the Summary tab, click Edit on the top right.
  7. In the Edit dialog box, expand Advanced Settings.
  8. Configure Idle Timeout (s), Request Timeout (s), or Response Timeout (s) as you need.
  9. Click OK.

Changing the Backend Server Group of a Listener

  1. Log in to the management console.
  2. In the upper left corner of the page, click and select the desired region and project.
  3. Click in the upper left corner to display Service List and choose Networking > Elastic Load Balance.
  4. On the Load Balancers page, locate the target load balancer and click its name.
  5. On the Listeners tab, locate the target listener and click its name.
  6. On the Summary tab, click Change Backend Server Group on the right of Default Backend Server Group area.
  7. In the displayed dialog box, click the server group name box.
    Select a backend server group from the drop-down list or create a group.
    1. Click the name of the backend server group or enter the name in the search box to search for the target group.
    2. Click Create Backend Server Group. After the backend server group is created, click the refresh icon.

      The backend protocol of the new backend server group must match the frontend protocol of the listener.

  8. Click OK.

Deleting a Listener

  1. Log in to the management console.
  2. In the upper left corner of the page, click and select the desired region and project.
  3. Click in the upper left corner to display Service List and choose Networking > Elastic Load Balance.
  4. On the Load Balancers page, locate the load balancer and click its name.
  5. Click the Listeners tab, locate the listener, and click Delete in the Operation column.
  6. In the displayed dialog box, enter DELETE.
  7. Click OK.