Auto-compaction and Fragmentation

Thanks for the response.

So the MB compaction trigger is based on current disk usage size of total cluster? If I want to trigger when disk usage reach 30GB total then I can put 30,000 MB in the setting?

Right now our disk usage growth at 50% capacity is 1GB per minute. We are using cron to manually compact using Compact API every 20 minute.

The issue before I believe that 30% fragmentation is too low for our growth. Causing too many back-to-back compaction and causing connection to be refused. This makes me rather unsure if setting disk usage to 30 GB may cause back-to-back compaction again.

When I tried setting compaction to 90% fragmentation. By the time compaction finish, fragmentation has reached 75% again.

What’s the best method of auto-compaction in this scenario?

1 Like