Is there any way to extract top keys of memcached bucket in couchabase

Through the couchbase http interface, you can see the top real-time keys stored in the bucket Memcached, as well as various statistics.
However, I cannot find a way to extract these upper keys or to extract the value of such a key. I looked at the Couchbase documentation, but I did not find anything suitable.
I used java and the rest of the API, but without success.
For Couchbasebuckets (rather than Memcached) simple GET, it will look something like this:

server:8091/couchBase/couchbase_bucket_name/key

and you will get an answer. If you do the same for the bucket Memcached, you will receive not foundas an answer.
How to extract the top keys for a bucket Memcached?

+4
source share
3 answers

This command will work on both the couch and memcache cells to restore keyboard shortcuts

curl -u Administrator:password http://YOUR_IP:8091/pools/default/buckets/NAME_OF_BUCKET/stats

A lot of data will be returned, but at the end of the statistics you will find hot_keys, which will contain a list of your hot keys with options per second:

"hot_keys":[{"name":"123","ops":0.000502008032128514}]

As for not finding keys in memcache buckets, if it is not found, you either did not set this key, or you set the lifetime (ttl) shorter than the time between setting and receiving the key.

+3
source

? Couchbase. , , . , , memcached, couchbase. , !

0

this will provide the best keys in the last 24 hours

curl -u Administrator:password http://YOUR_IP:8091/pools/default/buckets/NAME_OF_BUCKET/stats?zoom=day | python -mjson.tool
0
source

All Articles