When couchbase server response to set command:
- when data was saved to single (master) node
- when data was saved to all nodes
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The answer will vary slightly by the client library you’re using. But generally speaking, a positive result from calling set implies only that there were no I/O or other errors between the client and server. In such a case, the data should be safely in memory on the master node for a given key.
In 2.0, Couchbase Server and the respective client libraries will support the Observe method, which will allow for durability checks. Calling observe, you’ll be able to ask questions like:
For more on Observe, see http://www.couchbase.com/wiki/display/couchbase/Observe.
One other point, just to make sure it’s clear… Nodes in a Couchbase cluster are all peers in terms of responsibilities, but have master/slave relationships in terms of keys and the replication of those keys. In other words, key “foo” has a single master node, but may be replicated to other nodes as slave copies of that key.