Skip to content

Ingester: Change log line level and make jitter potentially longer. #10689

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

Merged
merged 3 commits into from
Sep 22, 2023

Conversation

DylanGuedes
Copy link
Contributor

@DylanGuedes DylanGuedes commented Sep 22, 2023

What this PR does / why we need it:

  • Change our sleep log line from level=debug to level=info to allow visibility of it without having to change the log line level of distributors as a whole
  • Make the flush jitter to be 20% of flush check period instead of 1%. This means that, for the default 30s flush check period, the jitter will be at most 6s.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Checklist

  • Reviewed the CONTRIBUTING.md guide (required)
  • Documentation added
  • Tests updated
  • CHANGELOG.md updated
    • If the change is worth mentioning in the release notes, add add-to-release-notes label
  • Changes that require user attention or interaction to upgrade are documented in docs/sources/setup/upgrade/_index.md
  • For Helm chart changes bump the Helm chart version in production/helm/loki/Chart.yaml and update production/helm/loki/CHANGELOG.md and production/helm/loki/README.md. Example PR

Sorry, something went wrong.

@DylanGuedes DylanGuedes force-pushed the improve-flushing-jitter branch from 09fe36e to 3d0fa2f Compare September 22, 2023 18:11
j := i.cfg.FlushCheckPeriod / 100
// Add +/- 50% of flush interval as jitter.
// The default flush check period is 30s so max jitter will be 15s.
j := i.cfg.FlushCheckPeriod / 2
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this feels a bit too aggressive, what about 20% (or / 5)

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@DylanGuedes DylanGuedes marked this pull request as ready for review September 22, 2023 18:47
@DylanGuedes DylanGuedes requested a review from a team as a code owner September 22, 2023 18:47
Copy link
Collaborator

@slim-bean slim-bean left a comment

Choose a reason for hiding this comment

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

LGTM

@DylanGuedes DylanGuedes merged commit 2133702 into main Sep 22, 2023
@DylanGuedes DylanGuedes deleted the improve-flushing-jitter branch September 22, 2023 19:19
rhnasc pushed a commit to inloco/loki that referenced this pull request Apr 12, 2024
…rafana#10689)

**What this PR does / why we need it**:
- Change our sleep log line from `level=debug` to `level=info` to allow
visibility of it without having to change the log line level of
distributors as a whole
- Make the flush jitter to be 20% of flush check period instead of 1%.
This means that, for the default 30s flush check period, the jitter will
be at most 6s.
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.

None yet

2 participants