Flush Cache (default bucket) from all the nodes in a cluster
Hi,
We were using memcached and developed a java api to flush the cache.
I have changed my set with membase cluser with 2 nodes and using moxi i am accessing membase cluster into my program. But when we try to use the same flush api to flush the cache , it is not flushing cache from all the nodes.
Could you guide us to flush the cache from all the nodes by using membase api
Thanks,
Pradeep
Hi Perry,
Is there a way I can flush a vBucket?
Background: I need to group my cache by modules, and be able to refresh the cache of that module on demand.
I can code my CacheManager to have multiple MemcachedClient instances and tag them to a vBucket, dedicated for a module.
mc1 = new MemcachedClient(baseURIs, "module1", "");
mc2 = new MemcachedClient(baseURIs, "module2", "");
Thanks
Abhilash
Pradeep, there are currently some known issues with the memcached 'flush_all' command not working properly. We've got open bugs and I will follow up with our engineering team to see when it can be fixed.
In the meantime, you can pretty easily remove all the data from a Membase bucket by simply shutting down the service, deleting the database files and then restarting.
Let me know if that helps
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!