Feature #21301
closedexpose --sync-stats via admin api
0%
Description
It would be useful to allow passing a "sync" path parameter along with the "stats" flag to the user info admin api call, to simulate the radosgw-admin cli call:
radosgw-admin user stats --uid=<uid> --sync-stats
Updated by Yatin Kumbhare over 6 years ago
/admin/user?format=json&<uid>=%s&stats=true #without --sync-stats
Which adds "stats":{"num_kb":X,"num_kb_rounded":X,"num_objects":X} to user info.
adding --sync behaviour would make that api blocking call, since it would get actual usage stats.
Updated by Nathan Johnson over 6 years ago
Yatin Kumbhare wrote:
/admin/user?format=json&<uid>=%s&stats=true #without --sync-stats
Which adds "stats":{"num_kb":X,"num_kb_rounded":X,"num_objects":X} to user info.
adding --sync behaviour would make that api blocking call, since it would get actual usage stats.
That is true, it would be a blocking call.
Updated by Jos Collin over 6 years ago
- Assignee set to Nathan Johnson
PR Created: https://github.com/ceph/ceph/pull/17589
Updated by Jos Collin over 6 years ago
- Status changed from New to Fix Under Review
Updated by Orit Wasserman over 6 years ago
- Status changed from Fix Under Review to Pending Backport
- Backport set to luminous
Updated by Nathan Cutler over 6 years ago
- Copied to Backport #21655: luminous: expose --sync-stats via admin api added
Updated by Nathan Cutler about 6 years ago
- Backport changed from luminous to luminous jewel
Updated by Nathan Cutler about 6 years ago
- Copied to Backport #22830: jewel: expose --sync-stats via admin api added
Updated by Nathan Cutler about 6 years ago
- Status changed from Pending Backport to Resolved