-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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 use too much memory #696
Comments
Interestingly, the data-volume with the indexes and chunks is just 718 MB.
|
Duplicate of #613 |
It looks like a bug, not a memory optimization issue. I re-created the data volume to zap all data, redeployed the GCP cluster and promtail, and just after a few minutes, I tried to look back 6 hours with Grafana, using this query So it looks to me like the data allocations are unrelated to the chunks it is fetching (or that it is fetching the same chunk(s) again and again in a loop). |
Don't forget that logs are compressed to at least 8x factor, when we do the query we have to uncompress. I'm currently reproducing the issue and working on it, I'll keep you posted, if you find anything else interesting let us know. Also feel free to join our slack: https://grafana.slack.com/messages/CEPJRLQNL |
This should be fixed by 0.2. |
Describe the bug
I have deployed loki and grafana with docker-compose, running loki in one container. Log collection from GCP seems to work fine, and querying the last few minutes works fine.
However, when I use the logcli program to get the logs to investigate a system failure, loki rapidly allocates all the memory on the machine and dies. The log-file from logcli is empty - suggesting that loki tries to hold all the relevant data in memory before producing any output.
In this query, I ask for just 10 000 log messages (that covers roughly a few minutes).
Loki crashes after 45 seconds, when it fails to allocate > 64 GB of memory.
Environment:
Screenshots, promtail config, or terminal output
The text was updated successfully, but these errors were encountered: