Thanos Store fills up the entire hard disk at startup #7262
-
Thanos version used: built from
I create a brand new VM with a 100GB hard disk, and I install the above build of
Thanos starts loading blocks from the S3 bucket (4.67 TB) configured in the
Here we can see the hard disk is full, and also the size of the Thanos' data dir:
I have read this from the documentation:
I understand that Thanos downloads blocks from the S3 bucket, generates some metadata about those blocks, and then adds that metadata to that "pre-computed index" mentioned above. However, why doesn't Thanos delete the blocks whose metadata has already been added to the pre-computed index to avoid filling up the entire hard disk? Or does that pre-computed index actually need such amount of space? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Is your compactor running properly? Is the compaction backlog small ( |
Beta Was this translation helpful? Give feedback.
-
Uhm..., from what I see, Thanos Compactor is not able to generate level-3 blocks.
It seems quite high. So, let's see if my understanding is correct. |
Beta Was this translation helpful? Give feedback.
-
Yep, that's a huge backlog! It is necessary to keep that metric as low as possible. If you have lots of small blocks then the Store needs to build a lot of index headers that have in essence duplicated data due to the compaction process being stuck. |
Beta Was this translation helpful? Give feedback.
Yep, that's a huge backlog! It is necessary to keep that metric as low as possible. If you have lots of small blocks then the Store needs to build a lot of index headers that have in essence duplicated data due to the compaction process being stuck.