Listeners are responsible for receiving and distributing client requests. Gateway Load Balancer (GWLB) supports IP listeners, allowing you to add IP listeners for GWLB instances and modify or delete listeners as needed.
Prerequisites
You have created a GWLB instance.
You have created an available server group.
Add an IP listener
Log on to the GWLB console.
In the top navigation bar, select the region where the GWLB instance is deployed.
Use one of the following methods to open the listener configuration wizard.
On the Instances page, click Create Listener in the Actions column of the target instance.
On the Instances page, click the ID of the target instance. On the Listeners tab, click Create IP Listener.
On the Create IP Listener page, configure the parameters, and then click OK.
Parameter
Description
Listener Name
Enter a name for the listener.
Server Group Resource Group
Select a resource group for the server group.
This configuration is only applicable to Resource Access Management (RAM) users. Alibaba Cloud accounts do not need to configure this parameter.
Server Group
Server: supports adding ECS instances, Elastic Network Interfaces (ENIs), and Elastic Container Instances (ECIs) as backend servers.
IP: supports adding IP addresses as backend servers.
Advanced Configuration
Click to expand Advanced Configuration.
TCP Connection Idle Timeout
Configure the TCP connection idle timeout period. If no data is transmitted during the idle timeout period, the current connection will be closed, and the GWLB instance will route new traffic to a new backend server. Existing traffic will be discarded until a new connection is established when the next request arrives.
The default value is 350 seconds. You can customize the TCP connection idle timeout only when the traffic scheduling algorithm of the selected server group is 5-tuple hashing. Valid values: 60 to 6000 seconds.
NoteThe connection idle timeout value for non-TCP traffic is 120 seconds and cannot be modified.
Tag
Set Tag Key and Tag Value for the listener.
You can add multiple tags to a listener.
More operations
Operation | Procedure |
Modify a listener |
|
Modify the TCP connection idle timeout | You can modify the TCP connection idle timeout only when the traffic scheduling algorithm of the server group associated with the listener is 5-tuple hashing. Valid values: 60 to 6000 seconds.
|
Delete a listener |
|
Change the server group |
|