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

default ingester final sleep to 0 unless otherwise specified #4608

Merged
merged 3 commits into from
Nov 2, 2021

Conversation

trevorwhitney
Copy link
Collaborator

@trevorwhitney trevorwhitney commented Nov 1, 2021

What this PR does / why we need it:

This changes the default value for the ingester lifecycler's final sleep from 30s to 0s. With the default value, loki appears to hang when shutting down. This feature is designed to allow one last metric scrape to occur before shutdown, but as that is heavily dependent on scrape intervals in various environments, this default value is probably not sensible for everyone. Furthermore, for users who don't even know this value exists, it may be surprising to them why Loki "hangs" on shut-down.

0s seems like a better default, as it won't delay the Loki shutdown, and the property is still available for users to set per their environment / scrape interval.

Which issue(s) this PR fixes:
Fixes #4605

Checklist

  • Documentation added
  • Tests updated
  • Add an entry in the CHANGELOG.md about the changes.

@DylanGuedes
Copy link
Contributor

Update the ingester_config section in docs/sources/configuration/_index.md and then LGTM

@slim-bean slim-bean merged commit 62ee399 into main Nov 2, 2021
@slim-bean slim-bean deleted the default-final-sleep branch November 2, 2021 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default ingester ring final_sleep to 0s
5 participants