Thx Mark!
It's cool, I'll try the py api, though I've done the c implementation using the librados api to query pool statistics.
I found some func: int rados_osd_command, int rados_pg_command, int rados_monitor_log in ceph document, but there're not found in librados.cc of cuttlefish src (v0.61.7).
It's cool, I'll try the py api, though I've done the c implementation using the librados api to query pool statistics.
I found some func: int rados_osd_command, int rados_pg_command, int rados_monitor_log in ceph document, but there're not found in librados.cc of cuttlefish src (v0.61.7).
And is there any api to query each OSD's usage statistics, just like the output of pg dump that lists all OSD's usage statistics?
BR
2013/9/29 Mark Kirkwood <mark.kirkwood@xxxxxxxxxxxxxxx>
You might find it easier to use the python implementation for this (I certainly did). See attached (I was only interested in number of bytes, but the other metrics are available too)!
Cheers
Mark
On 28/09/13 14:48, Zh Chen wrote:
And recently i have another questions as follows,
5. I find that librados offer the api, and about this
rados_ioctx_pool_stat(rados_ioctx_t io, struct rados_pool_stat_t
*stats), if i want to query some pools' statistics and i need to declare
some rados_ioctx io or cluster handle that each for a pool? i found the
segment fault when the return for rados_ioctx_pool_stat.
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com