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

Is data only written to disk when mem_high_wat is hit?

1 reply [Last post]
  • Login or register to post comments
Mon, 08/15/2011 - 21:06
helloworld2008
Offline
Joined: 07/20/2011
Groups: None

From the documentation:

At this point a background job is scheduled to ensure items are migrated to disk and the memory is then available for other membase items.

In the documentation, first the word migration is used, which sounds like it may mean either persistence or eviction and than later, the word eviction is used.

Does this mean that data is only persisted to disk when mem_high_wat is hit and any crash on a unloaded node will have full data loss?

We will also eject data as soon as it's persisted iff it's for an inactive (e.g. replica) vbucket if we're above our low watermark for memory.

Seems like it's persisted regardless. You might want to change from using the word migration and just say eviction from memory. Migration clearly sounds like your moving it to the hard drive.

Top
  • Login or register to post comments
Tue, 08/16/2011 - 15:24
perry
Offline
Joined: 10/11/2010
Groups:

Thanks, I'll update the documentation.

Your understanding is correct, the process of writing data to disk and the process of reclaiming memory are completely separate.

Any changes are persisted to disk as fast as possible, but the data is still cached in RAM. When memory usage gets high enough, a separate process kicks in just to reclaim RAM in order to make space for more data (when the low watermark is hit, replica data is reclaimed/ejected, when the high watermark is hit, active data is reclaimed/ejected).

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
  • 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