Skip to content

Commit 595d790

Browse files
Gkrumbach07Ambient Code Botclaude
authored
fix: disable MinIO bucket versioning to prevent unbounded storage growth (#1099)
## Summary - Switches MinIO bucket setup from `version enable` to `version suspend` in `scripts/setup-minio.sh` - The state-sync sidecar overwrites the same objects every 60s, and with versioning enabled every overwrite created a new non-current version that was never cleaned up - On vteam-uat this accumulated **12.6M versions** consuming **~484 GiB** on a bucket with only 52 GiB of current data (313K objects) ## What was done on vteam-uat 1. Suspended versioning on the `ambient-sessions` bucket 2. Purging all non-current versions (in progress — 12.6M versions to delete) ## Test plan - [ ] Verify `scripts/setup-minio.sh` runs cleanly on a fresh MinIO instance - [ ] Confirm sessions still sync/resume correctly without versioning - [ ] Monitor MinIO disk usage to confirm it stabilizes 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Ambient Code Bot <bot@ambient-code.local> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f81b269 commit 595d790

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

scripts/setup-minio.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ fi
5959
echo "Setting bucket policy..."
6060
kubectl exec -n "${NAMESPACE}" "${MINIO_POD}" -- mc anonymous set none "local/${BUCKET_NAME}"
6161

62-
# Enable versioning (optional - helps with recovery)
63-
echo "Enabling versioning..."
64-
kubectl exec -n "${NAMESPACE}" "${MINIO_POD}" -- mc version enable "local/${BUCKET_NAME}"
62+
# Versioning is intentionally disabled — the state-sync sidecar overwrites
63+
# the same objects every 60s, causing massive version accumulation with no
64+
# practical recovery benefit. Suspend versioning to prevent unbounded growth.
65+
echo "Suspending versioning..."
66+
kubectl exec -n "${NAMESPACE}" "${MINIO_POD}" -- mc version suspend "local/${BUCKET_NAME}"
6567

6668
# Show bucket info
6769
echo ""

0 commit comments

Comments
 (0)