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

Urgent Help - AWS EBS IO charges due to Couchbase DP4 activity

9 replies [Last post]
  • Login or register to post comments
Tue, 09/18/2012 - 09:29
cb
Offline
Joined: 08/10/2012
Groups: None

I am charged by Amazon on a high EBS IO activity although my instance is not yet active what so ever.

I'm still at early development. I'm running DP4 on Ubuntu micro instance.

Running sudo iotop reveals the Couchbase unexplained EBS IO activity:

TID PRIO USER DISK READ DISK WRITE SWAPIN IO> COMMAND

4100 be/4 couchbas 0.00 B/s 27.50 K/s 0.00 % 0.00 % beam.smp -A 16 -sbt u -P 327680 -K true -- -root /opt/couc~"/opt/couchbase/var/lib/couchbase/couchbase-server.cookie"

Please note the writes of beam.smp - it can reach up to 30KB/S

Please help - what is causing it, why, and how to reduce!!

Thanks!!

CB.

Top
  • Login or register to post comments
Tue, 09/18/2012 - 10:22
ingenthr
Offline
Joined: 03/16/2010
Groups:

I suspect it could be the auto-compaction which may be disabled through the bucket settings.

Also, note that we do not recommend EC2 Micro instances, as there have been issues when the systems are starved of resources.

In any event, I would recommend moving to 2.0 Beta, which was posted this morning and checking the io-- possibly disabling auto-compaction. Beta is at couchbase.com/couchbase-server/beta

Top
  • Login or register to post comments
Tue, 09/18/2012 - 10:29
cb
Offline
Joined: 08/10/2012
Groups: None

what are the implication of disabling auto compaction?

Is it something that you would recommend for production?

Can it be turned on later when we traffic starts to increase?

Finally - when turned back on, what are the cluster side effects during the transition to auto compaction (if at all)?

Top
  • Login or register to post comments
Tue, 09/18/2012 - 11:05
cb
Offline
Joined: 08/10/2012
Groups: None

I tried disabling the auto compaction via the admin interface (web) - removed the checkboxes on database fragmentation and view fragmentation

did a stop , and start

nothing changed - same IO activity is observed.

Any other suggestion (other than upgrading - which might take me a few days)

Top
  • Login or register to post comments
Tue, 09/18/2012 - 11:18
ingenthr
Offline
Joined: 03/16/2010
Groups:

The other IO activity it may be is related to the statistics it's collecting. There is no method of disabling that at the moment.

One workaround would be to shutdown the server, then move /opt/couchbase/var/lib/couchbase/mnesia contents to another device and put a symlink in it's place. Can you try that?

If possible, move it to the ephemeral local storage so it will still be persistent.

Top
  • Login or register to post comments
Tue, 09/18/2012 - 12:10
cb
Offline
Joined: 08/10/2012
Groups: None

Since I'm running on a micro instance (free tier) I cannot use Instance Store (ephemeral local storage) since it is only available from a small instance upward.

If you have any other suggestion please let me know.

Top
  • Login or register to post comments
Tue, 09/18/2012 - 13:23
karan
Offline
Joined: 08/02/2011
Groups:

You can edit the file /opt/couchbase/etc/couchbase/static_config

And update loglevel for different component to error to reduce logging.
Restart couchbase-server then.

Eg:-
{loglevel_default, error}.
{loglevel_couchdb, error}.
{loglevel_ns_server, error}.
{loglevel_error_logger, error}.
{loglevel_user, error}.
{loglevel_menelaus, error}.
{loglevel_ns_doctor, error}.
{loglevel_stats, error}.
{loglevel_rebalance, error}.
{loglevel_cluster, error}.
{loglevel_views, error}.
{loglevel_mapreduce_errors, error}.

Top
  • Login or register to post comments
Tue, 09/18/2012 - 20:40
cb
Offline
Joined: 08/10/2012
Groups: None

I changed the logging level per your instructions. stop, restart (two times) - I don't see any significant effect on disk IO. Same levels as before.

Top
  • Login or register to post comments
Tue, 09/18/2012 - 20:40
alkondratenko
alkondratenko's picture
Offline
Joined: 12/01/2010
Groups: None

Those writes are stats updates.

We know it's going to cause problems for very small virtualised instances. And this will be fixed but definitely not before 2.0 is out.

In general we've found EC2 micro instances don't really work at all with couchbase as well as with it's predecessor membase. This is at least partly caused by extreme burstiness of CPU scheduling of micro instances that we've seen may cause timeouts to be hit quite easily.

For now avoid micro instances.

Top
  • Login or register to post comments
Tue, 09/18/2012 - 20:50
cb
Offline
Joined: 08/10/2012
Groups: None

I'm not planning to run on micro instance when we launch. But for our current phase - it doesn't make any sense to pay the extra bucks. We prefer the charges as result of the excessive EBS IO.

I would suggest the following fixes:

1. easy access to stats level configuration through the admin interface
2. easy configuration of the log output path so that we can direct it to Instance Storage rather than EBS storage.

thanks!
CB

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