Index Partitioning distribution


I was wondering if there’s a way to view distribution of Index keys across Index nodes when using Hash partitioning feature in Couchbase 5.5. It would be good to understand the distribution and see if there’s any skew.


There is a way to get stats for each index at partition level. The stats item_count would be able to tell you the number of keys of the partition resided in that node. If you have json_pp, you can try the following.

curl localhost:9102/stats?partition=true | json_pp | grep “:items_count”