Correct course of action when the size of index headers exhausts disk #15445
-
|
Hello, I have three Mimir backend pods, running the compactor and store-gateway roles, running with replication factor=3. Each of the pods has a persistent volume of size 1Gi. The problem I'm having is that I see logs like: I probably could resize the persistent volume, but I wonder if there is a better course of action here or whether this is a symptom that the compactor is failing to offload the sparse index-headers to S3 storage. Could lazy loading help here? Is there another way of reducing the number of index-headers being stored on disk? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
The 1Gi PV is almost certainly too small for the index headers. The store-gateway downloads and caches index-header files for each block, and with replication factor 3, each gateway is responsible for a portion of all blocks. As your data grows, the index headers will outgrow 1Gi pretty quickly. I'd bump the PV size to at least 10-20Gi as a starting point, though the right size depends on your total number of blocks and compaction level. You can check the actual disk usage of the index headers directory to see how much space they need right now. If you want to reduce the disk footprint without increasing the PV, you can try setting |
Beta Was this translation helpful? Give feedback.
The 1Gi PV is almost certainly too small for the index headers. The store-gateway downloads and caches index-header files for each block, and with replication factor 3, each gateway is responsible for a portion of all blocks. As your data grows, the index headers will outgrow 1Gi pretty quickly.
I'd bump the PV size to at least 10-20Gi as a starting point, though the right size depends on your total number of blocks and compaction level. You can check the actual disk usage of the index headers directory to see how much space they need right now.
If you want to reduce the disk footprint without increasing the PV, you can try setting
store_gateway.sharding_ring.replication_factorlower (tho…