How much disk size free should I need to run compaction in my case?

Hi there,
(sorry if my English is not good)
Please help me :(.
I have a Docker container running Couhcbase 7.1.3. I don’t know Couchbase use append-only mode so today I check Couchbase disk usage and see it used 95Gb (my disk size is 250gb).

Currently it use 8gb memory and I configure memory quota for bucket is 6Gb.

So If I run compaction manually, can I success? Because I see a user said that if I run compaction manually, I must have at least 2X data size. In my case my Couchbase disk usage is 95Gb, so at least I have 200Gb disk size free?

Thank you for reading my question, please help me.

I suspect they meant 2X total (i.e 190GB) so you should be good.

but now I only have about 130gb left. is there any solution in this case :frowning: :frowning:

The documentation says Auto-compaction is enabled by default. Did you disable it?

If you have “130gb left”, and a total of 250gb, that would mean that you have 250gb-130gb = 120gb of data. And 2 x 120gb = 240gb and you have more than that (250gb). You do realize that the longer you wait, the worse your situation gets.

I use default settings and I saw that the compaction still works at 30%. Currently Couchbase has about 8 milion documents, so is it true that with 8 million key-value data it takes up ~95gb of data? :cry: :cry:

95G / 8M = 11875
If the documents average 11875 bytes, then the document data alone would be 95G

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.