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

feat(ingester): Smooth out chunk flush operations #9994

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

chaudum
Copy link
Contributor

@chaudum chaudum commented Jul 20, 2023

What this PR does / why we need it:

In order to prevent spikes in chunk flush operations every flush check period, we smooth out the flush operations over the period of the interval.

Special notes for your reviewer:

Taken from cortexproject/cortex#3191

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/upgrading/_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

@chaudum chaudum requested a review from a team as a code owner July 20, 2023 14:07
@chaudum chaudum force-pushed the chaudum/smooth-out-flush-operations branch from 833ba75 to d0a0bad Compare July 20, 2023 14:09
@chaudum chaudum marked this pull request as draft July 20, 2023 14:10
@chaudum chaudum marked this pull request as ready for review July 20, 2023 15:57
CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@trevorwhitney trevorwhitney left a comment

Choose a reason for hiding this comment

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

LGTM, one small nit about the variable name

pkg/ingester/flush.go Outdated Show resolved Hide resolved
@chaudum chaudum force-pushed the chaudum/smooth-out-flush-operations branch from 37ac098 to f18a57b Compare July 25, 2023 05:59
@jeschkies
Copy link
Contributor

@chaudum I think this can land...

@chaudum chaudum force-pushed the chaudum/smooth-out-flush-operations branch from f18a57b to 2a695c9 Compare September 4, 2023 13:10
pkg/ingester/flush.go Show resolved Hide resolved
pkg/ingester/flush.go Show resolved Hide resolved
In order to prevent spikes in chunk flush operations every flush check
period, we smooth out the flush operations over the period of the
interval.

Signed-off-by: Christian Haudum <[email protected]>
@chaudum chaudum force-pushed the chaudum/smooth-out-flush-operations branch from 2a695c9 to 8359221 Compare June 20, 2024 14:22
@chaudum chaudum changed the title Smooth out chunk flush operations feat: Smooth out chunk flush operations Jun 20, 2024
Copy link
Contributor

@sandeepsukhani sandeepsukhani left a comment

Choose a reason for hiding this comment

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

LGTM

@chaudum chaudum changed the title feat: Smooth out chunk flush operations feat(ingester): Smooth out chunk flush operations Jun 21, 2024
@chaudum chaudum merged commit 82fbb2f into main Jun 21, 2024
60 checks passed
@chaudum chaudum deleted the chaudum/smooth-out-flush-operations branch June 21, 2024 07:01
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.

6 participants