Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 2.0

client failure mode -- Cancel or Redistribute?

1 reply [Last post]
  • Login or register to post comments
Tue, 12/04/2012 - 09:31
MichaelL
Offline
Joined: 11/07/2012
Groups: None

(Background): http://dustin.github.com/java-memcached-client/apidocs/net/spy/memcached...

It seems to me that if the cluster contains more than one node, Redistribute is strictly better. What I'm seeing is that if I set failure mode to Cancel and kill a node, then every operation to that node will fail until the server is failed over. But if I set failure mode to Redistribute, then the request says "oh that one didn't work, I'll try another".

Is there any reason not to use Redistribute for couchbase? How does conflict resolution work in this case?

Top
  • Login or register to post comments
Mon, 12/10/2012 - 23:46
mikew
Offline
Joined: 03/14/2011
Groups:

I believe that the Couchbase Java SDK uses RETRY by default and I would recommend that you use that one. A key can only be set on a single node and trying to set it on a different server would result in an error and the key not being set. The default RETRY behavior will keep trying to send the key until the 2.5 second timeout is hit. If the keys location has changed because of a rebalance the client is also smart enough to figure out where the key moved to.

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