GlusterFS in a distributed container environment
I am in the process of setting up a cluster to run various workloads with Docker (using Nomad/Consul) and trying to figure out best practice on distributing storage.
Goal: A cluster of various ARM-based SBCs with a couple of larger x86/64 units. The nodes should be like cattle so I can replace them easily with spares and not have to do recovery in the event of hardware failure on individual nodes (including their storage). Being able to add new disks of various sizes as I go to expand space is required.
I'm thinking to use GlusterFS, where jobs can claim particular volumes and jobs on different nodes will need to access the same data, but only have access to what's relevant to their particular jobs.
Now; is it a good idea to try to have each (or some of) individual worker nodes be connected to a physical disk to take part in Gluster or is it better advised to have the storage on dedicated nodes and have worker nodes access the storage purely over the network? Is there a significant performance trade-off here? If anyone's running Gluster with Nomad/k8s it would be interesting to hear your setups.
My current idea is to treat Gluster as any other job and have it run in Docker containers on nomad on nodes as I attach disks to them. There is a repo with Dockerfiles here: https://github.com/gluster/gluster-containers
Is there any reason I might not want to do that? (Or should I really read up more on ZFS - haven't wrapped my head around exactly what its capabilities and limitations are when it come sto stuff like this)
Posted Feb 4, 2020, 3:44 PM UTC · edited