-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PVC usage for the Thanos store-gateway is increasing at a rate of about 1 GB per day #7837
Comments
Hey @yangtian9999 👋, I'm here to help you with any bugs, questions, or contributions you have. Let's get to work! I found a similar open issue regarding the increasing disk usage for the Thanos store-gateway. The issue suggests configuring time-based partitioning to shard the store-gateways, which helps in managing disk usage effectively. You can find more details in the open issue. Additionally, the increase in PVC usage might be due to the lack of configured retention policies. To manage this and perform automatic housekeeping, you can configure retention policies using the thanos compact --data-dir /tmp/thanos-compact --objstore.config-file=bucket.yml --retention.resolution-raw=30d --retention.resolution-5m=90d --retention.resolution-1h=365d This configuration will retain raw data for 30 days, 5-minute resolution data for 90 days, and 1-hour resolution data for 365 days. Adjust these values based on your storage and data retention requirements [1]. |
yes, we do have the retention setting for thanos compactor. |
Is your Thanos newly set up or it has been running for a while? |
Hi, @yeya24 , yes, new cluster did bootstrap 2 weeks ago. |
Is |
no value return for thanos_compactor_iterations_total |
Maybe you can double check https://thanos.io/tip/operating/compactor-backlog.md/. |
@yeya24 , Please help to check if need any more info, Thanks so much. |
PVC status doesn't matter here. Please make sure your compactor is up and running and it compacts your data on time. |
Thanos, Prometheus and Golang version used: bitnami/thanos:0.36.1-debian-12-r0
Object Storage Provider: aws s3
What happened: We have observed that the PVC usage for the Thanos store-gateway is increasing at a rate of about 1 GB per day.
What you expected to happen: Thanos store-gateway can do housekeeping by itself everyday.
How to reproduce it (as minimally and precisely as possible):
Full logs to relevant components: No error log.
Anything else we need to know: Please notice that the Thanos store-gateway pod is on during 8am to 8pm everyday only.
The text was updated successfully, but these errors were encountered: