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

Improved speed of writing to disk

3 replies [Last post]
  • Login or register to post comments
Fri, 12/16/2011 - 02:31
robtindall
Offline
Joined: 08/01/2011
Groups: None

We have done some of our own testing to see how long things are taking to get written to disk.
We only see a small improvement approx 1.5 secs down to 1 sec. We still feel that 1 second is too long for a simple write to disk. It is difficult to determine with any confidence due to the lack of a way to monitor the actual write to disk.

Can you please tell me what order of magnitude of latency on writing to disk you are seeing ?

Top
  • Login or register to post comments
Sun, 12/18/2011 - 01:02
ingenthr
Online
Joined: 03/16/2010
Groups:

There is quite a bit of work ongoing to optimize some of these paths, and there are some features coming to allow you to specify that you want to block until a change is durable at either the replication or the disk IO level. I believe use that internally to the server for prioritization as well.

Right now we write things as fast as we can and we constantly scan. We measure this with stats timings, and stats key. How are you measuring the durability? When you say you see an improvement, is this from DP2 to DP3?

Top
  • Login or register to post comments
Tue, 12/20/2011 - 08:03
robtindall
Offline
Joined: 08/01/2011
Groups: None

We don't have the ability to reliably test how long things are taking to write to disk. Hence my question of what is the expected order of magnitude of disk latency.
Could you explain more about the stats you mentioned.

We currently sleep for 3 seconds after a write before we can read from a view and expect it to refresh itself. This is what we are trying to get around !

Top
  • Login or register to post comments
Tue, 12/20/2011 - 16:41
mikew
Offline
Joined: 03/14/2011
Groups:

There are many factors that affect the latency of a write including your hardware setup and the amount of load that the server is under. Since I haven't done many benchmarks in this area I will refrain from giving any estimate here. We are also improving a lot of code in this area so a good answer now might be very wrong later. What I really want to mention though is that we are adding a new command called "observe". This command will allow you to do things like say I would like to set this item, but only tell me it's done when the item has been persisted to disk. The command will also be asynchronous so it won't block any of your other requests. This should help take all of the guess work out of you application code.

With observe you can also ask for the item to be replicated, mutated, or deleted, before getting your observe response back.

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