Grid data placement
Hi everyone,
quick question: can I get ceph to replicate a bunch of files to every host in compute cluster and then have those hosts read those files from local disk?
TFM looks like a custom crush map should get the files to [osd on] every host, but I'm not clear on the read step: do I need an mds on every host and mount the fs off localhost's mds?
(We've $APP running on the cluster, normally one instance/cpu core, that mmap's (read only) ~30GB of binary files. I/O over NFS kills the cluster even with a few hosts. Currently the files are rsync'ed to every host at the start of the batch; that'll only scale to a few dozen hosts at best.)
TIA,
Signature · 3 lines
Dimitri Maziuk Programmer/sysadmin BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu
Quoted 6 lines · Dimitri Maziuk
Hi everyone,
quick question: can I get ceph to replicate a bunch of files to every host in compute cluster and then have those hosts read those files from local disk?
Quoted 8 lines
TFM looks like a custom crush map should get the files to [osd on] every host, but I'm not clear on the read step: do I need an mds on every host and mount the fs off localhost's mds?
(We've $APP running on the cluster, normally one instance/cpu core, that mmap's (read only) ~30GB of binary files. I/O over NFS kills the cluster even with a few hosts. Currently the files are rsync'ed to every host at the start of the batch; that'll only scale to a few dozen hosts at best.)
There's a "read from replicas" operation flag that allows reading data off the local node, although I don't think there's a way to turn it on in the standard filesystem clients right now. It wouldn't be hard for somebody to add. I'm not sure you actually need it though; Ceph unlike NFS distributes the data over all the OSDs in the cluster so you could scale the number of suppliers as you scale the number of consumers. You would definitely not need to run an MDS on each node; just one should be fine.
Rather more importantly however, Inktank still doesn't consider the CephFS filesystem to be production-ready, so you will want to tread with care in checking it out. :)
-Greg
Quoted 11 lines · Dimitri Maziuk
Quoted 8 lines · Gregory Farnum
There's a "read from replicas" operation flag that allows reading data off the local node, although I don't think there's a way to turn it on in the standard filesystem clients right now. It wouldn't be hard for somebody to add. I'm not sure you actually need it though; Ceph unlike NFS distributes the data over all the OSDs in the cluster so you could scale the number of suppliers as you scale the number of consumers. You would definitely not need to run an MDS on each node; just one should be fine.
Quoted 3 lines
At the start of the batch #cores-in-the-cluster processes try to mmap the same 2GB and start reading it from
SEEK_SETat the same time. I won't know until I try but I suspect it won't like that.
Well, it'll be #servers-in-cluster serving up 4MB chunks out of cache. It's possible you could overwhelm their networking but my bet is they'll just get spread out slightly on the first block and then not contend in the future.
Quoted 6 lines
Quoted 3 lines
Rather more importantly however, Inktank still doesn't consider the CephFS filesystem to be production-ready, so you will want to tread with care in checking it out.
I'm assuming Inktank will consider it production-ready at some point; wouldn't it be great if I had a tested working setup by then. ;-)
Just as long as you're thinking of it as a test system that would make us very happy. :)
-Greg
Quoted 10 lines · Gregory Farnum
Quoted 3 lines · Dimitri Maziuk
At the start of the batch #cores-in-the-cluster processes try to mmap the same 2GB and start reading it from
SEEK_SETat the same time. I won't know until I try but I suspect it won't like that.Well, it'll be #servers-in-cluster serving up 4MB chunks out of cache. It's possible you could overwhelm their networking but my bet is they'll just get spread out slightly on the first block and then not contend in the future.
In the future the application spreads out the reads as well: running instances go through the data at different speed, and when one's finished, the next one starts on the same core & it mmap's the first chunk again.
Quoted 2 lines
Just as long as you're thinking of it as a test system that would make us very happy. :)
Well, IRL this is throw-away data generated at the start of a batch, and we're good if one batch a month runs to completion. So if it doesn't crash all the time every time, that actually should be good enough for me. However, not all of the nodes have spare disk slots, so I couldn't do a full-scale deployment anyway, not without rebuilding half the nodes.
Signature · 3 lines
Dimitri Maziuk Programmer/sysadmin BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu
Quoted 17 lines · Dimitri Maziuk
Quoted 10 lines · Gregory Farnum
Quoted 3 lines · Dimitri Maziuk
At the start of the batch #cores-in-the-cluster processes try to mmap the same 2GB and start reading it from
SEEK_SETat the same time. I won't know until I try but I suspect it won't like that.Well, it'll be #servers-in-cluster serving up 4MB chunks out of cache. It's possible you could overwhelm their networking but my bet is they'll just get spread out slightly on the first block and then not contend in the future.
In the future the application spreads out the reads as well: running instances go through the data at different speed, and when one's finished, the next one starts on the same core & it mmap's the first chunk again.
Quoted 8 lines
Quoted 2 lines
Just as long as you're thinking of it as a test system that would make us very happy. :)
Well, IRL this is throw-away data generated at the start of a batch, and we're good if one batch a month runs to completion. So if it doesn't crash all the time every time, that actually should be good enough for me. However, not all of the nodes have spare disk slots, so I couldn't do a full-scale deployment anyway, not without rebuilding half the nodes.
In that case you are my favorite kind of user and you should install and try it out right away! :D
Quoted 4 lines · Gregory Farnum
There's a "read from replicas" operation flag that allows reading data off the local node, although I don't think there's a way to turn it on in the standard filesystem clients right now. It wouldn't be hard for somebody to add. I'm not sure you actually need it though
PS. it might be a useful switch to add anyway -- from the "better to have it and never use it" POV.
Signature · 3 lines
Dimitri Maziuk Programmer/sysadmin BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu