Listeners receive and distribute client requests. GWLB supports IP listeners. You can add an IP listener to a GWLB instance, and then modify or delete it.
Add an IP listener
Before you begin, ensure that you have created a GWLB instance and have an available server group.
Log on to the Gateway Load Balancer console.
-
In the top navigation bar, select the region where you want to create the GWLB instance.
In the Actions column of the target instance, click Create Listener.
On the Create IP Listener page, configure the following parameters and click OK.
Parameter
Description
Listener Name
Enter a name for the listener.
Server Group Resource Group
Select the resource group to which the server group belongs.
This parameter is for RAM users only. Skip this setting if you are using an Alibaba Cloud account.
Server Group
Server: The server group contains ECS, ENI, or ECI instances as backend servers.
IP: The server group contains IP addresses as backend servers.
Advanced Settings
Click to expand Advanced Settings.
Idle TCP Connection Timeout
The timeout period for an idle TCP connection. If no data is transmitted over a connection during this period, the GWLB instance closes the connection. Subsequent traffic for this flow is dropped until a new connection is established.
The default value is 350 seconds. You can customize this timeout only if the associated server group uses the 5-tuple hashing scheduling algorithm. The value must be between 60 and 6,000 seconds, inclusive.
The idle timeout for non-TCP traffic is 120 seconds and cannot be changed.
Tags
Assign a Tag Key and a Tag Value to the listener.
You can add multiple tags to a listener.
More operations
Actions | Procedure |
Modify listener attributes |
|
Modify the idle TCP connection timeout | You can modify this timeout only if the associated server group uses the 5-tuple hashing scheduling algorithm. The value must be between 60 and 6,000 seconds, inclusive.
|
Delete a listener |
|
Change the server group |
|