Re: bucket/user stats for billing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 6, 2013 at 8:43 AM, Gandalf Corvotempesta
<gandalf.corvotempesta@xxxxxxxxx> wrote:
> 2013/3/6 Yehuda Sadeh <yehuda@xxxxxxxxxxx>:
>> Not really. But try this:
>>
>> radosgw-admin --rgw-cache-enabled=false bucket stats --bucket=bucketname
>
> WOW
>
> # time radosgw-admin bucket stats --bucket=bucketname
> { "bucket": "bucketname",
>   "pool": ".rgw.buckets",
>   "id": "7523.1",
>   "marker": "7523.1",
>   "owner": "myowner",
>   "usage": { "rgw.main": { "size_kb": 269466,
>           "size_kb_actual": 269492,
>           "num_objects": 72},
>       "rgw.multimeta": { "size_kb": 0,
>           "size_kb_actual": 0,
>           "num_objects": 32}}}
>
> real    0m5.441s
> user    0m0.020s
> sys     0m0.040s
>
>
> root@api:~# time radosgw-admin --rgw-cache-enabled=false bucket stats
> --bucket=bucketname
> { "bucket": "bucketname",
>   "pool": ".rgw.buckets",
>   "id": "7523.1",
>   "marker": "7523.1",
>   "owner": "myowner",
>   "usage": { "rgw.main": { "size_kb": 269466,
>           "size_kb_actual": 269492,
>           "num_objects": 72},
>       "rgw.multimeta": { "size_kb": 0,
>           "size_kb_actual": 0,
>           "num_objects": 32}}}
>
> real    0m0.058s
> user    0m0.024s
> sys     0m0.020s
>
>
>
>
> But..... why this speed increase?

It's not going through the cache initialization phase (registering all
the watches, etc.). We have an opened issue about fixing that for
radosgw-admin.

Yehuda
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux