Skip to content

Jitter for manager heartbeats and updates#889

Merged
bennybp merged 8 commits into
mainfrom
jitter
Jan 31, 2025
Merged

Jitter for manager heartbeats and updates#889
bennybp merged 8 commits into
mainfrom
jitter

Conversation

@bennybp

@bennybp bennybp commented Jan 31, 2025

Copy link
Copy Markdown
Contributor

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
@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