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

Jitter for manager heartbeats and updates #889

Merged
merged 8 commits into from
Jan 31, 2025
Merged

Jitter for manager heartbeats and updates #889

merged 8 commits into from
Jan 31, 2025

Conversation

bennybp
Copy link
Contributor

@bennybp bennybp commented Jan 31, 2025

Description

Adds options for adding jitter to manager heartbeats and updates. This does two things - helps with some random errors related to TCP keepalive, and also prevents the thundering herd effect where lots of managers started at the same time will all try heartbeat/update at the same time as well.

In addition, this PR disables keepalive connections for certain manager requests that are expected to be infrequent.

Heartbeat frequency jitter is controlled by the server, while update frequency jitter is set in the manager config.

Changes in this PR are backwards & forwards compatible.

Status

  • Code base linted
  • Ready to go

@bennybp bennybp changed the title Jitter for manager heartbeats and Jitter for manager heartbeats and updates Jan 31, 2025
@bennybp bennybp merged commit 6aa49b4 into main Jan 31, 2025
15 checks passed
@bennybp bennybp deleted the jitter branch January 31, 2025 19:46
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.

1 participant