Azure Application Gateway websocket connections dropping after unrelated settings change

Tom Maljaars | Red Cactus 20 Reputation points
2024-07-12T10:54:46.8+00:00

We have a AKS cluster behind a Application Gateway. In this cluster we have pods with a large number of websocket connections.

The issue is that, when we changed a completely other setting in the Application Gateway (a new backend setting and updated a backend address) all our websocket connections where disconnected.

How is it possible that when we change a setting that has nothing to do with the websocket server settings, all the websocket connections are disconnecting?

Thanks in advance!

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
1,007 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,984 questions
0 comments No comments
{count} votes

Accepted answer
  1. ChaitanyaNaykodi-MSFT 24,486 Reputation points Microsoft Employee
    2024-07-12T20:13:12.4466667+00:00

    @Tom Maljaars | Red Cactus

    Thank you for reaching out.

    I understand you added a new backend setting and new backend address pool to your Application Gateway and this caused existing web socket connections for your other backend server to disconnect.

    This is actually expected behavior for Azure Application Gateway as the update applied to Application Gateway are applied one update domain at a time. As each update domain's instances are being updated, the remaining instances in other update domains continue to serve traffic. Active connections are gracefully drained from the instances being updated for up to 5 minutes to help establish connectivity to instances in a different update domain before the update begins. This is currently documented here.

    It is recommended to apply changes to the Azure Application Gateway during down-time or a maintenance window.

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


    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

0 additional answers

Sort by: Most helpful