Skip to contentSkip to conversation

ceph and efficient access of distributed resources

DISCUSSION Matthias Urlichs 8 participants 15 messages Apr 12, 2013 – Apr 17, 2013

lore
Share & tools
lore
#0 lore raw

As I understand it, in Ceph one can cluster storage nodes, but otherwise every node is essentially identical, so if three storage nodes have a file, ceph randomly uses one of them.

This is not efficient use of network resources in a distributed data center. Or even in a multi-rack situation.

I want to prefer accessing nodes which are "local".
The client in rack A should prefer to read from the storage nodes that are also in rack A.
Ditto for rack B.
Ditto for s/rack/data center/.

As far as I understand, the Ceph clients can't do that.
(Nor can Ceph nodes among each other, but I care less about that, as most traffic is reading data.)

I think this is an important feature for many high-reliability situations.

What would be the next steps to get this feature, assuming I don't have time to implement it myself? Persistently annoy this mailing list that people need it? Offer to pay for implementing it? Shut up and look for some other solution -- which I already did, but I didn't find any that's as good as Ceph, otherwise?

I've opened a feature request for this, half a year ago, which hasn't seen any comments yet: http://tracker.ceph.com/issues/3249

-- Matthias Urlichs

#1 lore raw
Quoted 3 lines · Matthias Urlichs

As I understand it, in Ceph one can cluster storage nodes, but otherwise every node is essentially identical, so if three storage nodes have a file, ceph randomly uses one of them.

Ceph clusters have the concept of pools, where each pool has a certain number of placement groups. Placement groups are just collections of mappings to OSDs. Each PG has a primary OSD and a number of secondary ones, based on the replication level you set when you make the pool. When an object gets written to the cluster, CRUSH will determine which PG the data should be sent to. The data will first hit the primary OSD and then replicated out to the other OSDs in the same placement group.

Currently reads always come from the primary OSD in the placement group rather than a secondary even if the secondary is closer to the client. I'm guessing there are probably some tricks that could be played here to best determine which machines should service which clients, but it's not exactly an easy problem. In many cases spreading reads out over all of the OSDs in the cluster is better than trying to optimize reads to only hit local OSDs. Ideally you probably want to prefer local OSDs first, but not exclusively.

Quoted 14 lines

This is not efficient use of network resources in a distributed data center. Or even in a multi-rack situation.

I want to prefer accessing nodes which are "local".
The client in rack A should prefer to read from the storage nodes that are also in rack A.
Ditto for rack B.
Ditto for s/rack/data center/.

As far as I understand, the Ceph clients can't do that.
(Nor can Ceph nodes among each other, but I care less about that, as most traffic is reading data.)

Quoted 7 lines

I think this is an important feature for many high-reliability situations.

What would be the next steps to get this feature, assuming I don't have time to implement it myself? Persistently annoy this mailing list that people need it? Offer to pay for implementing it? Shut up and look for some other solution -- which I already did, but I didn't find any that's as good as Ceph, otherwise?

I don't really have that much insight into the product roadmap, but I assume that if you spoke to some of our business folks about paying for development work you'd at least get a response.

Quoted 3 lines

I've opened a feature request for this, half a year ago, which hasn't seen any comments yet: http://tracker.ceph.com/issues/3249

Sadly there's a lot of things we'd like to do and not enough time to do them. :( If we get a lot of requests for this from other people too, it might bump the priority up.

Quoted 8 lines

-- Matthias Urlichs

--
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

#2 lore raw

I was in the middle of writing a response to this when Mark's email came in, so I'll just add a few things:

Quoted 16 lines · Mark Nelson
Quoted 5 lines · Matthias Urlichs

As I understand it, in Ceph one can cluster storage nodes, but otherwise every node is essentially identical, so if three storage nodes have a file,
ceph randomly uses one of them.

Ceph clusters have the concept of pools, where each pool has a certain number of placement groups. Placement groups are just collections of mappings to OSDs. Each PG has a primary OSD and a number of secondary ones, based on the replication level you set when you make the pool. When an object gets written to the cluster, CRUSH will determine which PG the data should be sent to. The data will first hit the primary OSD and then replicated out to the other OSDs in the same placement group.

Quoted 7 lines

Currently reads always come from the primary OSD in the placement group rather than a secondary even if the secondary is closer to the client. I'm guessing there are probably some tricks that could be played here to best determine which machines should service which clients, but it's not exactly an easy problem. In many cases spreading reads out over all of the OSDs in the cluster is better than trying to optimize reads to only hit local OSDs. Ideally you probably want to prefer local OSDs first, but not exclusively.

In addition to just determining the locality (which we've started on via external interfaces), this has a number of consistency challenges associated with it. The infrastructure we have to allow reading from non-primaries tends to involve clients having different consistency expectations, and it's not fully explored yet or set up so that clients can choose to read from a specific non-primary — the options currently are "local if available and we can tell", "random", and "primary".

Quoted 9 lines
Quoted 9 lines

This is not efficient use of network resources in a distributed data center.
Or even in a multi-rack situation.

I want to prefer accessing nodes which are "local".
The client in rack A should prefer to read from the storage nodes that are also in rack A.
Ditto for rack B.
Ditto for s/rack/data center/.

I do want to ask if you're sure this is as useful as you think it is. There are use cases where it would be, but since writes have to traverse these links (at a multiple of the actual write count) as well you should be very certain. :)

Quoted 14 lines
Quoted 4 lines

As far as I understand, the Ceph clients can't do that.
(Nor can Ceph nodes among each other, but I care less about that, as most traffic is reading data.)

Quoted 8 lines

I think this is an important feature for many high-reliability situations.

What would be the next steps to get this feature, assuming I don't have time
to implement it myself? Persistently annoy this mailing list that people need it? Offer to pay for implementing it? Shut up and look for some other solution -- which I already did, but I didn't find any that's as good as Ceph, otherwise?

Quoted 3 lines

I don't really have that much insight into the product roadmap, but I assume that if you spoke to some of our business folks about paying for development work you'd at least get a response.

Yeah. It's not a feature in large enough demand right now that we can see to be worth bumping up over other things, but I don't think anybody's opposed to it existing. As with Mark I have no idea if you're best off asking us or others to do things for money, but it would certainly have to go through business channels. (If somebody outside Inktank did want to implement this feature, I'd love to talk to them about it on an informal but ongoing basis during development.) -Greg
Software Engineer #42 @ http://inktank.com | http://ceph.com
--
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

#3 lore raw

We are also discussing this internally, and come out with an idea to walk around it(Only for RBD case,havent think about Obj store),but not yet tested. If Mark and Greg can provide some feedback,that would be great.

We are trying to write a script to generate some pools,for rack A,there is a pool A,which defined the crush ruleset to choose Osd in rackA as the primary.so if we have 10 racks,we will have 10 pools and 10 rules.

When the VM migrated to other rack,or the volume be detached and attached to another VM hosted in other rack,a data migration is needed.we are thinking about how to smooth such migration

发自我的 iPhone

Quoted 84 lines · 在 2013-4-13,0:20,"Gregory Farnum" <[email protected]> 写道:

I was in the middle of writing a response to this when Mark's email came in, so I'll just add a few things:

Quoted 16 lines · Mark Nelson
Quoted 5 lines · Matthias Urlichs

As I understand it, in Ceph one can cluster storage nodes, but otherwise every node is essentially identical, so if three storage nodes have a file,
ceph randomly uses one of them.

Ceph clusters have the concept of pools, where each pool has a certain number of placement groups. Placement groups are just collections of mappings to OSDs. Each PG has a primary OSD and a number of secondary ones, based on the replication level you set when you make the pool. When an object gets written to the cluster, CRUSH will determine which PG the data should be sent to. The data will first hit the primary OSD and then replicated out to the other OSDs in the same placement group.

Quoted 7 lines

Currently reads always come from the primary OSD in the placement group rather than a secondary even if the secondary is closer to the client. I'm guessing there are probably some tricks that could be played here to best determine which machines should service which clients, but it's not exactly an easy problem. In many cases spreading reads out over all of the OSDs in the cluster is better than trying to optimize reads to only hit local OSDs. Ideally you probably want to prefer local OSDs first, but not exclusively.

In addition to just determining the locality (which we've started on via external interfaces), this has a number of consistency challenges associated with it. The infrastructure we have to allow reading from non-primaries tends to involve clients having different consistency expectations, and it's not fully explored yet or set up so that clients can choose to read from a specific non-primary — the options currently are "local if available and we can tell", "random", and "primary".

Quoted 9 lines
Quoted 9 lines

This is not efficient use of network resources in a distributed data center.
Or even in a multi-rack situation.

I want to prefer accessing nodes which are "local".
The client in rack A should prefer to read from the storage nodes that are also in rack A.
Ditto for rack B.
Ditto for s/rack/data center/.

I do want to ask if you're sure this is as useful as you think it is. There are use cases where it would be, but since writes have to traverse these links (at a multiple of the actual write count) as well you should be very certain. :)

Quoted 14 lines
Quoted 4 lines

As far as I understand, the Ceph clients can't do that.
(Nor can Ceph nodes among each other, but I care less about that, as most traffic is reading data.)

Quoted 8 lines

I think this is an important feature for many high-reliability situations.

What would be the next steps to get this feature, assuming I don't have time
to implement it myself? Persistently annoy this mailing list that people need it? Offer to pay for implementing it? Shut up and look for some other solution -- which I already did, but I didn't find any that's as good as Ceph, otherwise?

Quoted 3 lines

I don't really have that much insight into the product roadmap, but I assume that if you spoke to some of our business folks about paying for development work you'd at least get a response.

Yeah. It's not a feature in large enough demand right now that we can see to be worth bumping up over other things, but I don't think anybody's opposed to it existing. As with Mark I have no idea if you're best off asking us or others to do things for money, but it would certainly have to go through business channels. (If somebody outside Inktank did want to implement this feature, I'd love to talk to them about it on an informal but ongoing basis during development.) -Greg
Software Engineer #42 @ http://inktank.com | http://ceph.com
--
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

#4 lore raw

Yeah, this is very much like DreamHost is doing with their DreamCompute installation (you can find some talks about it online, I believe, though I'm not sure how much detail they include there versus in the Q&As).

Quoted 5 lines · Xiaoxi

We are also discussing this internally, and come out with an idea to walk around it(Only for RBD case,havent think about Obj store),but not yet tested. If Mark and Greg can provide some feedback,that would be great.

We are trying to write a script to generate some pools,for rack A,there is a pool A,which defined the crush ruleset to choose Osd in rackA as the primary.so if we have 10 racks,we will have 10 pools and 10 rules.

When the VM migrated to other rack,or the volume be detached and attached to another VM hosted in other rack,a data migration is needed.we are thinking about how to smooth such migration

This is one of the use cases that layering is designed to handle (in addition to standard cloning and snapshots). Just create a clone that lives in the new pool, and either let it copy-up to the new position lazily or run the command at a time when you know your network is less busy.
-Greg
Software Engineer #42 @ http://inktank.com | http://ceph.com

Quoted 89 lines

发自我的 iPhone

Quoted 84 lines · 在 2013-4-13,0:20,"Gregory Farnum" <[email protected]> 写道:

I was in the middle of writing a response to this when Mark's email came in, so I'll just add a few things:

Quoted 16 lines · Mark Nelson
Quoted 5 lines · Matthias Urlichs

As I understand it, in Ceph one can cluster storage nodes, but otherwise every node is essentially identical, so if three storage nodes have a file,
ceph randomly uses one of them.

Ceph clusters have the concept of pools, where each pool has a certain number of placement groups. Placement groups are just collections of mappings to OSDs. Each PG has a primary OSD and a number of secondary ones, based on the replication level you set when you make the pool. When an object gets written to the cluster, CRUSH will determine which PG the data should be sent to. The data will first hit the primary OSD and then replicated out to the other OSDs in the same placement group.

Quoted 7 lines

Currently reads always come from the primary OSD in the placement group rather than a secondary even if the secondary is closer to the client. I'm guessing there are probably some tricks that could be played here to best determine which machines should service which clients, but it's not exactly an easy problem. In many cases spreading reads out over all of the OSDs in the cluster is better than trying to optimize reads to only hit local OSDs. Ideally you probably want to prefer local OSDs first, but not exclusively.

In addition to just determining the locality (which we've started on via external interfaces), this has a number of consistency challenges associated with it. The infrastructure we have to allow reading from non-primaries tends to involve clients having different consistency expectations, and it's not fully explored yet or set up so that clients can choose to read from a specific non-primary — the options currently are "local if available and we can tell", "random", and "primary".

Quoted 9 lines
Quoted 9 lines

This is not efficient use of network resources in a distributed data center.
Or even in a multi-rack situation.

I want to prefer accessing nodes which are "local".
The client in rack A should prefer to read from the storage nodes that are also in rack A.
Ditto for rack B.
Ditto for s/rack/data center/.

I do want to ask if you're sure this is as useful as you think it is. There are use cases where it would be, but since writes have to traverse these links (at a multiple of the actual write count) as well you should be very certain. :)

Quoted 14 lines
Quoted 4 lines

As far as I understand, the Ceph clients can't do that.
(Nor can Ceph nodes among each other, but I care less about that, as most traffic is reading data.)

Quoted 8 lines

I think this is an important feature for many high-reliability situations.

What would be the next steps to get this feature, assuming I don't have time
to implement it myself? Persistently annoy this mailing list that people need it? Offer to pay for implementing it? Shut up and look for some other solution -- which I already did, but I didn't find any that's as good as Ceph, otherwise?

Quoted 3 lines

I don't really have that much insight into the product roadmap, but I assume that if you spoke to some of our business folks about paying for development work you'd at least get a response.

Yeah. It's not a feature in large enough demand right now that we can see to be worth bumping up over other things, but I don't think anybody's opposed to it existing. As with Mark I have no idea if you're best off asking us or others to do things for money, but it would certainly have to go through business channels. (If somebody outside Inktank did want to implement this feature, I'd love to talk to them about it on an informal but ongoing basis during development.) -Greg
Software Engineer #42 @ http://inktank.com | http://ceph.com
--
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

#5 lore raw

Thanks Gerg.
Technically speaking, it's still workable that someone may even want to make such policy "per node".

Quoted 109 lines · 在 2013-4-16,0:42,"Gregory Farnum" <[email protected]> 写道:

Yeah, this is very much like DreamHost is doing with their DreamCompute installation (you can find some talks about it online, I believe, though I'm not sure how much detail they include there versus in the Q&As).

Quoted 5 lines · Xiaoxi

We are also discussing this internally, and come out with an idea to walk around it(Only for RBD case,havent think about Obj store),but not yet tested. If Mark and Greg can provide some feedback,that would be great.

We are trying to write a script to generate some pools,for rack A,there is a pool A,which defined the crush ruleset to choose Osd in rackA as the primary.so if we have 10 racks,we will have 10 pools and 10 rules.

When the VM migrated to other rack,or the volume be detached and attached to another VM hosted in other rack,a data migration is needed.we are thinking about how to smooth such migration

This is one of the use cases that layering is designed to handle (in addition to standard cloning and snapshots). Just create a clone that lives in the new pool, and either let it copy-up to the new position lazily or run the command at a time when you know your network is less busy.
-Greg
Software Engineer #42 @ http://inktank.com | http://ceph.com

Quoted 89 lines

发自我的 iPhone

Quoted 84 lines · 在 2013-4-13,0:20,"Gregory Farnum" <[email protected]> 写道:

I was in the middle of writing a response to this when Mark's email came in, so I'll just add a few things:

Quoted 16 lines · Mark Nelson
Quoted 5 lines · Matthias Urlichs

As I understand it, in Ceph one can cluster storage nodes, but otherwise every node is essentially identical, so if three storage nodes have a file,
ceph randomly uses one of them.

Ceph clusters have the concept of pools, where each pool has a certain number of placement groups. Placement groups are just collections of mappings to OSDs. Each PG has a primary OSD and a number of secondary ones, based on the replication level you set when you make the pool. When an object gets written to the cluster, CRUSH will determine which PG the data should be sent to. The data will first hit the primary OSD and then replicated out to the other OSDs in the same placement group.

Quoted 7 lines

Currently reads always come from the primary OSD in the placement group rather than a secondary even if the secondary is closer to the client. I'm guessing there are probably some tricks that could be played here to best determine which machines should service which clients, but it's not exactly an easy problem. In many cases spreading reads out over all of the OSDs in the cluster is better than trying to optimize reads to only hit local OSDs. Ideally you probably want to prefer local OSDs first, but not exclusively.

In addition to just determining the locality (which we've started on via external interfaces), this has a number of consistency challenges associated with it. The infrastructure we have to allow reading from non-primaries tends to involve clients having different consistency expectations, and it's not fully explored yet or set up so that clients can choose to read from a specific non-primary — the options currently are "local if available and we can tell", "random", and "primary".

Quoted 9 lines
Quoted 9 lines

This is not efficient use of network resources in a distributed data center.
Or even in a multi-rack situation.

I want to prefer accessing nodes which are "local".
The client in rack A should prefer to read from the storage nodes that are also in rack A.
Ditto for rack B.
Ditto for s/rack/data center/.

I do want to ask if you're sure this is as useful as you think it is. There are use cases where it would be, but since writes have to traverse these links (at a multiple of the actual write count) as well you should be very certain. :)

Quoted 14 lines
Quoted 4 lines

As far as I understand, the Ceph clients can't do that.
(Nor can Ceph nodes among each other, but I care less about that, as most traffic is reading data.)

Quoted 8 lines

I think this is an important feature for many high-reliability situations.

What would be the next steps to get this feature, assuming I don't have time
to implement it myself? Persistently annoy this mailing list that people need it? Offer to pay for implementing it? Shut up and look for some other solution -- which I already did, but I didn't find any that's as good as Ceph, otherwise?

Quoted 3 lines

I don't really have that much insight into the product roadmap, but I assume that if you spoke to some of our business folks about paying for development work you'd at least get a response.

Yeah. It's not a feature in large enough demand right now that we can see to be worth bumping up over other things, but I don't think anybody's opposed to it existing. As with Mark I have no idea if you're best off asking us or others to do things for money, but it would certainly have to go through business channels. (If somebody outside Inktank did want to implement this feature, I'd love to talk to them about it on an informal but ongoing basis during development.) -Greg
Software Engineer #42 @ http://inktank.com | http://ceph.com
--
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

#6 lore raw
In reply to Mark Nelson

2013/4/12 Mark Nelson <[email protected]>

Quoted 3 lines

Currently reads always come from the primary OSD in the placement group rather than a secondary even if the secondary is closer to the client.

In this way, only one OSD will be involved in reading an object, this will result in a bottleneck if multiple clients needs to access to the same file.

For example, a 3KB CSS file served by a webserver to 400 users, will be read just from one OSD. 400 users directed to 1 OSD while (in case of replica 3) other 2 OSDs are available?

#7 lore raw
Quoted 6 lines · Gandalf Corvotempesta

2013/4/12 Mark Nelson <[email protected]>

Quoted 3 lines

Currently reads always come from the primary OSD in the placement group rather than a secondary even if the secondary is closer to the client.

Quoted 6 lines

In this way, only one OSD will be involved in reading an object, this will result in a bottleneck if multiple clients needs to access to the same file.

For example, a 3KB CSS file served by a webserver to 400 users, will be read just from one OSD. 400 users directed to 1 OSD while (in case of replica 3) other 2 OSDs are available?

Yes. Consistency across the cluster is dependent on this scheme, currently.

#8 lore raw

If I correctly understand the discussion, you are correct that I/O could be saved by doing this ... were it not for the fact the I/O in question is already being saved much more effectively by someone else.

The entire web is richly festooned with cache servers whose sole raison d'etre is to solve precisely this problem. They are so good at it that back-bone providers often find it more cash-efficient to buy more cache servers than to lay more fiber. Cache servers don't merely save disk I/O, they catch these requests before they reach the server (or even the backbone).

Quoted 14 lines · Gandalf Corvotempesta
Quoted 13 lines
Quoted 4 lines

Currently reads always come from the primary OSD in the placement group rather than a secondary even if the secondary is closer to the client.

In this way, only one OSD will be involved in reading an object, this will
result in a bottleneck if multiple clients needs to access to the same file.

For example, a 3KB CSS file served by a webserver to 400 users, will be read just from one OSD. 400 users directed to 1 OSD while (in case of replica 3) other 2 OSDs are available?

#9 lore raw

2013/4/16 Mark Kampe <[email protected]>:

Quoted 7 lines

The entire web is richly festooned with cache servers whose sole raison d'etre is to solve precisely this problem. They are so good at it that back-bone providers often find it more cash-efficient to buy more cache servers than to lay more fiber. Cache servers don't merely save disk I/O, they catch these requests before they reach the server (or even the backbone).

Mine was just an example, there are many other cases where a frotnend cache is not possible.
I think that ceph should spread reads across the whole clusters by default (like a big RAID-1), to archieve bandwidth improvement.

Glusters does this, and also MooseFS.

What happens in case of a big file (for example, 100MB) with multiple chunks? Is ceph smart enough to read multiple chunks from multiple servers simultaneously or the whole file will be served by just an OSD ?

#10 lore raw
Quoted 14 lines · Gandalf Corvotempesta

2013/4/16 Mark Kampe <[email protected]>:

Quoted 7 lines

The entire web is richly festooned with cache servers whose sole raison d'etre is to solve precisely this problem. They are so good at it that back-bone providers often find it more cash-efficient to buy more cache servers than to lay more fiber. Cache servers don't merely save disk I/O, they catch these requests before they reach the server (or even the backbone).

Mine was just an example, there are many other cases where a frotnend cache is not possible.
I think that ceph should spread reads across the whole clusters by default (like a big RAID-1), to archieve bandwidth improvement.

Quoted 6 lines

Glusters does this, and also MooseFS.

What happens in case of a big file (for example, 100MB) with multiple chunks? Is ceph smart enough to read multiple chunks from multiple servers simultaneously or the whole file will be served by just an OSD ?

Yes. The readahead window grows to include a few objects to take advantage of parallelism for reads.

The problem with reading from random/multiple replicas by default is cache efficiency. If every reader picks a random replica, then there are effectively N locations that may hae an object cached in RAM (instead of on disk), and the caches for each OSD will be about 1/Nth as effective. The only time in makes sense to read from replicas is when you are CPU or network limited; the rest of the time it is better to read from the primary's cache than a replica's disk.

Unfortunately at the librados level, the client doesn't generally know that. The infrastructure is in place for the MDS (or librados user) to indicate when reads from replicas are safe, but a bit more work is needed to make the client code utilize that information. It's not a difficult improvement, and loadiness could also be communicated back to clients on a per-osd session basis, but it's not implemented yet.

sage

#11 lore raw
In reply to Gandalf Corvotempesta
Quoted 9 lines · Gandalf Corvotempesta

2013/4/16 Mark Kampe <[email protected]>:

Quoted 7 lines

The entire web is richly festooned with cache servers whose sole raison d'etre is to solve precisely this problem. They are so good at it that back-bone providers often find it more cash-efficient to buy more cache servers than to lay more fiber. Cache servers don't merely save disk I/O, they catch these requests before they reach the server (or even the backbone).

Quoted 4 lines

Mine was just an example, there are many other cases where a frotnend cache is not possible.
I think that ceph should spread reads across the whole clusters by default (like a big RAID-1), to archieve bandwidth improvement.

At my previous distributed storage start-up (Parascale) we had the ability to distribute reads across copies for load distribution purposes and everybody we talked to said "who cares!". Why?

For hot-spot situations (as in your original example) higher level caching is far more effective than random traffic distribution.

For lower level (e.g. coincidental) reuse, sending all the requests to a single server will usually perform better. Network I/O is much faster than disk I/O, and a single recipient will have N * the cache hit rate that N servers would have.

Quoted 3 lines

What happens in case of a big file (for example, 100MB) with multiple chunks? Is ceph smart enough to read multiple chunks from multiple servers simultaneously or the whole file will be served by just an OSD

RADOS is the underlying storage cluster, but the access methods (block, object, and file) stripe their data across many RADOS objects, which CRUSH very effectively distributes across all of the servers. A 100MB read or write turns into dozens of parallel operations to servers all over the cluster.

#12 lore raw

2013/4/16 Mark Kampe <[email protected]>:

Quoted 5 lines

RADOS is the underlying storage cluster, but the access methods (block, object, and file) stripe their data across many RADOS objects, which CRUSH very effectively distributes across all of the servers. A 100MB read or write turns into dozens of parallel operations to servers all over the cluster.

Let me try to explain.
AFAIK check will split datas into chunks of 4MB each, so, a single 12MB file will be stored in 3 different chunks across multiple OSDs and then replicated many times (based on value of replica count)

Let's assume a 12MB file and a 3x replica.
RADOS will create 3x3 chuks for the same file stored on 9 OSDs

When reading AFAIK replicas are not used, so all reads are done to the "master copy".
But these 3 chunks are read in parallel on multiple OSDs or all read request are done trough a single OSD? In the first case we will have 3x bandwidth for read operations directed to a file with at least 3 chunks, in the latter we have a big bottleneck.

#13 lore raw

The client does a 12MB read, which (because of the striping) gets broken into 3 separate 4MB reads, each of which is sent, all in parallel, to 3 distinct OSDs. The only bottle-neck in such an operation is the client-NIC.

Quoted 21 lines · Gandalf Corvotempesta

2013/4/16 Mark Kampe <[email protected]>:

Quoted 5 lines

RADOS is the underlying storage cluster, but the access methods (block, object, and file) stripe their data across many RADOS objects, which CRUSH very effectively distributes across all of the servers. A 100MB read or write turns into dozens of parallel operations to servers all over the cluster.

Let me try to explain.
AFAIK check will split datas into chunks of 4MB each, so, a single 12MB file will be stored in 3 different chunks across multiple OSDs and then replicated many times (based on value of replica count)

Let's assume a 12MB file and a 3x replica.
RADOS will create 3x3 chuks for the same file stored on 9 OSDs

When reading AFAIK replicas are not used, so all reads are done to the "master copy".
But these 3 chunks are read in parallel on multiple OSDs or all read request are done trough a single OSD? In the first case we will have 3x bandwidth for read operations directed to a file with at least 3 chunks, in the latter we have a big bottleneck.

#14 lore raw

Il giorno 16/apr/2013 22:44, "Mark Kampe" <[email protected]> ha scritto:

Quoted 5 lines

The client does a 12MB read, which (because of the striping) gets broken into 3 separate 4MB reads, each of which is sent, all in parallel, to 3 distinct OSDs. The only bottle-neck in such an operation is the client-NIC.

Thank you, now it's clear.