Skip to content

Make querier_sharding_test less brittle #4970

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 5 commits into from
Nov 23, 2022

Conversation

alvinlin123
Copy link
Contributor

@alvinlin123 alvinlin123 commented Nov 16, 2022

I am guessing that by increasing number of queries (sample space), we are less likely to deviated from the assertion of require.InDelta(t, 0, diff, numQueries*0.20).

By empirical data, if I start more than 100 queries concurrently, I get HTTP 429 error; so I implemented some batching logic on top of the original numQueries. I have tuned bunch of config in Cortex and could not get rid of the HTTP 429, so I came to believe the 429 may be caused by the file description issue mentioned in the original comment.

Signed-off-by: Alvin Lin [email protected]

Signed-off-by: Alvin Lin <[email protected]>
@alvinlin123 alvinlin123 marked this pull request as ready for review November 17, 2022 22:54
Copy link
Contributor

@yeya24 yeya24 left a comment

Choose a reason for hiding this comment

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

LGTM

@yeya24 yeya24 merged commit 98052c7 into cortexproject:master Nov 23, 2022
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.

3 participants