How to shrunk the ram space?

Hi, I need to reduce the RAM space which a bucket occupied (originally 1G, now want shrunk to 128MB), there is any way in the case without destroying data to achieve this goal? I tried to use cbbackup tool and make the entire bucket of data backed up, then flush this bucket, and reduce it’s RAM space, and then use cbrestore tool to restore the data back, but the problem is that is too too slow to restore, Do not know if there was a better way?

Thanks.

1 Answer

« Back to question.

Hello,

You can reduce the RAM quota of your cluster and bucket (if you have not filled all the space yet). The commands are the following:

- Edit the bucket from the console:
http://docs.couchbase.com/couchbase-manual-2.2/#editing-couchbase-buckets

- Edit the bucket from the CLI/REST:
http://docs.couchbase.com/couchbase-manual-2.2/#managing-buckets

- For the cluster itself:
http://docs.couchbase.com/couchbase-manual-2.2/#couchbase-cli-tool
cluster-edit command

Regards
Tug
@tgrall