I have three questions,
- How much space needed for compaction process.
- How to set auto-compaction based on specific interval.
- How to set auto-compaction based on actual disk usage and not fragmentation.
I have a cluster of 3 Couchbase servers with the following spec for each server: 4 vCPU, 8 GB memory, 30 GB disk space.
We use Couchbase as our caching layer with data updated intensively. Making our disk usage expand so quickly. Currently we are writing about 3GB per minute. Doc Fragmentation always between 75-90%. We will revise how our caching work later.
For now, We set up crontab to trigger compaction every 15 minutes, which already used up about 70% of the disk. Which sort of work but I don’t want to rely on external crontab to keep the system running. Is there a way to make auto-compact run every 15 minutes? This 15 minute interval is our safety magic number. We tried to compact when disk is almost full and ran to scenario where disk already full before compaction completed and froze up Couchbase. Is this the right approach?