Bug 1517915 - [RFE] Admin socket command to view whats in rgw cache
Summary: [RFE] Admin socket command to view whats in rgw cache
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RGW
Version: 2.4
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: 3.1
Assignee: Adam C. Emerson
QA Contact: Vidushi Mishra
URL:
Whiteboard:
Depends On:
Blocks: 1584264
TreeView+ depends on / blocked
 
Reported: 2017-11-27 17:04 UTC by Mike Hackett
Modified: 2018-09-26 18:18 UTC (History)
12 users (show)

Fixed In Version: RHEL: ceph-12.2.4-6.el7cp Ubuntu: ceph_12.2.4-7redhat1xenial
Doc Type: Enhancement
Doc Text:
.New administrative sockets added for the `radosgw-admin` command to view the Object Gateway cache Two new administrative sockets were added to the `radosgw-admin` command to view the contents of the Ceph Object Gateway cache. The `cache list [string]` sub-command lists all objects in the cache. If the optional `string` is provided, it only matches those objects containing the string. The `cache inspect <objectname>` sub-command prints detailed information about the object. These commands can be used to help debug caching problems on any Ceph Object Gateway node.
Clone Of:
Environment:
Last Closed: 2018-09-26 18:16:43 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 22604 0 None None None 2018-01-05 22:40:36 UTC
Github ceph ceph pull 20144 0 None closed Cache Register! 2021-02-04 12:23:17 UTC
Red Hat Product Errata RHBA-2018:2819 0 None None None 2018-09-26 18:18:02 UTC

Description Mike Hackett 2017-11-27 17:04:43 UTC
Description of problem:
Walmart has requested the ability to view whats inside rgw cache and used cache by utilizing the radosgw-admin tool.

Version-Release number of selected component (if applicable):
RHCS 2.4

Comment 5 Adam C. Emerson 2017-11-27 17:42:40 UTC
I think this would be a much more natural fit for something like the admin-socket than for radosgw-admin, since we're poking at, introspecting, and flushing an individual process.

Comment 6 Adam C. Emerson 2018-01-05 22:35:15 UTC
Do they have specifics about what they want to see exactly? I can quite easily come up with a way to just walk the cache and print the objects in it and any data chained to them. It'd probably be large.

(Also radosgw-admin isn't a good choice, since cache is per-RGW server. The most obvious and Ceph Idiomatic way to do this is the admin hook.)

Comment 9 Adam C. Emerson 2018-05-30 16:13:25 UTC
@vidushi There is no reproducer, it's a feature request.

You could test it by making a request and then inspecting the objects in cache to make sure they are what they should be.

Comment 11 Adam C. Emerson 2018-05-31 15:27:45 UTC
No. radosgw-admin manipulates RGW data and metadata in RADOS. Since the cache exists per-process, these commands are on the admin socket accessible with the ceph daemon command.

e.g.

./bin/ceph --admin-daemon=/path/to/socket.asok cache list

Comment 15 errata-xmlrpc 2018-09-26 18:16:43 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:2819


Note You need to log in before you can comment on or make changes to this bug.