Setup: I have deployed an azure application gateway in front of my AKS cluster service.
1- App Gw shows the backend pools are healthy.
2- AKS cluster service is running a WebSocket server.
3- The App gw TCP timeout is changed from the default value of 4 to 30 minutes.
4- BE request timeout is changed from the default value of 30 seconds to 15 minutes.
I am trying 10,000 web socket connections with my test clients. All the 10,000 connections get connected in a few seconds.
In a one-minute window, the connection start dropping, and the client starts complaining 504: timeout error
Note: When the same WebSocket client tried with AKS service ( WebSocket server) it connects well and also does not show any disconnection.
Could you please help me with what i am missing in the application gateway?