question

ShivaKakileti-7447 avatar image
0 Votes"
ShivaKakileti-7447 asked Bastiaan-8978 commented

What is the idle timeout for Application Gateway

We have set 60 seconds in the HTTP settings section, for few requests it throwing 502.
What is the idle timeout for azure application gateway?

azure-application-gateway
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

suvasara-MSFT avatar image
0 Votes"
suvasara-MSFT answered Bastiaan-8978 commented

@ShivaKakileti-7447, The Keep-Alive timeout in the Application Gateway v1 SKU is 120 seconds and in the v2 SKU it's 75 seconds. The TCP idle timeout is a 4-minute default on the frontend virtual IP (VIP) of both v1 and v2 SKU of Application Gateway.
You can configure the TCP idle timeout value on v1 and v2 Application Gateways to be anywhere between 4 minutes and 30 minutes. You can set the TCP idle timeout value of the public IP through PowerShell by running the following commands:

     $publicIP = Get-AzPublicIpAddress -Name MyPublicIP -ResourceGroupName MyResourceGroup
     $publicIP.IdleTimeoutInMinutes = "15"
     Set-AzPublicIpAddress -PublicIpAddress $publicIP



Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.



· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@suvasara-MSFT what's the difference between Keep-Alive timeout & timeout setting in HTTP settings

What's the purpose of these two.

0 Votes 0 ·

@ShivaKakileti-7447, Keep-Alive timeout governs how long the Application Gateway will wait for a client to send another HTTP request on a persistent connection before reusing it or closing it. Whereas the request timeout is the number of seconds that the application gateway will wait to receive a response from the backend pool before it returns a “connection timed out” error message.



Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.




0 Votes 0 ·

You can change the request timeout in the HTTP settings, default is 20 seconds.

https://docs.microsoft.com/en-us/azure/application-gateway/configuration-http-settings

0 Votes 0 ·