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

Jsonnet / Helm: relax the hash ring heartbeat period and timeout for distributor, ingester, store-gateway and compactor #6860

Merged
merged 6 commits into from
Jan 18, 2024

Conversation

dimitarvdimitrov
Copy link
Contributor

@dimitarvdimitrov dimitarvdimitrov commented Dec 8, 2023

In this PR we're upstreaming a config change we've done long time ago at Grafana Labs, relaxing the hash ring heartbeat period and timeout for distributor, ingester, store-gateway and compactor.

These are values which help reduce the pressure on a KV store or reduce the CPU spent by memberlist in passing messages.The tradeoff is that abrupt shutdowns/crashes of components will take longer to detect by peers. We've been running with these values at Grafana Labs for some time and haven't seen problems.

Checklist

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • about-versioning.md updated with experimental features.

@dimitarvdimitrov dimitarvdimitrov requested review from a team as code owners December 8, 2023 17:50
@dimitarvdimitrov

This comment was marked as outdated.

@dimitarvdimitrov dimitarvdimitrov marked this pull request as draft December 11, 2023 15:10
@dimitarvdimitrov

This comment was marked as outdated.

@pracucci pracucci force-pushed the dimitar/update-ring-settings branch 3 times, most recently from 5f09fa3 to da29aad Compare January 17, 2024 10:59
…ngester, store-gateway and compactor.

These are values which help reduce the pressure on a KV store or reduce the CPU spent by memberlist in passing messages.
The tradeoff is that abrupt shutdowns/crashes of components will take longer to detect by peers.
We've been running with these values at Grafana Labs for some time and haven't seen problems.

Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
@pracucci pracucci changed the title distributor, compactor, store-gateway, ingester: update ring heartbeat defaults Jsonnet / Helm: relax the hash ring heartbeat period and timeout for distributor, ingester, store-gateway and compactor Jan 17, 2024
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
@pracucci pracucci marked this pull request as ready for review January 17, 2024 14:41
Copy link
Contributor Author

@dimitarvdimitrov dimitarvdimitrov left a comment

Choose a reason for hiding this comment

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

thanks for driving this to completion @pracucci. In principle LGTM. Reviewing this code raises questions that I didn't ask myself before 😅

Copy link
Contributor Author

@dimitarvdimitrov dimitarvdimitrov left a comment

Choose a reason for hiding this comment

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

LGTM (even though I opened this PR)

Copy link
Collaborator

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

I took ownership of this PR from Dimitar. I did the changes on Dimitar's PR, so I've asked Dimitar to review it. Dimitar approved, but can't officially approve its own PR, so I'm approving it (but it's not a self-approval, it's Dimitar approving it in practice).

@pracucci pracucci merged commit d1bc422 into main Jan 18, 2024
30 checks passed
@pracucci pracucci deleted the dimitar/update-ring-settings branch January 18, 2024 08:04
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.

None yet

2 participants