-
Notifications
You must be signed in to change notification settings - Fork 15
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
Loki crashes after ResourceExhausted exc #418
Comments
There seems to be two issues here:
|
@dstathis We are using 1 Gi for memory and cpu config is unset. In terms of memory:
the container requests
The particular k8s node has 32 GiB of total memory. |
|
Thanks for your answers. I will close the ticket as the cause of the crash seems to be clearly memory related (137 exit code) and not due to the ResourceExhausted (I saw this also for other queries without the ResourceExhausted), so this probably indicates that we need to increase the memory (1 Gi seems to be too low, just tested with 2 Gi and at first glance it looks better). I wonder if the charm could log a memory-related warning in this case (if loki exits with 137) to avoid the operator having to look into the k8s logs for troubleshooting. If necessary I will open another issue related to the And of course narrowing the LogQL queries helps, but sometimes it is hard to narrow when you need to find the root cause of an issue first (so you need to know what to narrow for). |
Bug Description
If I query loki and the result is too large, loki quits and restarts after a backoff.
Loki is unavailable for some time
See also grafana/loki#6568 (may be related)
To Reproduce
Query loki (e.g. via Grafana) with an expected large output.
Environment
juju 3.1.8 loki rev 128
Relevant log output
Additional context
No response
The text was updated successfully, but these errors were encountered: