Skip to content

terminal sockets timeouts in cluster #16741

@vosdev

Description

@vosdev

Hey!

After a long time of debugging I think I have it pinpointed down to the issue and am able to reproduce it.

My terminal connections get a timeout of 60s (the timeout configured in haproxy) when the instance is running on a different cluster member than the lxd server serving the web ui

No errors in my F12 console.

I have a 4 node LXD 6.5 cluster, node[1-4] for simplicity.

I have a keepalived script that chooses the database-leader as cluster member. That node will serve the web UI via haproxy. This is currently node4. haproxy only has the localhost lxd as backend configured.

Instances running on node4 can have their terminal open in the web UI without any issues. But instances running on node1, node2 or node3 timeout after 60s.

Haproxy is the one killing the session. If I change the haproxy timeout to 5 minutes it happens after 5 minutes.

If I migrate the instance to node4 and open a terminal it stays open indefinitely. But when I migrate the instance to node3 again and open a terminal, it dies after the configured timeout in haproxy.

Perhaps similar to canonical/lxd-ui#1193 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions