Skip to content
Smarter by Design.Simpler for Business

lb timeouts ​

The lb timeouts command creates the timeout profiles that determine how long a vService will wait in the connection stages. Its panel equivalent is the Timeouts screen.

Command Summary ​

TR7 WEB-CLI · lb timeouts
# Tab after the command
admin@TR7LBWAF01> lb timeouts
add delete list show update
 
admin@TR7LBWAF01> lb timeouts list # list all of them
admin@TR7LBWAF01> lb timeouts show <id> # show one
admin@TR7LBWAF01> lb timeouts add name <name> … # new profile
admin@TR7LBWAF01> lb timeouts update id <id> … # change
admin@TR7LBWAF01> lb timeouts delete <id> # delete
admin@TR7LBWAF01>  

Required Fields ​

OrderFieldStatusValue
1nameRequiredThe name of the profile; it must be unique in the collection

The Timeout Fields ​

All the fields take a value in seconds between 0 and 60000 and, when they are not given, they are applied with their defaults.

FieldWhat it doesDefault
--connectTimeoutDetermines how long will be waited in order to connect to the backend20
--clientTimeoutDetermines how long will be waited for data to come from the client90
--serverTimeoutDetermines how long will be waited for a response to come from the backend90
--httpRequestTimeoutDetermines how long will be waited for the request headers to be completed30
--httpKeepaliveTimeoutDetermines how long the connection will stay open while waiting for a new request120
--queueTimeoutDetermines how long the request will wait in the queue when the backends are full60
--tunnelTimeoutDetermines the idle time in the tunnel connections such as WebSocket120
--clientFINDetermines how long will be waited after the client starts closing the connection3
--serverFINDetermines how long will be waited after the backend starts closing the connection6

The tunnel and the server time are separated for the long-running work

WebSocket or long-running downloads are set with --tunnelTimeout, and the time in which the backend produces a response with --serverTimeout; confusing the two leads to unexpected disconnections.

Examples ​

TR7 WEB-CLI · the timeout profile
# the server time is extended for the long-running reports
admin@TR7LBWAF01> lb timeouts add name report-service \
--connectTimeout 10 --serverTimeout 300 --clientTimeout 120 \
--httpRequestTimeout 15 --queueTimeout 30
 
# the tunnel time for websocket
admin@TR7LBWAF01> lb timeouts add name websocket-service --tunnelTimeout 3600
 
admin@TR7LBWAF01> lb service update id <vService> --timeout <profile>
admin@TR7LBWAF01> lb timeouts delete <id>
admin@TR7LBWAF01>  

Things to Know ​

  • A profile does not work on its own. The times are applied when the profile is bound to a vService with the --timeout field.
  • Short times lead to early disconnection. In the services where the backend responds slowly, --serverTimeout should be kept long enough.
  • The queue time depends on the limit profile. --queueTimeout comes into play when the backends hit the connection limit in the lb limits profile.
  • The name is unique. A second profile with the same name cannot be created.