Setting metadata ejection policy
Bucket ejection from memory is set with couchbase-cli tool.
Bucket ejection policy
Bucket ejection from memory is set with couchbase-cli tool, either bucket-create or bucket-edit, and the --bucket-eviction-policy parameter.
Policy for how to retain metadata in memory:
--bucket-eviction-policy=[valueOnly|fullEviction]
To create a new sasl bucket:
couchbase-cli bucket-create -c 192.168.0.1:8091 \\
--bucket=test_bucket \\
--bucket-password=password \\
--bucket-ramsize=200 \\
--bucket-eviction-policy=valueOnly \\
--enable-flush=1 \\
-u Administrator -p password
To modify a dedicated port bucket:
couchbase-cli bucket-edit -c 192.168.0.1:8091 \\
--bucket=test_bucket \\
--bucket-port=11222 \\
--bucket-ramsize=400 \\
--bucket-eviction-policy=fullEviction \\
--enable-flush=1 \\
-u Administrator -p password