Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions,
see Getting Started with Amazon Web Services in China
(PDF).
Update the TCP idle timeout for your Network Load Balancer listener
For each TCP request made through a Network Load Balancer, the state of that connection is tracked.
If no data is sent through the connection by either the client or target for longer
than the idle timeout, the connection is closed.
- Console
-
To update the TCP idle timeout
Open the Amazon EC2 console at
https://console.amazonaws.cn/ec2/.
-
In the navigation pane, under Load Balancing, choose
Load Balancers.
-
Select the check box for the Network Load Balancer.
-
On the listeners tab, select the check box for the TCP listener and then choose
Actions, View listener details.
-
On the listener details page, in the Attributes tab, select
Edit. If the listener uses a protocol other than TCP, this tab
is not present.
-
Enter a value for TCP idle timeout from 60-6000 seconds.
-
Choose Save changes.
- Amazon CLI
-
To update the TCP idle timeout
Use the modify-listener-attributes command with the
tcp.idle_timeout.seconds
attribute.
aws elbv2 modify-listener-attributes \
--listener-arn arn:aws-cn:elasticloadbalancing:us-west-2
:123456789012
:listener/net/my-load-balancer
/1234567890123456
/1234567890123456
\
--attributes Key=tcp.idle_timeout.seconds,Value=500
The following is example output.
{
"Attributes": [
{
"Key": "tcp.idle_timeout.seconds",
"Value": "500"
}
]
}