Feature #21301
closed
expose --sync-stats via admin api
Added by Nathan Johnson over 6 years ago.
Updated about 6 years ago.
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
/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.
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.
- Assignee set to Nathan Johnson
- Status changed from New to Fix Under Review
- Status changed from Fix Under Review to Pending Backport
- Backport set to luminous
- Copied to Backport #21655: luminous: expose --sync-stats via admin api added
- Backport changed from luminous to luminous jewel
- Status changed from Pending Backport to Resolved
Also available in: Atom
PDF