-
Notifications
You must be signed in to change notification settings - Fork 820
querier: option to skip sending queries to long term storage #1893
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
querier: option to skip sending queries to long term storage #1893
Conversation
a14f12c
to
c9a6795
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One nit, otherwise LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @thorfour for the PR! I've the feeling this change is unsafe. There's no guarantee that the alive ingesters hold all the timeseries within the -querier.query-ingesters-within
period. For example, in case of scale down, ingesters chunks are flushed to the storage: with this new option enabled, you would end up querying a subset of the series.
In the case of TSDB, we're still not handling the scale down (it's TBD) because we're currently loosing the WAL if no joining ingester is found by the leaving one, but once will be fixed we'll have the same issue there as well.
In case we'll have good arguments to have this kind of change merged, I would review the PR (I've seen some inconsistencies here and there, but haven't commented cause I first would like to understand if this kind of change is feasible).
The chunk store already has this feature here: cortex/pkg/chunk/chunk_store.go Lines 272 to 275 in fcbc186
so you shouldn't need to add it at the querier level. |
That's true, but I would then need to add the feature to the block querier, it made sense to have it as a top level feature instead of backend specific. Is it preferred to be implemented in each backend or on the top level @bboreham? |
I guess you can have a go at moving the feature, but don't add something that duplicates it. |
3cc8b08
to
edac241
Compare
edac241
to
3c2f1c9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we have a more descriptive name for the flag? The old one is not well named either and I think we can do better when changing it :P
7333c9d
to
65ba5ae
Compare
@gouthamve Do you have a better name for the flag in mind? |
Setting has been renamed to |
7e7f847
to
2ad359c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Thor for addressing my feedback. I just realized a couple of more small things, I would be glad if you could take a look at. A part from this, LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Thor. Changes LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bboreham This is a breaking change, how do we want to proceed here? Do you want make this flag a deprecated flag or break deployments that upgrade w/o changing this?
Other than that, LGTM!
943e5ce
to
c96f107
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with few nit to fix, please.
784a3cf
to
1156bda
Compare
9b9aabd
to
0f60bf9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (just left few minor comments). @bboreham What's your take about this? Given it introduce a breaking change in the config, if we want it would be great to have it in the 0.6.0
.
0f60bf9
to
2225268
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May you also rebase master
so that we can move on merging it, please?
2225268
to
fcc5256
Compare
@thorfour Sorry to bother you. We've merge the release |
Signed-off-by: Thor <thansen@digitalocean.com>
fcc5256
to
93151d7
Compare
Yea forgot we had cut 0.6.0 and didn't really look at the merge conflicts when I rebased it. |
What this PR does: Moves the MinChunkAge option from chunk store into the querier to allow that behaviour regardless of store backend.
Which issue(s) this PR fixes:
N/A
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]