Query from Grafana to Mimir timing out #4663
-
I am writing a query in Grafana with Mimir as the datasource. When I run the query as an instant query or even with a time range up to 6 hours, it responds well. However, when I surpass 6 hours, the query times out. The query itself does not really matter, though this is what it looks like:
And this is the query and response that Grafana receives:
I assume this can be solved by modifying some settings in Mimir, and/or providing the Mimir instances with some more resources. Aside from just throwing more CPU and RAM at the problem, are there some settings that I can update that will help? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 17 replies
-
Looking through the documentation I found a setting named |
Beta Was this translation helpful? Give feedback.
-
I switched the datasource to use These appear to be relevant logs from one of the Mimir servers:
I wonder if this is because my storage is on GCS. Perhaps the latency from using remote storage is too high to be effective. Or more likely I need to adjust some (Here is a similar discussion.) |
Beta Was this translation helpful? Give feedback.
-
Finally figured it out. Mimir was grabbing incorrect IP addresses to use for ring communication. On my nodes, by default, Mimir was seeing four interfaces:
I specifically configured each component to use only the interface that I wanted them to use:
Now I can query over months!!! 🎉 |
Beta Was this translation helpful? Give feedback.
-
same issue however there is no connection refused nor OOM. I tried all the config SunSparc did but i am still getting 1m timeout. grafana error:
frontend_query error:
store-gateway error:
Anyone with any suggestions? or is it a bug somewhere? |
Beta Was this translation helpful? Give feedback.
Finally figured it out. Mimir was grabbing incorrect IP addresses to use for ring communication. On my nodes, by default, Mimir was seeing four interfaces:
I specifically configured each component to use only the interface that I wanted them to use:
Now I can query over months!!! 🎉