"Tags" for Ceph pools?
Hi all,
silly question time. From a UX perspective, we sometimes need to know what a specific pool does. We can't always figure it out directly by looking at the pool - is this used for RBDs? A MDS metadata pool? RGW buckets?
Right now, that is all bundled into the naming scheme. Is that the way to proceed? Is there a recommended/standard naming scheme that tools could attach to, then?
We though of storing it in an object in the pool, but, uh, that obviously doesn't work so well for cache-tiered pools ;-)
Or should we have metadata about our Ceph entities maintained outside Ceph, in a separate tooling database?
Or would there be the chance to somehow store some description somewhere, like a few k/v, free-form? x-... parameters maybe?
(Tool suppliers could then agree on common tags, hopefully.)
Regards
Lars
Signature · 7 lines
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) "Experience is the name everyone gives to their mistakes." -- Oscar Wilde -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 14 lines · Lars Marowsky-Bree
Hi all,
silly question time. From a UX perspective, we sometimes need to know what a specific pool does. We can't always figure it out directly by looking at the pool - is this used for RBDs? A MDS metadata pool? RGW buckets?
Right now, that is all bundled into the naming scheme. Is that the way to proceed? Is there a recommended/standard naming scheme that tools could attach to, then?
We though of storing it in an object in the pool, but, uh, that obviously doesn't work so well for cache-tiered pools ;-)
Quoted 7 lines
Or should we have metadata about our Ceph entities maintained outside Ceph, in a separate tooling database?
Or would there be the chance to somehow store some description somewhere, like a few k/v, free-form? x-... parameters maybe?
(Tool suppliers could then agree on common tags, hopefully.)
I don't think there's anything designed for this. There are pool attributes that I don't think are available without programming, but there's also the monitor's key-value store. That is available via the CLI (or API) to anybody with sufficient permissions, and could include info like that.
-Greg
Quoted 14 lines · Lars Marowsky-Bree
Hi all,
silly question time. From a UX perspective, we sometimes need to know what a specific pool does. We can't always figure it out directly by looking at the pool - is this used for RBDs? A MDS metadata pool? RGW buckets?
Right now, that is all bundled into the naming scheme. Is that the way to proceed? Is there a recommended/standard naming scheme that tools could attach to, then?
We though of storing it in an object in the pool, but, uh, that obviously doesn't work so well for cache-tiered pools ;-)
Quoted 7 lines
Or should we have metadata about our Ceph entities maintained outside Ceph, in a separate tooling database?
Or would there be the chance to somehow store some description somewhere, like a few k/v, free-form? x-... parameters maybe?
(Tool suppliers could then agree on common tags, hopefully.)
I've had some thoughts along these lines -- I was thinking it would be nice to have tags on auth IDs so that one could for example save the mapping between the Ceph ID and something outside of ceph. As Greg mentions, we have the "config-key" interface currently, but it would be kind of nice to be able to do it in a more structured way.
Storing "extras" without bloating the cluster maps is definitely not a problem, we do this for the OSD metadata, the awkward part is just keeping it all in sync, making sure things get cleaned up when pools/osds/keys go away. While there is clearly a limit somewhere to how much non-essential state we store via the mons, my feeling is that we should go at least a bit further than our current config-key interface.
What about something like namespacing those keys into a path-ish form like "[pool|osd|rule].<id>"? We could potentially do smart things with those well-formed keys down the line, like ensuring they correspond to things that really exist, including them in certain outputs, and enabling people to efficient scoped operations like "config-key list pool.3.*".
John
Quoted 25 lines
Op 28 juni 2016 om 23:20 schreef John Spray <[email protected]>:
Quoted 20 lines · Lars Marowsky-Bree
Hi all,
silly question time. From a UX perspective, we sometimes need to know what a specific pool does. We can't always figure it out directly by looking at the pool - is this used for RBDs? A MDS metadata pool? RGW buckets?
Right now, that is all bundled into the naming scheme. Is that the way to proceed? Is there a recommended/standard naming scheme that tools could attach to, then?
We though of storing it in an object in the pool, but, uh, that obviously doesn't work so well for cache-tiered pools ;-)
Or should we have metadata about our Ceph entities maintained outside Ceph, in a separate tooling database?
Or would there be the chance to somehow store some description somewhere, like a few k/v, free-form? x-... parameters maybe?
Quoted 8 lines
Quoted 1 line
(Tool suppliers could then agree on common tags, hopefully.)
I've had some thoughts along these lines -- I was thinking it would be nice to have tags on auth IDs so that one could for example save the mapping between the Ceph ID and something outside of ceph. As Greg mentions, we have the "config-key" interface currently, but it would be kind of nice to be able to do it in a more structured way.
That would be awesome. Being able to tag a OSD with for example: bluestore,nvme,ssd,hdd
You could query these tags again and have automation to stuff around it. Or also start a OSD:
$ ceph-osd --id 0 --tags ssd,bluestore
The tags could then be used by additional tools to query stuff from there.
Quoted 20 lines
Storing "extras" without bloating the cluster maps is definitely not a problem, we do this for the OSD metadata, the awkward part is just keeping it all in sync, making sure things get cleaned up when pools/osds/keys go away. While there is clearly a limit somewhere to how much non-essential state we store via the mons, my feeling is that we should go at least a bit further than our current config-key interface.
What about something like namespacing those keys into a path-ish form like "[pool|osd|rule].<id>"? We could potentially do smart things with those well-formed keys down the line, like ensuring they correspond to things that really exist, including them in certain outputs, and enabling people to efficient scoped operations like "config-key list pool.3.*".
John
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 11 lines · Lars Marowsky-Bree
Hi all,
silly question time. From a UX perspective, we sometimes need to know what a specific pool does. We can't always figure it out directly by looking at the pool - is this used for RBDs? A MDS metadata pool? RGW buckets?
Right now, that is all bundled into the naming scheme. Is that the way to proceed? Is there a recommended/standard naming scheme that tools could attach to, then?
Quoted 8 lines
We though of storing it in an object in the pool, but, uh, that obviously doesn't work so well for cache-tiered pools ;-)
Or should we have metadata about our Ceph entities maintained outside Ceph, in a separate tooling database?
Or would there be the chance to somehow store some description somewhere, like a few k/v, free-form? x-... parameters maybe?
(/me perfoms arcane ritual to bring this thread back from the grave)
I'm wondering if Lars or anyone else went further with the pool metadata topic at all?
Aside from the integration with external tools, I'm finding that I would also use this for sanity-checking pool selection within Ceph itself. e.g. I would like rbd pools to be marked as such, so that if I'm offering the user a list of pools to use with cephfs then I can exclude the rbd ones, and the same for rgw.
John
Quoted 15 lines
(Tool suppliers could then agree on common tags, hopefully.)
Regards
Lars--
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) "Experience is the name everyone gives to their mistakes." -- Oscar Wilde--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html