-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
WIP store: Add --skip-window functionality #930
Conversation
7d0de0b
to
417a129
Compare
As talked on Slack, I don't think this should be merged as-is because:
|
In other words, |
I can't see how would I achieve the same thing with that PR? Could you elaborate? |
0300303
to
fbd4241
Compare
Sure, I talked about that PR only as an inspiration. My point is that if we are doing this for the same of efficiency don't want to ask Thanos Stores for data which is in Thanos Sidecars then this functionality belongs in Thanos Query. If we are doing this for the sake of sharding then Thanos Store should instead support only syncing a part of the data with --{min,max}-time together with the support of relative times, not only fixed points in the past. My 2 cents. |
1143071
to
d6194e7
Compare
@GiedriusS I'm not saying this is a long term solution, but it is as simple as possible and mitigates issue #919 completely. Maybe we can agree on a hidden flag or something like that? But I think at this point we have changed flags in this project, so maybe it's no a big deal to have it and remove it once proper solution comes in? FYI after applying this change our Thanos Query 99 histogram_quantile went down drastically: |
d6194e7
to
ce62cb5
Compare
ce62cb5
to
5721587
Compare
Ok, had a long offline discussion with @povilasv The conclusion so far is that @povilasv have some real slowdown on Having this said I agree with @GiedriusS that I mean 2 hidden flags:
Those would define the time range storeAPI (as store gw) will get data for. The most important thing is that those flags should control also what store gw sync. The main use case (apart from @povilasv one - to prioritize the sidecars artificially) is to:
I think this can be really useful overall. Thoughts @povilasv @GiedriusS ? |
BTW: #814 (comment) |
closing in favor of #957 |
Changes
Adds --skip-window to Thanos Store, this allows users to configure time duration, which won't be reported to Thanos Query.
Let's say we do
--skip-window=2d
and have Prometheus of retention of 60h,Thanos Query will only query Prometheus via Thanos Sidecar for first 2 days.
For more than 2d, it will hit both Thanos Sidecar + Thanos Store.
Verification
Tested locally in our dev environment (both turned on and turned off)
Also unit tests