Skip to content

[Backport 1.29] watch query timeout backport k8s-dqlite - #4653

Merged
louiseschmidtgen merged 4 commits into
1.29from
KU-1434/1.29-watcher-query-timeout
Sep 3, 2024
Merged

[Backport 1.29] watch query timeout backport k8s-dqlite#4653
louiseschmidtgen merged 4 commits into
1.29from
KU-1434/1.29-watcher-query-timeout

Conversation

@louiseschmidtgen

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 commented Sep 2, 2024

Copy link
Copy Markdown
Contributor Author

Testing multi-distros fails since after the lxd separation the community images are not available anymore. Removing Centos from run.

@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

@louiseschmidtgen
louiseschmidtgen merged commit 7e53d77 into 1.29 Sep 3, 2024
@louiseschmidtgen
louiseschmidtgen deleted the KU-1434/1.29-watcher-query-timeout branch September 3, 2024 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants