r/homelab•
Legogris

Storage in a distributed container environment

Discussion

(Crossposted on r/datahoarder, was told it's more appropriate here)

I am in the process of setting up a cluster to run various workloads with Docker (using Nomad/Consul, but should be similar considerations to kubernetes/Docker Swarm/what have you) 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 comes to stuff like this. Seen BeeGFS come up but it doesn't seem they are slated for CSI compliance)

Posted Feb 4, 2020, 5:05 PM UTC

127
Loading comments…