After you put key/val pairs in membase, how can u audit the key names that are on a server? (or in a bucket)?
What are you looking to do in terms of a audit? Get a listing of keys that live on each server node or verify the key exists and its value?
It'd be nice to see a list of keys that exist on the server. I remember reading about a protocol command that can check for individual keys to see if they have been set. (get, gets, cas.. etc)
However, I am in the process of investigating the data in one of our membase servers and I'm looking for some commands / tools to help me see whats on there. (The web front end doesn't so that right? .. that's more administrative / bucket management it seems like)
I'm open to other suggestions if you have any also.
Hi Kurt, depending on whether you want to ask about a specific item or get the full list of items, the answer differs a bit.
You may be remembering our 'sync' operation which lets you basically ask the server to tell you when an object has been persisted, replicated, changed or deleted. More simply, you can programmatically use 'add' to check whether a key exists...it will fail if the key exists, otherwise it will succeed.
With Couchbase Server 2.0, we maintain an index by key and so you can very easily get a list of all keys out of the cluster. You may also want to look at our TAP interface (http://www.couchbase.org/wiki/display/membase/TAP+Protocol) which lets you connect to a server and stream out all the keys and values. You can optionally stay connected and continue to receive a stream of all the mutations going into the server.
Hope that helps, maybe understanding a bit more what you want to accomplish would be helpful.
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/overviewCall or email "sales -at- couchbase-dot- com" today!
Thanks for the feedback. I'm going to do a little bit of research on the info you've provided and re-post afterwards. It seems like (if I'm using 2.0) then I can read that index (file?). If not, the TAP interface seems like it could also work.
© 2013 COUCHBASE All rights reserved.