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

How to handle failed request during cluster auto-failover?

4 replies [Last post]
  • Login or register to post comments
Mon, 11/12/2012 - 23:28
dew_ice
Offline
Joined: 09/05/2012
Groups: None

As we known, when a node down, the cluster need somes time to auto-failover it.
during this period, some request will be serviced, but some requests may be failed.

my question is how to handle those failed request to make it be serviced?

Top
  • Login or register to post comments
Tue, 11/13/2012 - 00:04
mikew
Offline
Joined: 03/14/2011
Groups:

There is a replica read command that you can use, but it is not yet implemented in all of our SDK's. Which SDK are you using?

Top
  • Login or register to post comments
Tue, 11/13/2012 - 00:40
dew_ice
Offline
Joined: 09/05/2012
Groups: None

Thanks for your reply. my SDK is Java couchbase-client-1.0.2.

But i think i didn't describe the situation clearly. Following are deitals:

Our env has CouchbaseNodeA, CouchbaseNodeB, CouchbaseNodeC as a cluster,
this cluster has been configure as auto-failover with 30 seconds.

our SDK is java client 1.0.2; using apache common pool to create a couchbase connection pool.

firstly, we do some operation (save/get data from couchbase) , it all works well;
then , we shutdown a cluster node,
as we known, the cluster need some time to auto failover the node,
during the time, some operation on the cluster will be failed, but some ops can be serviced.
after auto-failover, everything works.

so my question is that Do we have any way to make every operations successful
during the time cluster auto failover the down node?

Top
  • Login or register to post comments
Tue, 11/20/2012 - 14:47
mikew
Offline
Joined: 03/14/2011
Groups:

No. If a node is down you will not be able to get any data from that node. One thing you could do though is first do a get and if it fails do a replica read to get the data from a replica node. You are however unable to create or update data on a replica node. I don't think replica read support will be in the next release of the java sdk, but it will definitely be in the following one.

Top
  • Login or register to post comments
Wed, 11/21/2012 - 23:00
dew_ice
Offline
Joined: 09/05/2012
Groups: None

thanks.

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