-
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
Response caching for Thanos #1651
Comments
Updated this with recent findings and ideas. Design doc and MVP in progress (: |
I feel like we should return a partial response if there were StoreAPI nodes which were added without a discovery mechanism and they were unhealthy i.e. no response to |
This issue/PR has been automatically marked as stale because it has not had recent activity. Please comment on status otherwise the issue will be closed in a week. Thank you for your contributions. |
This issue/PR has been automatically marked as stale because it has not had recent activity. Please comment on status otherwise the issue will be closed in a week. Thank you for your contributions. |
We should document Cortex's query-frontend as the recommended solution + how to enable the most usual use-cases with |
Yes. But there might be even better solution. Issue coming.
…On Mon, 13 Apr 2020, 22:47 Giedrius Statkevičius, ***@***.***> wrote:
We should document Cortex's query-frontend as the recommended solution +
how to enable the most usual use-cases with --store-strict.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1651 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABVA3O7ZJJDD5QR7XNPHG4TRMOB65ANCNFSM4JA27Y7Q>
.
|
Proposal that should solve your concern @GiedriusS (and mine as well): #2434 |
Hello 👋 Looks like there was no activity on this issue for last 30 days. |
Will be done as part of https://thanos.io/proposals/202004_embedd_cortex_frontend.md/ |
Hello 👋 Looks like there was no activity on this issue for last 30 days. |
in progress!
…On Wed, 17 Jun 2020 at 19:15, stale[bot] ***@***.***> wrote:
Hello 👋 Looks like there was no activity on this issue for last 30 days.
*Do you mind updating us on the status?* Is this still reproducible or
needed? If yes, just comment on this PR or push a commit. Thanks! 🤗
If there will be no activity for next week, this issue will be closed (we
can always reopen an issue if we need!). Alternatively, use remind command
<https://probot.github.io/apps/reminders/> if you wish to be reminded at
some point in future.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1651 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABVA3O5OGHQX4XU5BDWCWHTRXEB2VANCNFSM4JA27Y7Q>
.
|
Hello 👋 Looks like there was no activity on this issue for last 30 days. |
Closing for now as promised, let us know if you need this to be reopened! 🤗 |
#3018 is merged so I think it is time to get back to this issue. Just opened a pr on the Cortex side to support dynamic split interval cortexproject/cortex#3066. It would be great if anyone can help review it! @bwplotka Would you mind updating the issue checklist? I think |
Updates on this issue:
For the dynamic split interval for downsampled block, sorry I don't really understand how to calculate
How does query frontend know that downsampled blocks are missing? I think we don't need to deal with this on query frontend.
This is something we talked about offline, but it is not very clear. How does query frontend know that there are downsampled blocks in bucket? I think it is not doable. |
Hello 👋 Looks like there was no activity on this issue for the last two months. |
Closing for now as promised, let us know if you need this to be reopened! 🤗 |
This is an umbrella issue for things we might need to do/contribute in order to have smooth Thanos response caching.
As you probably know Cortex query-frontend now supports Prometheus API, so - it can be put on top of Thanos. Still, there are some cases we have to/can improve for Thanos usage:
Must:
This might be some improvement, but still, there are some edge cases:
I think there is still no clear idea of what's the best practice there. Ideally, we would split based on the underlying block structure, but there is no easy way to have that info during query planning level.
Maybe treating query splitting and splitting response a separate steps make more sense? Right now response caching relies on splitting as the cache key depends on queried start time. This is to avoid lookup logic in the caching layer.
--query.no
partial-response` however we can also add some logic for caching to be avoided if the response has some special header.info_hash
HTTP API that will be used by cacher to get hash and use it as cache key? How to ensure we are up to date with store API changes? Maybe short TTL is fine?Could:
* [ ] Discuss cortex to move query-frontend caching logic out of Cortex project: cortexproject/cortex#1672Anything I missed? Feedback, ideas, and help wanted (:
The text was updated successfully, but these errors were encountered: