On Wed, Mar 6, 2013 at 1:46 AM, Gandalf Corvotempesta
<[email protected]> wrote:
> We would like to get buckets or users stats for billing purposes.
> We need to calculate used disk space for each user.
>
> Actually, i'm doing this with radosgw-admin but getting a list of
> buckets and then
>
> radosgw-admin bucket stats --bucket=bucketname
>
> to get owner and disk usage.
>
> Getting stats is very, very, very slow (5 seconds for each bucket) and
> we need to do this very frequently (at least 1 time every 5 minutes.
> Not doing this will allow a user to upload a large file, share it for
> 4 minutes and then delete it with no billing)
> Do you have any faster method?

Not really. But try this:

radosgw-admin --rgw-cache-enabled=false bucket stats --bucket=bucketname


Yehuda
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to