grafana / loki

Like Prometheus, but for logs.
https://grafana.com/loki
GNU Affero General Public License v3.0
23.96k stars 3.46k forks source link

[helm-chart] Enabling bloom increases loki-backend's ephemeral volume usage #14678

Open kimxogus opened 2 weeks ago

kimxogus commented 2 weeks ago

Describe the bug I'm using loki with SimpleScalable mode in helm chart. I recently enabled bloom, and loki-backend's ephemeral volume usage is over 30Gb, and I found that bloom block files in /tmp/ directory is using that 30gb.

To Reproduce Steps to reproduce the behavior:

  1. Deploy SimpleScalable loki with bloom enabled in helm chart 6.18.0

    limits_config:
        bloom_creation_enabled: true
        bloom_gateway_enable_filtering: true
        bloom_split_series_keyspace_by: 1024
    
    bloom_build:
      enabled: true
    
    bloom_gateway:
      enabled: true
      worker_concurrency: 4
      block_query_concurrency: 8
  2. Your loki-backend's /tmp/ volume usage grows as your log indexing and query usage.

Expected behavior loki-backend's ephemeral volume usage is minimized

Environment:

Screenshots, Promtail config, or terminal output If applicable, add any output to help explain your problem.

$ ls -alh /tmp/bloom-block-{12345678}
total 32G
drwx--S---    2 loki     loki        4.0K Oct 30 11:53 .
drwxrwsrwx    4 root     loki        4.0K Oct 30 23:59 ..
-rw-r--r--    1 loki     loki       31.6G Oct 30 23:29 bloom
-rw-r--r--    1 loki     loki      140.4K Oct 30 23:29 series
YevhenLodovyi commented 6 days ago

I have the same issue. tmp folder used all disk space. As far as I remember previously data stored in bloom_shipper/working_directory