Open suikast42 opened 1 year ago
I think I figure out what is happening but don't know how to solve.
I had my local homelab cluster one week down.
At startup the loki compactor try to delete old indexes and can't do this because of memory allocation. If I delete he persistence oli coming up as expected.
The same happens with mimir as well.
Any suggestions?
I ran into similar issues with the chunks cache.
The problem is probably that at some point someone decided to set the default allocated memory of the chunks cache to a baffling 8GB (RAM). Your machine probably doesn't have that capacity.
In the loki helm chart there is a configuration option:
chunksCache:
allocatedMemory: 8192
Maybe you can try to change that to something more reasonable for your cluster size like 2GB or something.
Loki version 2.7.8
If I try to start loki then it crashes everytime with that log below:
With that config: