-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Doc: Have a dedicated doc about caching in Loki #6201
Comments
I have deployed Loki with promtail to EKS using helm and loki-distributed chart. I have configured caching with Redis also. The problem is that my configuration seems right but when I check the logs from Ingester it seems that it is still using fifocache. When I do port-forwarding to ingester service and check through localhost:3100/config the index_queries_cache_config does not show the redis configuration with endpoint and password and I'm getting enable_fifocache: true and ingester logs with:
Even when I set to disable it with:
and extraArgs Follow the configuration:
|
I did some investigation, looks like the log message Reason is, even though The tricky thing here is, we just only check if
I'm aware you use same for other cache also (result_cache and index_cache). But in those places, there is no special logic to set the cache, they have One thing we can do is to make the experimental warning more clear by adding what kind of cache (index, results or chunk) it is exactly. I will fix that in the separate PR. |
@kavirajk really appreciated for the feedback. Concerning the Doing a port-forward to the ingester service I can get the chunk_cache_config but not from index_queries_cache_config
|
I am also having same problem. I am trying to use Below is my configuration snippet.
I am using loki-distributed (0.48.4) helm chart |
@sureshgoli25 would you be able to paste the output for the configmap generated by |
@trevorwhitney below is the snippet of the config map generated from my latest values.
As you see, the helm template rendered the correct config file for loki. But somehow when calling config endpoint. The index queries cache config shows fifocache enabled as true.
|
I better understand now, thank you for providing that, though from reading above I thought the original post was regarding the Currently in SSD mode, the index query cache is hard-coded to use the fifo cache. You can provide an external cache for results and chunks, but not index queries. This is probably something we should better document. Is this a problem for your use case, or are you just calling out the need for documentation around this? |
@trevorwhitney thank you for feedback. Cloud Provider: AWS
|
@sureshgoli25 that config looks good. Can you check that all components are overriding your disabling of the fifo cache. We do always override this in the ingester but should not in your queriers. |
@trevorwhitney thanks for the pointers. I can see in queriers memcached updated for chunk cache. I was looking in ingesters and i thought, configuration is same across all components. So, i was always looking at ingester level.
|
Hi! This issue has been automatically marked as stale because it has not had any We use a stalebot among other tools to help manage the state of issues in this project. Stalebots are also emotionless and cruel and can close issues which are still very relevant. If this issue is important to you, please add a comment to keep it open. More importantly, please add a thumbs-up to the original issue entry. We regularly sort for closed issues which have a We may also:
We are doing our best to respond, organize, and prioritize all issues but it can be a challenging task, |
@JStickler - can you please investigate and assess priority with @kristiandeppe and @minhdanh ? |
For me it is still no clear which components are accessing which caches ( |
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
The text was updated successfully, but these errors were encountered: