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

limit query range in async store for ingesters when query-ingesters-within flag is set #3201

Merged

Conversation

sandeepsukhani
Copy link
Contributor

What this PR does / why we need it:
When using boltdb-shipper we do an extra query(GetChunkIDs) to ingesters to get ids of chunks from their local store which otherwise would lead to missing data in query response due to a delay in ingesters uploading their local index and queriers syncing them. We were always querying the ingesters for whole query duration without considering query-ingesters-within flag.

In this PR we are changing the behaviour by limiting the GetChunkIDs query range when query-ingesters-within flag is non-zero. Considering the working of boltdb-shipper we calculate the value for query ingesters within for GetChunkIDs queries as follows:
MaxValueOf(querier.query-ingesters-within,ingester.max-chunk-age+boltdb shipper files upload interval+boltdb.shipper.resync-interval+15 mins).

pkg/storage/async_store.go Outdated Show resolved Hide resolved
@sandeepsukhani sandeepsukhani force-pushed the ingester-query-within-async-store branch from 0c33e27 to 3b5e8c7 Compare January 28, 2021 08:01
@owen-d owen-d merged commit db14ff1 into grafana:master Jan 28, 2021
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