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

Modifying a Listener

Scenarios

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

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. Go to the load balancer list page.
  2. On the displayed page, locate the load balancer and click its name.
  3. Click Listeners tab, locate the listener, and click its name.
  4. On the Summary tab, click Configure next to Modification Protection.
  5. 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. Go to the load balancer list page.
  2. On the displayed page, locate the load balancer and click its name.
  3. 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.
  4. On the Edit page, 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. Go to the load balancer list page.
  2. On the displayed page, locate the load balancer and click its name.
  3. Click Listeners, locate the listener, and click the name of the listener.
  4. On the Summary tab, click Edit on the top right.
  5. In the Edit dialog box, expand Advanced Settings.
  6. Configure Idle Timeout (s), Request Timeout (s), or Response Timeout (s) as you need.
  7. Click OK.

Changing the Backend Server Group of a Listener

  1. Go to the load balancer list page.
  2. On the displayed page, locate the load balancer and click its name.
  3. On the Listeners tab, locate the target listener and click its name.
  4. On the Summary tab, click Change Backend Server Group on the right of Default Backend Server Group area.
  5. 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.

  6. Click OK.