You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
is there a plan to optimize cache when ooo is supported #5039
Is your feature request related to a problem? Please describe.
When Support out of order samples ingestion is supported, the current cache strategy will have bug, if we search samples in out_of_order_time_window and cache , while ingest samples in out_of_order_time_window.
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.
Sorry for the late response. @haplone For results cache, there is a per tenant config called frontend.max-cache-freshness. It is used to prevent caching very recent results.
TTL could also work, but as you said it requires some changes to existing cache API. AFAIK, if you use specific caches like memcached, TTL is supported as a parameter.
Compared to ttl, It is easier to use this config to help with OOO case. But it needs Cortex operators/uers to configure max cache freshness >= OOO time window.
If you have any other suggestions, feel free to let me know. Thanks
Activity
stale commentedon May 21, 2023
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.
yeya24 commentedon Nov 19, 2023
Sorry for the late response.
@haplone For results cache, there is a per tenant config called
frontend.max-cache-freshness. It is used to prevent caching very recent results.TTL could also work, but as you said it requires some changes to existing cache API. AFAIK, if you use specific caches like memcached, TTL is supported as a parameter.
Compared to ttl, It is easier to use this config to help with OOO case. But it needs Cortex operators/uers to configure max cache freshness >= OOO time window.
If you have any other suggestions, feel free to let me know. Thanks