I need to turn off replication on cluster to free RAM. How can i do it?
I tried:
couchbase-cli bucket-edit -c localhost:8091 -u user -p pass --bucket=default --bucket-replica=0 --bucket-ramsize=10000
But anything changed(
Fri, 04/27/2012 - 02:06
creotiv
Offline
Joined: 11/14/2011
Groups: None
Maybe someone this wil help.
As said Aliaksey Kandratsenka on Couchbase group:
Changing replicas count via REST API or UI is not supported. But there’s unsupported trick that works.
Maybe someone this wil help.
As said Aliaksey Kandratsenka on Couchbase group:
Changing replicas count via REST API or UI is not supported. But there’s unsupported trick that works.
Here’s what you can do:
wget -O- --user=Administrator --password=asdasd --post-data='{ok, Config} = ns_bucket:get_bucket("default"), Map = [lists:sublist(Chain ++ [undefined], 1) || Chain <- proplists:get_value(map, Config)], ns_bucket:update_bucket_props("default", [{map, Map}, {num_replicas, 0}]).' http://localhost:8091/diag/eval