ceph for small cluster?
Hi Folks,
I'm wondering how ceph would work in a small cluster that supports a mix of engineering and modest production (email, lists, web server for several small communities).
Specifically, we have a rack with 4 medium-horsepower servers, each with 4 disk drives, running Xen (debian dom0 and domUs) - all linked together w/ 4 gigE ethernets.
Currently, 2 of the servers are running a high-availability configuration, using DRBD to mirror specific volumes, and pacemaker for failover.
For a while, I've been looking for a way to replace DRBD with something that would mirror across more than 2 servers - so that we could migrate VMs arbitrarily - and that will work without splitting up compute vs. storage nodes (for the short term, at least, we're stuck with rack space and server limitations).
The thing that looks closest to filling the bill is Sheepdog (at least architecturally) - but it only provides a KVM interface. GlusterFS, xTreemFS, and Ceph keep coming up as possibles - with ceph's rbd interface looking like the easiest to integrate.
Which leads me to two questions:
- On a theoretical level, does using ceph as a storage pool for this kind of small cluster make any sense (notably, I'd see running an OSD, a MDS, a MON, and client DomUs on each of the 4 nodes, using LVM to pool all the storage and it seems like folks recommend XFS as a production filesystem)
- On a practical level, has anybody tried building this kind of small cluster, and if so, what kind of results have you had?
Comments and suggestions please!
Thank you very much,
Miles Fidelman
Signature · 2 lines
In theory, there is no difference between theory and practice. In practice, there is. .... Yogi Berra
Hi,
Quoted 25 lines · Miles Fidelman
Hi Folks,
I'm wondering how ceph would work in a small cluster that supports a mix of engineering and modest production (email, lists, web server for several small communities).
Specifically, we have a rack with 4 medium-horsepower servers, each with 4 disk drives, running Xen (debian dom0 and domUs) - all linked together w/ 4 gigE ethernets.
Currently, 2 of the servers are running a high-availability configuration, using DRBD to mirror specific volumes, and pacemaker for failover.
For a while, I've been looking for a way to replace DRBD with something that would mirror across more than 2 servers - so that we could migrate VMs arbitrarily - and that will work without splitting up compute vs. storage nodes (for the short term, at least, we're stuck with rack space and server limitations).
The thing that looks closest to filling the bill is Sheepdog (at least architecturally) - but it only provides a KVM interface. GlusterFS, xTreemFS, and Ceph keep coming up as possibles - with ceph's rbd interface looking like the easiest to integrate.
Quoted 8 lines
Which leads me to two questions:
- On a theoretical level, does using ceph as a storage pool for this kind of small cluster make any sense (notably, I'd see running an OSD, a MDS, a MON, and client DomUs on each of the 4 nodes, using LVM to pool all the storage and it seems like folks recommend XFS as a production filesystem)
Yes, that could work. But you have to keep in mind that OSDs can spike in both CPU and memory when they have to do recovery work for a failed node/OSD.
Also, with RBD you don't need an MDS. As a last note, you should always have an odd number of monitors. So run a monitor on 3 of the 4 machines.
The monitors work by a voting principle where they need a majority. An odd number is best in that situation.
Quoted 3 lines
- On a practical level, has anybody tried building this kind of small cluster, and if so, what kind of results have you had?
I build some small Ceph cluster with sometimes just 3 nodes. It works, but you have to keep in mind that when one node in a 4 node cluster fails you will loose 25% of the capacity.
This will lead to a heavy recovery within the Ceph cluster which will but a lot of pressure on that Gbit links and the CPUs and memory of the nodes.
With RBD you might want to consider adding an SSD for the journaling of the OSDs, that will give you a pretty nice performance boost.
Wido
Quoted 6 lines
Comments and suggestions please!
Thank you very much,
Miles Fidelman
A message that is not in the archive (sent off-list or not yet received): CADXA5U1ATB+1baCfBSHmzozRe3m-HhLxHQr3be1-dASgABPQYw@mail.gmail.com
Matt, Thanks for the comments. A follow-up if I might (inline):
Quoted 1 line · Matthew Roy
What I'm not doing that you'd need to test is running VMs on the same servers as storage. I'd be careful about mounting RBD volumes on the OSDs, you can run into kernel deadlock trying to write out things to physical disk when trying to write to the mounted volume. Mounts inside VMs should be okay.
I was thinking of running pinning one CPU to DomO and running the OSD from there, and mounting RBD volumes only in DomUs. And leaving a bit of disk space outside the OSD for booting and Dom0.
Which raises another question: how are you combining drives within each OSD (raid, lvm, ?).
Thanks again,
Miles
Signature · 2 lines
In theory, there is no difference between theory and practice. In practice, there is. .... Yogi Berra
Quoted 4 lines · Miles Fidelman
Which raises another question: how are you combining drives within each OSD (raid, lvm, ?).
I'm not combining them, just running an OSD per data disk. On this cluster it's 2 disks for each of the 3 nodes. I ended up that way only because I added the second disk to each node after getting started. There was an inktank blog post not too long ago about the performance of RAID'ed disks on OSDs that might provide quantitative justification for which route to go.
Like Wido suggests, I also use a shared SSD for journal on each node. The journal's not really about speeding recovery from failed OSDs/disks, it's about being able to ACK writes faster and still retain integrity when Bad Things happen. If you're RAIDing with a battery-backed cache I think you can run without a journal, but I don't know the details on that.
Matthew
Quoted 14 lines · Matthew Roy
Quoted 4 lines · Miles Fidelman
Which raises another question: how are you combining drives within each OSD (raid, lvm, ?).
I'm not combining them, just running an OSD per data disk. On this cluster it's 2 disks for each of the 3 nodes. I ended up that way only because I added the second disk to each node after getting started. There was an inktank blog post not too long ago about the performance of RAID'ed disks on OSDs that might provide quantitative justification for which route to go.
Quoted 7 lines
Like Wido suggests, I also use a shared SSD for journal on each node. The journal's not really about speeding recovery from failed OSDs/disks, it's about being able to ACK writes faster and still retain integrity when Bad Things happen. If you're RAIDing with a battery-backed cache I think you can run without a journal, but I don't know the details on that.
That depends on the RAID controller. Some (like Areca I think) cache O_DIRECT writes in their write cache, but other still flush them directly to the disks although they have a cache with BBU.
I'd try to prevent using any RAID system with Ceph. Let the replication handle everything. The less hardware and complexity you add, the less can fail.
Wido
Quoted 6 lines
Matthew
--
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