Is there an API so one can query stores for their size/number of keys?
Thanks.
1. One possible option is to look at the jmx mbean at:
voldemort.server.storage:type=StorageService
There is a method on the bean - logStoreStats.
This should get the size of the unlying database. This prints it out
to the log file for voldemort:
sample below:
[2010-04-11 15:34:38,273 voldemort.server.storage.StorageService]
INFO
Data statistics for store 'test':
Total entries: 400000
Total bytes: 1170960887
Avg. key size: 5.7
Avg. value size: 2,921.7
Smallest key size: 2911
Largest key size: 2911
Smallest value size: 2911
Largest value size: 2922
Tom
> > Thanks.- Hide quoted text -
>
> - Show quoted text -
Should be able to do it, but i haven't seen an example. According to
the javadoc this is what the rebalancing operation uses.
> --
> You received this message because you are subscribed to the Google Groups "project-voldemort" group.
> To post to this group, send email to project-...@googlegroups.com.
> To unsubscribe from this group, send email to project-voldem...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/project-voldemort?hl=en.
>
>
--
Tom Chen
Software Architect
GOGII, Inc
t...@gogii.net
650-468-6318