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

Is bucket flushing no longer supported?

3 replies [Last post]
  • Login or register to post comments
Wed, 01/26/2011 - 09:29
theburningmonk
Offline
Joined: 06/29/2010
Groups: None

Hi I noticed that since we moved to Membase from Northscale flushing a bucket using the Enyim client has stopped working for both Memcached and Membase buckets. I remember reading somewhere that flushing via REST API was disabled since v1.6.3, what's the easiest way for me to flush a bucket now? I can see a bucket-flush command on the CLI, but can't see any examples in the wiki, can anyone post an example on how to do this for memcached and membase buckets? Thanks.

EDIT:

Also, whilst evicting works, when I successfully evicted a key (the items count went down) I see the operation being attributed towards Delete misses per sec as opposed to Delete hits per sec.

 

Top
  • Login or register to post comments
Wed, 01/26/2011 - 11:32
perry
Offline
Joined: 10/11/2010
Groups:

 I'll check on the best way to do it through the Enyim client, but if you need a workaround to flush a bucket, you can telnet into the bucket directly and run 'flush_all'.  If you've configured the bucket to use a password, you'll want to temporarily switch to port-based and then run the 'flush_all' command and switch back to the password.  It's not the best way right now, but I will escalate the ability to use the REST API for a future release.

 

I'll also investigate the eviction stats.

 

Thanks, take care.

 

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, 03/17/2011 - 16:41
jasonsirota
Offline
Joined: 11/10/2010
Groups: None

Perry,

if the bucket is in a cluster and you telnet to one of the nodes and issue a flush_all does it flush the entire bucket for all nodes, or just for the node you're connected to?

__________________

Jason Sirota
Director, Application Architecture - The Knot
http://twitter.com/jasonsirota

Top
  • Login or register to post comments
Fri, 03/18/2011 - 09:21
perry
Offline
Joined: 10/11/2010
Groups:

Assuming you're going through Moxi, it will flush the entire bucket.

It is possible to send a request directly to an individual node (via the binary protocol with SASL authentication to 11210) and that will only flush the bucket you've connected to.

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