Clearing the disk cache from the Thanos Store Gateway #8377
Replies: 4 comments
-
Hey, check if your compactor is running properly. This is a sign that your compactor has a huge backlog and it is not able to do its work on time. |
Beta Was this translation helpful? Give feedback.
-
level=info ts=2025-07-16T07:14:05.400807973Z caller=retention.go:42 msg="applying retention policy" ... There is no backlog. GitHub issue #7029,can you see this |
Beta Was this translation helpful? Give feedback.
-
I’ve reviewed our setup and also checked the logs from our Thanos Compactor. It appears that the compactor is functioning correctly — it’s applying retention policies, running compaction cycles, and performing garbage collection as expected, without any backlog or errors. So, I believe the compactor is not the root cause of the issue in our case. Upon further investigation, it looks like the disk usage growth is specifically related to the Store Gateway’s local index cache. Since we’re using lazy index header download, the cache builds up over time, but there’s no automatic cleanup for unused index headers unless explicitly configured |
Beta Was this translation helpful? Give feedback.
-
i want a suggestion for how to clear the disk cache |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Team,
In our Thanos implementation, we use the thanos store gateway component which is having some disk for caching purpose. Currently, disk space usage reaches beyond 75%. How can we delete the old cached items from this disk to make some free space?
Thanks,
vidyasagar
Beta Was this translation helpful? Give feedback.
All reactions