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

allow more time for boltdb-shipper index syncs to finish #6071

Merged

Conversation

sandeepsukhani
Copy link
Contributor

What this PR does / why we need it:
With boltdb-shipper, we have some timers configured to manage the index across various services. This PR looks at the time we allow sync operations to finish in the worst-case scenario.
With the current timers set, in the worst-case scenario, we should be finishing the index sync operation in up to 2 mins and if we fail, users might see gaps in their query response. This PR tunes some timers to allow syncs to have more time to run, specifically allowing sync to get the updates in up to 3 attempts. This change impacts the following timers with default values:

  • retains index files with ingester for 20m instead of 12m after uploading.
  • sets GetChunkIDs lookback to 2h41m instead of 2h28m.

The impact of this is ingesters getting more queries from queries for GetChunkIDs since we are increasing the lookback

* retains index files with ingester for 20 mins instead of 12 mins after uploading
* sets GetChunkIDs lookback to 2h41m instead of 2h28m
@sandeepsukhani sandeepsukhani requested a review from a team as a code owner May 2, 2022 11:32
Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

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

LGTM

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.

2 participants