What's the meaning of idle timeout on the public IP configuration page?

iseki zero 21 Reputation points
2024-04-20T20:11:37.82+00:00

User's image

Who can tell me the exact behavior of after the timeout? I bind the public IP to a VM directly, why there's a gateway bring a "idle timeout" to me? I bind the IP directly, without any NAT or lload balancer.

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,512 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Q&A Assist
    2024-04-20T20:11:37.8366667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The idle timeout setting on the public IP configuration page in Azure Application Gateway controls how long a TCP connection can remain idle before it's closed. If there's no activity on the connection for the specified duration, the connection is closed. This setting is used to optimize resource utilization and prevent resource exhaustion. Even if you bind the public IP to a VM directly, the idle timeout setting is still relevant because it's a property of the public IP resource.


    References:

    0 comments No comments

  2. ChaitanyaNaykodi-MSFT 26,216 Reputation points Microsoft Employee
    2024-04-23T01:34:41.78+00:00

    @iseki zeroThank you for reaching out.

    I understand you wish to know what the Idle timeout is setting available for a Public IP in Azure and what is behavior after the Idle timeout maximum is exceeded.

    In this case of Public IP address as documented here this setting provides an adjustable inbound originated flow idle timeout of 4-30 minutes, with a default of 4 minutes, and fixed outbound originated flow idle timeout of 4 minutes.

    This idle timeout setting basically keeps a TCP or HTTP connection open without relying on clients to send keep-alive messages. If a period of inactivity is longer than the timeout value, there's no guarantee that the TCP or HTTP session is maintained between the client and your cloud service.

    This setting is useful when your application requires long running TCP connections. To avoid losing the connection, configure the TCP keep-alive with an interval less than the idle timeout setting or increase the idle timeout value.

    I understand you have not set-up any Gateway or load balancer, this setting is added as a default to Azure public IP to support the scenario described above.

    Hope this helps! Please let me know if you have any additional questions. Thank you!


    Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.


  3. Rakesh Raushan 0 Reputation points
    2024-09-12T07:58:17.99+00:00

    @iseki zero
    I too have come across this. I want to ask if there is a way to configure this default value of 4 mins to something else. I am creating a service resource on Kubernetes which requires idle time of more than 4 mins so can I configure it in my yaml? if so what annotation can be used for the same? I do not want to manually configure the idle time for the public ip from the portal.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.