Store size

11 views
Skip to first unread message

barak

unread,
Apr 9, 2010, 8:46:44 AM4/9/10
to project-voldemort
Hi all,

Is there an API so one can query stores for their size/number of keys?

Thanks.

tom gogii

unread,
Apr 11, 2010, 6:36:57 PM4/11/10
to project-voldemort
Hi Barak,

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

barak

unread,
Apr 12, 2010, 2:52:50 AM4/12/10
to project-voldemort
Thansk for that, works indeed. Is there another way, for example via
AdminClient?

> > Thanks.- Hide quoted text -
>
> - Show quoted text -

Tom Chen

unread,
Apr 12, 2010, 3:24:10 AM4/12/10
to project-...@googlegroups.com
voldemort.client.protocol.admin.AdminClient

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

Jay Kreps

unread,
Apr 16, 2010, 3:24:28 AM4/16/10
to project-...@googlegroups.com
Hi,

We don't have such an API at this time. It would definitely be nice to
have, though.

-Jay

On Sun, Apr 11, 2010 at 11:52 PM, barak <barak...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages