Skip to content

[Backport 1.28] k8s-dqlite watcher query timeout backport - #4651

Merged
louiseschmidtgen merged 2 commits into
1.28from
backport-1.28-watch-timeout
Sep 4, 2024
Merged

[Backport 1.28] k8s-dqlite watcher query timeout backport#4651
louiseschmidtgen merged 2 commits into
1.28from
backport-1.28-watch-timeout

Conversation

@louiseschmidtgen

@louiseschmidtgen louiseschmidtgen commented Sep 2, 2024

Copy link
Copy Markdown
Contributor

Description

Backports watcher query timeout in k8s-dqlite: canonical/k8s-dqlite#161

The PR adds a timeout on long running after queries in k8s-dqlite which are part of the watcher's poll loop.
The timeout is configurable using the watch-query-timeout flag.

Context

This PR addresses issues raised in microk8s where after the leader node is removed from the cluster the remaining nodes also go into NotReady state for ~20 minutes. This timeout helps the responsiveness of the cluster after loosing its leader.

@louiseschmidtgen louiseschmidtgen changed the title k8s-dqlite watcher query timeout backport Sep 2, 2024
@louiseschmidtgen louiseschmidtgen changed the title [Backport 1.289 k8s-dqlite watcher query timeout backport Sep 2, 2024
@louiseschmidtgen
louiseschmidtgen force-pushed the backport-1.28-watch-timeout branch from 31fadaa to e8656d7 Compare September 3, 2024 09:34

@bschimke95 bschimke95 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, once CI passes (failure seems to be unrelated to the change)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants