Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 1.8.x

How to turn off replication on ranning cluster?

1 reply [Last post]
  • Login or register to post comments
Wed, 04/25/2012 - 02:49
creotiv
Offline
Joined: 11/14/2011
Groups: None

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(

Top
  • Login or register to post comments
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.

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

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker