-
Notifications
You must be signed in to change notification settings - Fork 817
query-frontend: Response caching should work for subqueries and part queries. #2178
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
Comments
We are happy to help in free time, but ideas/suggestions are very welcome. Or if any work happened already for this (: |
Any update on this? 🤗 Any pointers for contributors, e.g if we would want to tackle it? |
I'm not sure if this will be straightforward to implement. We currently sequence a set of middlewares in the query frontend, of which a caching middleware is one. This makes it hard to pull out part of a query without dealing with the promql Engine, which is what we did in the sharding work (#1878). This could be another reason to support a refactoring of the query frontend though. There are a number of issues derived from sequencing middlewares this way, such as #1882 Caching middleware: https://github.com/cortexproject/cortex/blob/master/pkg/querier/queryrange/results_cache.go Another thought - this is something we may want to solve via some sort of query planner. |
Yes, definitely worth to look closer in to different design then. I would
say initial promql parse might be necessary...
…On Tue, 14 Apr 2020, 20:19 Owen Diehl, ***@***.***> wrote:
I'm not sure if this will be straightforward to implement. We currently
sequence a set of middlewares in the query frontend, of which a caching
middleware is one. This makes it hard to pull out part of a query without
dealing with the promql Engine, which is what we did in the sharding work (
#1878 <#1878>). This could be
another reason to support a refactoring of the query frontend though. There
are a number of issues derived from sequencing middlewares this way, such
as #1882 <#1882>
Caching middleware:
https://github.com/cortexproject/cortex/blob/master/pkg/querier/queryrange/results_cache.go
Another thought - this is something we may want to solve via some sort of
query planner.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2178 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABVA3OZ54MLVMWDAOPDDLOLRMSZKPANCNFSM4K2KDDZA>
.
|
Something to add as well : thanos-io/thanos#2569 |
This issue has been automatically marked as stale because it has not had any activity in the past 60 days. It will be closed in 15 days if no further activity occurs. Thank you for your contributions. |
Still valid |
Still valid |
This issue has been automatically marked as stale because it has not had any activity in the past 60 days. It will be closed in 15 days if no further activity occurs. Thank you for your contributions. |
Still valid |
This issue has been automatically marked as stale because it has not had any activity in the past 60 days. It will be closed in 15 days if no further activity occurs. Thank you for your contributions. |
still valid |
This issue has been automatically marked as stale because it has not had any activity in the past 60 days. It will be closed in 15 days if no further activity occurs. Thank you for your contributions. |
Definitely still valid. Example: you can write an instant query like |
This issue has been automatically marked as stale because it has not had any activity in the past 60 days. It will be closed in 15 days if no further activity occurs. Thank you for your contributions. |
Still valid
…On Fri, Oct 22, 2021, 08:24 stale[bot] ***@***.***> wrote:
This issue has been automatically marked as stale because it has not had
any activity in the past 60 days. It will be closed in 15 days if no
further activity occurs. Thank you for your contributions.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2178 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANH4O4HWTAGGF762SCJJNTUIF62NANCNFSM4K2KDDZA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
This issue has been automatically marked as stale because it has not had any activity in the past 60 days. It will be closed in 15 days if no further activity occurs. Thank you for your contributions. |
AC:
I think that should not be that hard to implement, but we would need to finally parse the query and understand what is nested.
cc @brancz, @pracucci @tomwilkie
The text was updated successfully, but these errors were encountered: