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

could this cause inconsistent problems?

7 replies [Last post]
  • Login or register to post comments
Mon, 05/16/2011 - 20:48
wangbin579
Offline
Joined: 05/11/2011
Groups: None

When clicking failover,there is a warning:
Operations not replicated before the node became unresponsive, will be lost.

I may use membase to store important data,such as users' passwords.if a server is down and is failed over, some users' data are lost according the above warning.these users visit again and use replication data here. so these users may have some problems,because replication has stored old dirty passwords,inconsistency may happen here.

Does it mean that membase has inconsistent problem here?

Top
  • Login or register to post comments
Mon, 05/16/2011 - 21:07
Frank
Offline
Joined: 06/28/2010
Groups: None

It isn't an inconsistency problem (as there will still only be one answer from the cluster), but you are right that data that has not been replicated to another node, will not be available anymore when the master node for a vBucket fails.

If you have data where you need to be certain that it has been replicated to another node to increase resiliency to node failure, then you can use the new SYNC command that is being added in Membase 1.7. It will allow you to pass a list of keys and that command will return when the keys are replicated to another node. So whenever your app updated password data it can do a sync on that key, so that your app can be sure the data has been replicated to another node before continuing.

Of course the downside of doing this, and the reason why this isn't default behaviour, is performance. Membase is fast, simnple and elastic. Speed is achieved by performing writes to RAM first (before persisting to disk and replicating to other nodes asynchronously) and serving cache hits out of memory. For many types of data that trade-off is a good choice, and waiting for replication on every write would not result in acceptable performance (after all a single node can do many 100k ops/s). For other data using SYNC is the way to go to be sure that on node failover crucial data is guaranteed to be on the replica node.

I hope that helps. BTW, you can check out the 1.7 Developer Preview here: http://techzone.couchbase.com/products/membase/1-7-beta

Top
  • Login or register to post comments
Wed, 05/18/2011 - 03:14
wangbin579
Offline
Joined: 05/11/2011
Groups: None

thanks.

I tried membase-server-community_x86_64_1.7-beta,but I could not find how to see auto failover and the new SYNC command in web UI. could you tell me where and how?

Top
  • Login or register to post comments
Wed, 05/18/2011 - 11:14
perry
Offline
Joined: 10/11/2010
Groups:

The auto-failover is not yet implemented, the plan is to have it released with the GA of 1.7 (you can find more information here: http://techzone.couchbase.com/products/membase/1-7-beta)

As for the SYNC command, there is no UI as it is a new protocol command. It is currently only available with the Enyim driver for .NET but we are planning on extending support to other drivers as well. What is your language of choice?

Perry

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!

Top
  • Login or register to post comments
Thu, 05/19/2011 - 01:29
wangbin579
Offline
Joined: 05/11/2011
Groups: None

any language under linux environment.

thanks

Top
  • Login or register to post comments
Mon, 05/23/2011 - 20:26
perry
Offline
Joined: 10/11/2010
Groups:

The next driver to gain support for synchronous operations will be the spymemcached driver which is for Java.

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!

Top
  • Login or register to post comments
Mon, 05/23/2011 - 22:44
haoguoliang
Offline
Joined: 04/28/2011
Groups: None

are you a chinese?

Top
  • Login or register to post comments
Mon, 05/23/2011 - 23:25
perry
Offline
Joined: 10/11/2010
Groups:

No

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!

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