You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix metadata purge interval configuration to use REST API
The previous implementation used couchbase-cli setting-compaction which
only sets cluster-wide defaults, not per-bucket settings. This resulted
in autoCompactionSettings: false at bucket level.
Changes:
- Use REST API POST to /pools/default/buckets/{bucket} instead of CLI
- Add required parameters:
- autoCompactionDefined=true (enables per-bucket override)
- purgeInterval=0.04 (1 hour minimum)
- parallelDBAndViewCompaction=false (required parameter)
- Add get_metadata_purge_interval() to verify configuration
- Add check_cbs_config example to inspect current settings
- Improve get function to search purgeInterval in multiple locations
Per-bucket configuration overrides cluster-wide defaults and allows
independent purge interval settings for testing.
Verified: purgeInterval now appears at bucket root level and is set
to 0.04 days (1 hour).
References:
- https://docs.couchbase.com/server/current/rest-api/rest-autocompact-per-bucket.html
- Couchbase docs on cluster-wide vs per-bucket auto-compaction
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
0 commit comments