Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Longer lease TTL and run lease_keepalive earlier #847

Merged
merged 3 commits into from
Nov 20, 2024

Conversation

viktorerlingsson
Copy link
Member

@viktorerlingsson viktorerlingsson commented Nov 15, 2024

We've seen the etcd lease expiring without obvious reasons, but probably because LavinMQ was busy doing something else during the pretty short timeframe (0.5s) it has to run lease_keepalive.

WHAT is this pull request doing?

Increases default lease TTL 5s -> 10s. Also timeouts earlier so lease_keepalive has a longer window to run (3s instead of 0.5s), which should make it less likely that unnecessary leader elections happen.

HOW can this pull request be tested?

manual/specs

@viktorerlingsson viktorerlingsson requested a review from a team as a code owner November 15, 2024 09:57
@viktorerlingsson viktorerlingsson changed the title timeout earlier so lease_keepalive has a longer window to run Longer lease TTL and run lease_keepalive earlier Nov 20, 2024
@viktorerlingsson viktorerlingsson force-pushed the etcd-lease-keepalive-earlier branch from a3576ce to be81e74 Compare November 20, 2024 10:32
@viktorerlingsson viktorerlingsson merged commit 700d52b into main Nov 20, 2024
9 of 18 checks passed
@viktorerlingsson viktorerlingsson deleted the etcd-lease-keepalive-earlier branch November 20, 2024 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants