OSDMap partitioning
Quoted 27 lines · Adam C. Emerson
# Map Partitioning #
There are two huge problems with scalability in Ceph.
1. The OSDMap knows too many things
2. A single monitor manages all updates of everything and replicates them to other monitors.## Too Big to Not Fail ##
The monitor map and MDS maps are fine. Each holds data needed to locate servers and that's it. It would be very hard to put enough data in them to cause problems. The OSD map however contains a trove of data that must be updated serially in Paxos and propagated to every OSD, monitor, MDS, and client in the cluster.
Pools are a notorious example. We can't create as many pools as users would like. Pools are heavyweight, and while they depend on other items in the OSD map (like erasure code profiles), it would be nice if we divide them between several monitor clusters, each of which would hold a subset of pools. We would need to make sure that clients had up to date versions of whatever pools they are using along with the status of the OSDs they're speaking to, but that's not impossible. Likewise, we should split placement rules out of the OSD map, especially once we get into larger numbers of potentially larger Flexible Placement style functions.
Quoted 4 lines
Nodes should then only need to subscribe to the set of pools and placement functions they need to access their data. Changes like these should allow users to create the number of pools they want without causing the cluster difficulty.
I'm not sure I'm convinced. The mon is doing way more than it should right now, but we are about to rip all/most of the PGMonitor work out of ceph-mon and move it into ceph-mgr. At that point, the OSDMap is a pretty small burden for the mon to manage. Even if we have clusters that are 2 orders of magnitude larger (100,000 OSDs), that's maybe a 100MB data structure at most. Why do we need to partition it?
I get that pools are heavyweight, but I think that derivse from the fact that it is a *placement* function, and we *want* placement to be an administrative property, not a tentant/user property that can proliferate. Placement should depend on the hardware that comprises the cluster, and that doesn't change so quickly, and the scale does not change quickly. Tenants want to create their own workspaces to do their thing, but I think needs to remain a slice within the existing placement primitives so they do't have direct control. e.g., rados namespaces, or something more powerful if we need it, because we'll have anywhere from 1 tenant to a million tenants, and we can't have them spamming the cluster placement topology.
At least, I think that's true on the OSD side of things. On the client side, might make sense to limit the client's view to certain pools. Maybe.
Anyway, assuming we have some tenant primitive (like namespace slice of a pool), I don't see the motivation for the huge complexity of breaking apart OSDMap. What am I missing?
Quoted 34 lines
### Consistency ###
Partitioning makes consistency harder. A simple remedy might be to stop referring to data by name or integer. An erasure code profile should be specified by UUID and version. So should pools and placement functions. When sending a request to the OSD, a client should send the versions of the pool, the ruleset, and the OSDMap it used and the OSD should check that all three are current.
## The OSD Set ##
The complicating case here is the OSD status set. Running this through a single Paxos limits the number of OSDs that can coexist in a cluster. We ought split the set of OSDs between multiple masters to distribute the load. Each 'Up' or 'Down' event is independent of others, so all we require is that events get propagated into the correct OSDs and primaries and followers act as they're supposed to.
Versioning is a bigger problem here. We might have all masters increment their version when one increments its version if that could be managed without inefficiency. We might send a compound version with
MOSDOps, but combining that with the compound version above might be unwieldly. (Feedback on this issue would be greatly appreciated.)### Subscription ###
For a large number of OSDs, it would be nice if not everyone were notified of all state changes.
For a pool whose placement rule spans only a subset of all OSDs, clients using that pool should be able to subscribe to a subset of the OSD set corresponding to that pool. This should be fairly easy so long as the subset is explicit.
Quoted 5 lines
In the case of pools not providing an explicit subset, a monitor (or perhaps a proxy in front of a set of monitors) could look at common patterns of subscription requests and merge those with significant overlap together, so as to give clients a subset without being destroyed by the irresistible force of combinatorial explosion.
The OSDMap sharing is gossip-based and (I think) lightweight. OSDMap::Incrementals are small. Is this really going to be a problem?
Now, going in a somewhat tangential direction... what I *am* worried about is the failure granularity. Right now we have an up/down state for an OSD, and all PG shards live or die together. But it seems like we might want to localize a failure to a PG, so that if we have some media error, or we encounter some metadata corruption, we can fail a PG in isolation without taking down the other ~99 on the device. Having a fail-pg-but-don't-crash mode of operation will also be really helpful when we have multiple OSDs living within the same process.
Perhaps that's just a map of PG states (that includes down), similar to pg_temp, that gets bundled into the OSDMap...
sage
Quoted 7 lines · Sage Weil
On Fri, 15 Apr 2016, Adam C. Emerson wrote: I'm not sure I'm convinced. The mon is doing way more than it should right now, but we are about to rip all/most of the PGMonitor work out of ceph-mon and move it into ceph-mgr. At that point, the OSDMap is a pretty small burden for the mon to manage. Even if we have clusters that are 2 orders of magnitude larger (100,000 OSDs), that's maybe a 100MB data structure at most. Why do we need to partition it?
Clients keeping 100MB of state just to talk to the cluster seems a bit much to me, especially if we ever want anything embedded to be able to use it.
Also, it's not just the size. One worry is how well the monitor will be able to hold up if we have a bunch of OSDs going up and down at a fast rate (which becomes a bit more likely the bigger our clusters get.)
Quoted 12 lines
I get that pools are heavyweight, but I think that derivse from the fact that it is a *placement* function, and we *want* placement to be an administrative property, not a tentant/user property that can proliferate. Placement should depend on the hardware that comprises the cluster, and that doesn't change so quickly, and the scale does not change quickly. Tenants want to create their own workspaces to do their thing, but I think needs to remain a slice within the existing placement primitives so they do't have direct control. e.g., rados namespaces, or something more powerful if we need it, because we'll have anywhere from 1 tenant to a million tenants, and we can't have them spamming the cluster placement topology.
Quoted 7 lines
At least, I think that's true on the OSD side of things. On the client side, might make sense to limit the client's view to certain pools. Maybe.
Anyway, assuming we have some tenant primitive (like namespace slice of a pool), I don't see the motivation for the huge complexity of breaking apart OSDMap. What am I missing?
Three things, I think. Please tell me if I'm missing anything obvious or getting anything wrong.
First, the gigantic bullsey intersection between tennancy and placement would be cases where regulatory regimes or contracts require isolation. (The whole "My data can't be stored on the same disk as anyone else's data." thing.)
Second, I've always been working under the assumption that placement is a function of workload as well as hardware. At least there's a lot of interesting space in the 'placement function choice'/'workload optimization' intersection.
Third, I think Namespaces and Pools as you describe them miss a piece. Users almost always want to be able to make collections of objects that can be treated like a unit. Sure, RADOSGW can make buckets, but I don't think we want to base the fundamental design of our system around the idea that people will be using legacy protocols like S3.
Signature · 3 lines
Senior Software Engineer Red Hat Storage, Ann Arbor, MI, US
IRC: Aemerson@{RedHat, OFTC, Freenode}
0x80F7544B90EDBFB9 E707 86BA 0C1B 62CC 152C 7C12 80F7 544B 90ED BFB9Quoted 50 lines · Adam C. Emerson
Quoted 7 lines · Sage Weil
On Fri, 15 Apr 2016, Adam C. Emerson wrote: I'm not sure I'm convinced. The mon is doing way more than it should right now, but we are about to rip all/most of the PGMonitor work out of ceph-mon and move it into ceph-mgr. At that point, the OSDMap is a pretty small burden for the mon to manage. Even if we have clusters that are 2 orders of magnitude larger (100,000 OSDs), that's maybe a 100MB data structure at most. Why do we need to partition it?
Clients keeping 100MB of state just to talk to the cluster seems a bit much to me, especially if we ever want anything embedded to be able to use it.
Also, it's not just the size. One worry is how well the monitor will be able to hold up if we have a bunch of OSDs going up and down at a fast rate (which becomes a bit more likely the bigger our clusters get.)
Quoted 12 lines
I get that pools are heavyweight, but I think that derivse from the fact that it is a *placement* function, and we *want* placement to be an administrative property, not a tentant/user property that can proliferate. Placement should depend on the hardware that comprises the cluster, and that doesn't change so quickly, and the scale does not change quickly. Tenants want to create their own workspaces to do their thing, but I think needs to remain a slice within the existing placement primitives so they do't have direct control. e.g., rados namespaces, or something more powerful if we need it, because we'll have anywhere from 1 tenant to a million tenants, and we can't have them spamming the cluster placement topology.
Quoted 7 lines
At least, I think that's true on the OSD side of things. On the client side, might make sense to limit the client's view to certain pools. Maybe.
Anyway, assuming we have some tenant primitive (like namespace slice of a pool), I don't see the motivation for the huge complexity of breaking apart OSDMap. What am I missing?
Three things, I think. Please tell me if I'm missing anything obvious or getting anything wrong.
First, the gigantic bullsey intersection between tennancy and placement would be cases where regulatory regimes or contracts require isolation. (The whole "My data can't be stored on the same disk as anyone else's data." thing.)
Second, I've always been working under the assumption that placement is a function of workload as well as hardware. At least there's a lot of interesting space in the 'placement function choice'/'workload optimization' intersection.
Quoted 6 lines
Third, I think Namespaces and Pools as you describe them miss a piece. Users almost always want to be able to make collections of objects that can be treated like a unit. Sure, RADOSGW can make buckets, but I don't think we want to base the fundamental design of our system around the idea that people will be using legacy protocols like S3.
So, how do you build a placement system that treats stuff as a unit, but isn't heavyweight like pools? People ask a lot for something like that, and when they describe how it could be implemented, it either turns into a pool or it turns into an object locator with the ability to move everything with a given locator to a locator position. Or else it's explicit mappings like some of the stupider Lustre hero runs.
That said, I've talked with Sam about in some way sharding OSDMaps or Ceph clusters, and it is something worth exploring. One giant Ceph cluster for your whole data center has issues apart from the size of the OSDMap. Failures and changes to the CRUSH map affect placement in totally uncorrelated parts of the system and that's not much fun. You get part way there by putting pools in different sections of the CRUSH tree, but maybe not quite enough -- more isolation within the data structures also isolates the impact of bugs in the system.
So it might be good to be able to partition OSDs within a single data center into separate sub-clusters with their own maps, possibly administered by their own monitor clusters. That would mean a change in CRUSH weights elsewhere in the system is less likely to accidentally impact clusters elsewhere (eg, having a single global pool that doesn't see much use any more but suddenly needs to move a bunch of stale data). It means that when part of the cluster has issues, spins up a bunch of OSDMaps, and hits some new map processing cycle of doom we still have present, the other parts of the cluster don't fall into the cycle too — because they don't have any additional maps to process. And doing things to encourage admins to have smaller pieces of their system (while doing whatever we can to make it easy to shift between them) means that things like our CRUSH imbalances are less likely to become a serious issue.
-Greg
--
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 66 lines · Gregory Farnum
Quoted 50 lines · Adam C. Emerson
Quoted 7 lines · Sage Weil
On Fri, 15 Apr 2016, Adam C. Emerson wrote: I'm not sure I'm convinced. The mon is doing way more than it should right now, but we are about to rip all/most of the PGMonitor work out of ceph-mon and move it into ceph-mgr. At that point, the OSDMap is a pretty small burden for the mon to manage. Even if we have clusters that are 2 orders of magnitude larger (100,000 OSDs), that's maybe a 100MB data structure at most. Why do we need to partition it?
Clients keeping 100MB of state just to talk to the cluster seems a bit much to me, especially if we ever want anything embedded to be able to use it.
Also, it's not just the size. One worry is how well the monitor will be able to hold up if we have a bunch of OSDs going up and down at a fast rate (which becomes a bit more likely the bigger our clusters get.)
Quoted 12 lines
I get that pools are heavyweight, but I think that derivse from the fact that it is a *placement* function, and we *want* placement to be an administrative property, not a tentant/user property that can proliferate. Placement should depend on the hardware that comprises the cluster, and that doesn't change so quickly, and the scale does not change quickly. Tenants want to create their own workspaces to do their thing, but I think needs to remain a slice within the existing placement primitives so they do't have direct control. e.g., rados namespaces, or something more powerful if we need it, because we'll have anywhere from 1 tenant to a million tenants, and we can't have them spamming the cluster placement topology.
Quoted 7 lines
At least, I think that's true on the OSD side of things. On the client side, might make sense to limit the client's view to certain pools. Maybe.
Anyway, assuming we have some tenant primitive (like namespace slice of a pool), I don't see the motivation for the huge complexity of breaking apart OSDMap. What am I missing?
Three things, I think. Please tell me if I'm missing anything obvious or getting anything wrong.
First, the gigantic bullsey intersection between tennancy and placement would be cases where regulatory regimes or contracts require isolation. (The whole "My data can't be stored on the same disk as anyone else's data." thing.)
Second, I've always been working under the assumption that placement is a function of workload as well as hardware. At least there's a lot of interesting space in the 'placement function choice'/'workload optimization' intersection.
Quoted 6 lines
Third, I think Namespaces and Pools as you describe them miss a piece. Users almost always want to be able to make collections of objects that can be treated like a unit. Sure, RADOSGW can make buckets, but I don't think we want to base the fundamental design of our system around the idea that people will be using legacy protocols like S3.
So, how do you build a placement system that treats stuff as a unit, but isn't heavyweight like pools? People ask a lot for something like that, and when they describe how it could be implemented, it either turns into a pool or it turns into an object locator with the ability to move everything with a given locator to a locator position. Or else it's explicit mappings like some of the stupider Lustre hero runs.
Quoted 8 lines
That said, I've talked with Sam about in some way sharding OSDMaps or Ceph clusters, and it is something worth exploring. One giant Ceph cluster for your whole data center has issues apart from the size of the OSDMap. Failures and changes to the CRUSH map affect placement in totally uncorrelated parts of the system and that's not much fun. You get part way there by putting pools in different sections of the CRUSH tree, but maybe not quite enough -- more isolation within the data structures also isolates the impact of bugs in the system.
Yeah, the value of isolation is an important point.
I think this thread started with the assumption that having multiple physical clusters for multiple workloads was a bug, but sometimes it's a feature. Some (maybe most?) users with multiple clusters wouldn't want to merge them into one big one even if we offered them the ability.
That said, I have a lot of sympathy for the complaint that even clients accessing a sub-tree of the crush map still have to subscribe to the entire OSD map. Same for OSDs that will only ever be peers of some nearish neighbours. We could improve that mon-side by allowing clients to subscribe to their desired sub-map[1] (probably just specify which pools they care about and let the mon work it out). But to be clear, that's not truly scalability improvement, it's just a pragmatic, useful improvement to the ways we allow people to partition their ceph clusters to avoid operating at higher scale than they need.
John
Quoted 11 lines
So it might be good to be able to partition OSDs within a single data center into separate sub-clusters with their own maps, possibly administered by their own monitor clusters. That would mean a change in CRUSH weights elsewhere in the system is less likely to accidentally impact clusters elsewhere (eg, having a single global pool that doesn't see much use any more but suddenly needs to move a bunch of stale data). It means that when part of the cluster has issues, spins up a bunch of OSDMaps, and hits some new map processing cycle of doom we still have present, the other parts of the cluster don't fall into the cycle too — because they don't have any additional maps to process. And doing things to encourage admins to have smaller
Quoted 8 lines
pieces of their system (while doing whatever we can to make it easy to shift between them) means that things like our CRUSH imbalances are less likely to become a serious issue.
-Greg
--
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
--
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 9 lines · Adam C. Emerson
Quoted 7 lines · Sage Weil
On Fri, 15 Apr 2016, Adam C. Emerson wrote: I'm not sure I'm convinced. The mon is doing way more than it should right now, but we are about to rip all/most of the PGMonitor work out of ceph-mon and move it into ceph-mgr. At that point, the OSDMap is a pretty small burden for the mon to manage. Even if we have clusters that are 2 orders of magnitude larger (100,000 OSDs), that's maybe a 100MB data structure at most. Why do we need to partition it?
Quoted 3 lines
Clients keeping 100MB of state just to talk to the cluster seems a bit much to me, especially if we ever want anything embedded to be able to use it.
Fair enough
Quoted 3 lines
Also, it's not just the size. One worry is how well the monitor will be able to hold up if we have a bunch of OSDs going up and down at a fast rate (which becomes a bit more likely the bigger our clusters get.)
but this bit at least I don't worry about much. The only piece that does worry me is the newish feature where the mon is calculating all mappings to prime the pg_temp mappings, but this is trivially parallel: I think we can leverage many cores here (vs doing the signle-threaded loop we do now).
Quoted 20 lines
Quoted 12 lines
I get that pools are heavyweight, but I think that derivse from the fact that it is a *placement* function, and we *want* placement to be an administrative property, not a tentant/user property that can proliferate. Placement should depend on the hardware that comprises the cluster, and that doesn't change so quickly, and the scale does not change quickly. Tenants want to create their own workspaces to do their thing, but I think needs to remain a slice within the existing placement primitives so they do't have direct control. e.g., rados namespaces, or something more powerful if we need it, because we'll have anywhere from 1 tenant to a million tenants, and we can't have them spamming the cluster placement topology.
Quoted 7 lines
At least, I think that's true on the OSD side of things. On the client side, might make sense to limit the client's view to certain pools. Maybe.
Anyway, assuming we have some tenant primitive (like namespace slice of a pool), I don't see the motivation for the huge complexity of breaking apart OSDMap. What am I missing?
Quoted 7 lines
Three things, I think. Please tell me if I'm missing anything obvious or getting anything wrong.
First, the gigantic bullsey intersection between tennancy and placement would be cases where regulatory regimes or contracts require isolation. (The whole "My data can't be stored on the same disk as anyone else's data." thing.)
It seems like the sane way to handle this is pools-per-geopolitcal regulatory regime, which is a bounded set. If it comes down to tenant X doesn't like tenant Y (say, coke vs pepsi), it all falls apart, because we can quickly run out of possible placements. It kills the logical vs physical (virtualized) placement we have now. I suspect the way to deal with coke v pepsi is client-side encryption with different keys (that is, encryption above rados).
Quoted 4 lines
Second, I've always been working under the assumption that placement is a function of workload as well as hardware. At least there's a lot of interesting space in the 'placement function choice'/'workload optimization' intersection.
Hmm, this is true. I've been assuming the workload-informed placement would be a tier, not something within a pool. The fundamental rados property is that the map is enough to find your data... by it's *name*. The moment the placement depends on who wrote 'foo' (and not the name of 'foo') that doesn't work.
Once we move to something where the client decides where to write, you have explicit device ids, and some external metadata to track that.. and then the cluster can't automatically heal around failures or rebalance.
Quoted 6 lines
Third, I think Namespaces and Pools as you describe them miss a piece. Users almost always want to be able to make collections of objects that can be treated like a unit. Sure, RADOSGW can make buckets, but I don't think we want to base the fundamental design of our system around the idea that people will be using legacy protocols like S3.
What do you mean by 'treated as a unit'?
sage
Quoted 7 lines · Sage Weil
It seems like the sane way to handle this is pools-per-geopolitcal regulatory regime, which is a bounded set. If it comes down to tenant X doesn't like tenant Y (say, coke vs pepsi), it all falls apart, because we can quickly run out of possible placements. It kills the logical vs physical (virtualized) placement we have now. I suspect the way to deal with coke v pepsi is client-side encryption with different keys (that is, encryption above rados).
I'm not sure if that works. I do not play any kind of lawyer on TV. My understanding is that some regulatory regimes (like HIPAA) enforce a Coke vs. Pepsi problem against everyone and require the ability to rip a disk out and shred it. I apologizes if I'm mistaken, but I recall that being mentioned in a talk at SDC. In that case it seems like the only thing you'd be able to do is carve up little subclusters for hospitals or anyone else with similar requirements that they get and nobody else does.
Quoted 10 lines
Hmm, this is true. I've been assuming the workload-informed placement would be a tier, not something within a pool. The fundamental rados property is that the map is enough to find your data... by it's *name*. The moment the placement depends on who wrote 'foo' (and not the name of 'foo') that doesn't work.
Once we move to something where the client decides where to write, you have explicit device ids, and some external metadata to track that.. and then the cluster can't automatically heal around failures or rebalance.
I think this might be an argument for the 'allow lots and lots of pools' case. That if you assume each tennant owns a given pool, who wrote it is part of the object 'name' (even if not the object ID) and can be used to select a set of placement rules.
Adjacent to this, I've thought it would be natural for a placer to take both the poolid (or maybe a pool specific UUID, something that might be more robustly permanent) as well as the OID. That way if you did have a 'lots and lots of pools' case multiple pools using the same set of rules wouldn't have everything with the same name go to the same place.
Quoted 1 line
What do you mean by 'treated as a unit'?
I mean, to be able to address a set of objects as a data set. Right now I can give pools a name. But pools are heavy and, currently, we don't want people making more of them. If I'm an auto company I might have several datasets I'm interested in like CurrentOrders PastAccounts PossiblySillyPlan. Even if they all have exactly the same placement, I would like to be able to enumerate PastAccounts and get all the objects or decide PossiblySillyPlan is DefinitelySilly and delete all the objects by just that name or, if I had some other Ceph cluster, to have a management tool that would allow me to copy the 'PastAccounts' dataset into another cluster.
These are all things Pools can do now, except we don't want people creating too many pools.
I think a natural way to solve this problem might be to take all the placement/erasureCoding configuration of a pool out of the pool and make it a PoolClass or PoolType and then make lots of pools each of which just references a PoolClass or PoolType. Especially if you combine it with the idea above of having a pool identifier get fed into your placer.
Signature · 3 lines
Senior Software Engineer Red Hat Storage, Ann Arbor, MI, US
IRC: Aemerson@{RedHat, OFTC, Freenode}
0x80F7544B90EDBFB9 E707 86BA 0C1B 62CC 152C 7C12 80F7 544B 90ED BFB9Quoted 34 lines · Adam C. Emerson
Quoted 7 lines · Sage Weil
It seems like the sane way to handle this is pools-per-geopolitcal regulatory regime, which is a bounded set. If it comes down to tenant X doesn't like tenant Y (say, coke vs pepsi), it all falls apart, because we can quickly run out of possible placements. It kills the logical vs physical (virtualized) placement we have now. I suspect the way to deal with coke v pepsi is client-side encryption with different keys (that is, encryption above rados).
I'm not sure if that works. I do not play any kind of lawyer on TV. My understanding is that some regulatory regimes (like HIPAA) enforce a Coke vs. Pepsi problem against everyone and require the ability to rip a disk out and shred it. I apologizes if I'm mistaken, but I recall that being mentioned in a talk at SDC. In that case it seems like the only thing you'd be able to do is carve up little subclusters for hospitals or anyone else with similar requirements that they get and nobody else does.
Quoted 10 lines
Hmm, this is true. I've been assuming the workload-informed placement would be a tier, not something within a pool. The fundamental rados property is that the map is enough to find your data... by it's *name*. The moment the placement depends on who wrote 'foo' (and not the name of 'foo') that doesn't work.
Once we move to something where the client decides where to write, you have explicit device ids, and some external metadata to track that.. and then the cluster can't automatically heal around failures or rebalance.
I think this might be an argument for the 'allow lots and lots of pools' case. That if you assume each tennant owns a given pool, who wrote it is part of the object 'name' (even if not the object ID) and can be used to select a set of placement rules.
Quoted 6 lines
Adjacent to this, I've thought it would be natural for a placer to take both the poolid (or maybe a pool specific UUID, something that might be more robustly permanent) as well as the OID. That way if you did have a 'lots and lots of pools' case multiple pools using the same set of rules wouldn't have everything with the same name go to the same place.
It already does? pg id is a function of both the hash and pool id.
hash(object_name) % pg_num -> ps ("placement seed") (ps, poolid) -> pgid (hashpspool or ps+poolid) crush(pgid) -> [set of osds]
Thanks,
Ilya
Quoted 9 lines · Adam C. Emerson
Quoted 7 lines · Sage Weil
It seems like the sane way to handle this is pools-per-geopolitcal regulatory regime, which is a bounded set. If it comes down to tenant X doesn't like tenant Y (say, coke vs pepsi), it all falls apart, because we can quickly run out of possible placements. It kills the logical vs physical (virtualized) placement we have now. I suspect the way to deal with coke v pepsi is client-side encryption with different keys (that is, encryption above rados).
Quoted 8 lines
I'm not sure if that works. I do not play any kind of lawyer on TV. My understanding is that some regulatory regimes (like HIPAA) enforce a Coke vs. Pepsi problem against everyone and require the ability to rip a disk out and shred it. I apologizes if I'm mistaken, but I recall that being mentioned in a talk at SDC. In that case it seems like the only thing you'd be able to do is carve up little subclusters for hospitals or anyone else with similar requirements that they get and nobody else does.
I guess if you have a tenant with a hardware-level requirement (i.e., I must have dedicated disks), then the number of such tenants is bounded by the scale of your cluster (in terms of disks), and using pools (as they exist now) is fine.
Quoted 11 lines
Quoted 10 lines
Hmm, this is true. I've been assuming the workload-informed placement would be a tier, not something within a pool. The fundamental rados property is that the map is enough to find your data... by it's *name*. The moment the placement depends on who wrote 'foo' (and not the name of 'foo') that doesn't work.
Once we move to something where the client decides where to write, you have explicit device ids, and some external metadata to track that.. and then the cluster can't automatically heal around failures or rebalance.
Quoted 4 lines
I think this might be an argument for the 'allow lots and lots of pools' case. That if you assume each tennant owns a given pool, who wrote it is part of the object 'name' (even if not the object ID) and can be used to select a set of placement rules.
If it's part of the name, it can be part of the pool too. I.e., little real difference between <pool=foo object=bar> and <pool=overhere object=foo/bar>. Except that you can't migrate the user to pool=overthere independently... that requires per-tenant metadata at the clsuter level, which is exactly what we want to avoid.
Unless.. we really flip things around and make the mapping process non-atomic. Right now if I have OSDMap I can map anything. If OSDMap were just the root of a process that may require multiple network lookups and indirections to get to something that will let me find my data, then that is a whole 'nother thing. Do we want to go there?
Quoted 20 lines
Adjacent to this, I've thought it would be natural for a placer to take both the poolid (or maybe a pool specific UUID, something that might be more robustly permanent) as well as the OID. That way if you did have a 'lots and lots of pools' case multiple pools using the same set of rules wouldn't have everything with the same name go to the same place.
Quoted 1 line
What do you mean by 'treated as a unit'?
I mean, to be able to address a set of objects as a data set. Right now I can give pools a name. But pools are heavy and, currently, we don't want people making more of them. If I'm an auto company I might have several datasets I'm interested in like CurrentOrders PastAccounts PossiblySillyPlan. Even if they all have exactly the same placement, I would like to be able to enumerate PastAccounts and get all the objects or decide PossiblySillyPlan is DefinitelySilly and delete all the objects by just that name or, if I had some other Ceph cluster, to have a management tool that would allow me to copy the 'PastAccounts' dataset into another cluster.
Quoted 2 lines
These are all things Pools can do now, except we don't want people creating too many pools.
Pool namespaces can do all of these things too. The only thing you *can't* do with namespaces is enumerate them (natively). I.e., there isn't a registry of namespaces. Any namespace consumer can do that on its own, or we could cooperatively maintain a namespace registry in rados somewhere, but, again, we don't have global per-tenant (i.e. per-namespace) metadata in the OSDMap, so they don't have to be 'created' before being used.
The other main namespace limitation is that enumerating objects within a namespace is O(size of pool) not O(size of namespace). I still think this is okay, given that rados enumeration tends to be an administrative action. We could add some additional metadata to the ObjectStore backend to accellerate this, though, if we changed our mind.
Quoted 6 lines
I think a natural way to solve this problem might be to take all the placement/erasureCoding configuration of a pool out of the pool and make it a PoolClass or PoolType and then make lots of pools each of which just references a PoolClass or PoolType. Especially if you combine it with the idea above of having a pool identifier get fed into your placer.
This... is sort of what pools and namespaces do now, except that a namepsace isn't created or destroy and doesn't have properties. Which is what we need (from an OSDMap perspective) in order to avoid bounding the number of tenants.
Are there properties/capabilities that we're missing?
sage
Hi,
----- Original Message -----
Quoted 4 lines
Quoted 4 lines
Second, I've always been working under the assumption that placement is a function of workload as well as hardware. At least there's a lot of interesting space in the 'placement function choice'/'workload optimization' intersection.
A lot of the CohortFS work after incorporating Ceph was indeed about adapting Ceph abstractions to provide first-class support for workload and tenant isolation, it is for me difficult to imagine not needing this in a system that addresses the problems Ceph does, at the intended scale.
Quoted 6 lines
Hmm, this is true. I've been assuming the workload-informed placement would be a tier, not something within a pool. The fundamental rados property is that the map is enough to find your data... by it's *name*. The moment the placement depends on who wrote 'foo' (and not the name of 'foo') that doesn't work.
Tiers are great, but they represent another compositional primitive, not an alternative to an ability to fundamentally construct the data/server aggregate
In addition to workload, there is isolation. While geopolitical/regulatory scale segregation is important in cloud, more fine-grained isolation of all different kinds is important for policy contorl within data centers.
I'm restricting myself to just a few points in this discussion for now, I am transiting an airport.
Regards,
Matt
Signature · 10 lines
Matt Benjamin Red Hat, Inc. 315 West Huron Street, Suite 140A Ann Arbor, Michigan 48103 http://www.redhat.com/en/technologies/storage tel. 734-707-0660 fax. 734-769-8938 cel. 734-216-5309
Quoted 20 lines · Matt Benjamin
----- Original Message -----
Quoted 4 lines
Quoted 4 lines
Second, I've always been working under the assumption that placement is a function of workload as well as hardware. At least there's a lot of interesting space in the 'placement function choice'/'workload optimization' intersection.
A lot of the CohortFS work after incorporating Ceph was indeed about adapting Ceph abstractions to provide first-class support for workload and tenant isolation, it is for me difficult to imagine not needing this in a system that addresses the problems Ceph does, at the intended scale.
Quoted 6 lines
Hmm, this is true. I've been assuming the workload-informed placement would be a tier, not something within a pool. The fundamental rados property is that the map is enough to find your data... by it's *name*. The moment the placement depends on who wrote 'foo' (and not the name of 'foo') that doesn't work.
Quoted 3 lines
Tiers are great, but they represent another compositional primitive, not an alternative to an ability to fundamentally construct the data/server aggregate
I keep getting stuck on something here, I think, that is keeping me from following the logic. Maybe someone else can tell what it is?
I think I understand what you mean by 'fundamentally construct teh data/server aggregate'. Maybe you want distributed replicated globally shared foo. Maybe you want low-latency immutable bar (new pool type). But maybe you want more direct layout control over these 16 nvme cards over here, and the ability to define a tenant policy that let's me use it. Part of me thinks if you want direct control over layout, don't use ceph--just access those cards directly (stripe with dm or something). But maybe you do want global/shared access. In that case, you want Ceph involved. If you want isolation but shared access, pools are fine--we are talking about hardware and are O(size of cluster). If you are O(tenants), you can't have hardware-level isolation, and namespaces work.
Maybe my hang-up is that you're thinking about things that aren't shared, or aren't redundant (e.g., this locally attached nvme card on a client node)? Or maybe we're missing a portable abstraction for a local-y thing. Like, I am a user on host A and want local-dataset-A on this local nvme. But if I move, I want to seamlessly migrate that dataset to my new host B. That we can't do.. because it means *global* naming/indirection for a per-tenant thing. If we have a small enough number of tenants that we can use a pool, all is well. But if we want man tenants to be able to do this, namespaces in their current form aren't sufficient.
Quoted 3 lines
In addition to workload, there is isolation. While geopolitical/regulatory scale segregation is important in cloud, more fine-grained isolation of all different kinds is important for policy contorl within data centers.
Again, it *seems* like the isolation you're talking about is hardware-level, which is O(size of cluster), and can be addressed by pools. Beyond that, we also want *virtual isolation* (i.e., QoS), which we'll be tackling with something like dmclock.
Maybe a concrete example of how one might 'fundamentally construct a data/server aggregate' would be helpful?
Not trying to be difficult, just trying to understand the what and why.
Thanks!
sage