Project

General

Profile

Feature #21301

expose --sync-stats via admin api

Added by Nathan Johnson 3 months ago. Updated 3 months ago.

Status:
Pending Backport
Priority:
Normal
Target version:
Start date:
09/08/2017
Due date:
% Done:

0%

Source:
Tags:
Backport:
luminous
Reviewed:
User Impact:
Affected Versions:
Release:
luminous
Needs Doc:
No

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


Related issues

Copied to rgw - Backport #21655: luminous: expose --sync-stats via admin api In Progress

History

#1 Updated by Yatin Kumbhare 3 months 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.

#2 Updated by Nathan Johnson 3 months 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.

#3 Updated by Jos Collin 3 months ago

  • Assignee set to Nathan Johnson

#4 Updated by Jos Collin 3 months ago

  • Status changed from New to Need Review

#5 Updated by Orit Wasserman 3 months ago

  • Status changed from Need Review to Pending Backport
  • Backport set to luminous

#6 Updated by Nathan Cutler 2 months ago

  • Copied to Backport #21655: luminous: expose --sync-stats via admin api added

Also available in: Atom PDF