Is bucket flushing no longer supported?
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.
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?
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
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!