r/openstack • • Aug 21 '22

Home Openstack

I am interested in creating something for my home. This would include running a plex server, file storage, home automation, stuff like that. Maybe some machine learning training jobs.

I have a few questions.

  1. What's a minimum in terms of hardware for a full non-production cluster that runs well? Preferably lower energy consumption hardware like NUCs.

  2. Can/should I add some of my current hardware into the cluster(5 raspberry pi 4s with 8gb, 2 NAS units)?

  3. Do I need everything right away or can I start minimal and add more nodes over time?

  4. Should the hardware be something like a RAID array, roughly equal power or the weakest will slow everything down?

Apologies if I asked a bunch of nooby questions.

10 Upvotes

10 comments sorted by

5

u/Underknowledge Aug 22 '22

While Openstack is crazy fun, I would recommend you staying away from it except you wand hands on experience. (I had a Cluster at home) Openstack only makes really sense when you want multi tenancy. Otherwise your better of with proxmox or exis. Feel free to set it up anyway, but I mostly just burned power and space.

2

u/red_nibia Aug 25 '22

So I am coming from AWS land, and was hoping to create an event based home automation setup. Something like an eventbridge that listens to all the different components and then reacts with API calls back into the components based on the rules. In this sense, different serverless functions are actors in the system.

I totally understand this can be done in other ways, but I can't imagine another system where I could have total control and the abiliity to integrate all functionality in a functional reactive style. I also don't know proxmox or exis, am new to this space and my only experience is just running services directly on pis and nucs, or working in the cloud totally.

If I am going the totally wrong way about this, feel free to give insight.

2

u/[deleted] Sep 22 '22

was hoping to create an event based home automation setup. Something like an eventbridge that listens to all the different components and then reacts with API calls back into the components

OK, so the home automation is higher priority. Focus on that. Don't be like me and over-engineer, cart before the horse.

Plex runs in Docker, and on k3s. You can totally automate infra like k3s. You can even automate the bare metal stuff using Ansible, if you want. The 5 Pis you have will make a great setup.

Get what you want going quickly then you already have ideas to improve it. If you focus too low level to start, you're going to run out of time and/or energy and something else comes up.

You cal also leverage a free account at Oracle Cloud, you get enough free VMs to run k3s on their hardware.

2

u/[deleted] Oct 04 '22

Just to add: treat your infrastructure as a separate project from the things you want to run on it. Migrate a working plex server off your Pi or whatever, TO your working cloud. All successes become positive feedback: take the smallest bites.

I wasted SEVERAL weekends trying to install OpenStack via DevStack. This was 2020, maybe it's better now, but install always completed (I think) but nothing worked.

If your time is worth at least $25 an hour (and it should be! way more) I'd NOT try to do any of this on old hardware you have lying around. Get some advice for what you can buy for $500, and since this is "home" try to go silent.

The Qotom clone boards have all the Intel NIC ports you will need, and take 32-64GB RAM making them far far better systems than a "NUC".

4

u/Sepherjar Aug 22 '22

I plan to build a desktop that I will install Openstack to run some VMs (I want to practice cloud skills and have a gaming VM), and later buy a workstation to have 2 nodes.

  1. For hardware I'm not sure of what the system requirements should be, but it all depends on how you want to run your cluster. You have the Nova (which should be running in your physical host), Keystone and Neutron components that are needed. Then you have Cinder and Swift (optional components) for Block Storage and Object Storage (these ones I don't know if they can be virtualize or if they should run bare metal), and there are other components for metrics, containers, etc etc.

  2. probably you can, but someone may give you a proper response

  3. since Openstack is meant to build your own cloud, you can start small and then expand later, you just need to set up the hosts with the components you desire (nova for compute hosts, cinder/swift storage for storage)

  4. from my understanding, a raid array will work best, and the bottleneck is the slowest drive you have there. I wanted to install my host in an m2 nvme drive and have some SATA SSDs in a raid array, but looks like the m2 nvme drive will slowdown because of the SATA SSDs, so I think I'll have SATA SSDs only... Still, probably someone can correct me as this will be my very first homelab, and the second PC I've built in my life (first one was 10 years ago)

Also, there is no shame in asking questions, there's shame in not asking them and not learning anything new!

2

u/red_nibia Aug 22 '22

Any thoughts on if 5 Zimaboards is enough to run a full install?

2

u/_nembery Aug 22 '22

Those should work just fine tbh. Disk I/O will probably be your bottleneck so get the fastest disks you can

4

u/The_Valyard Aug 22 '22 edited Aug 22 '22

I would use rdo with the standalone role. It's the upstream version of Red Hat OpenStack and can be installed in a VM with 4 vcpu and 16gb of memory.

You can use their CI to fast build it (60 minute install on my laptop)

https://github.com/shiftstack/dev-install.

Basically have Centos or RHEL installed in a VM and point the ci build tool at it, come back in an hour and start playing.

What's cool is dev-install can also stand this up on metal if you want to run non nested VMs, again just have Centos or RHEL deployed on the target.

2

u/lmux Oct 01 '22

I do consulting for private cloud deployments professionally and runs a very small (12u) rack at home for dogfooding. My tl;dr for OP is to go to vmware or proxmox unless you want aws-like capability, e.g. self service guest network, floating ip, resource rate limit and billing, multi node, multi region, etc. These features are mostly for scale out and multi-tenancy, and will get you into the deep end in terms of $$ and know-how very quickly.

If the OP still wants to go on, here's some pointers:

  1. Avoid hardware raid like the plague. Openstack goes well with SDS solutions like ceph. You will need to invest in enterprise grade ssd for good IOPs.

  2. Intra-node 10gig networking minimum.

  3. You can get started with a single node and scale out, but you may need to tear down your cluster to upgrade. Realistically, for an aio system you are looking at min 64g ram and 8 modern xeon e3 cores. The control plane workload will consume ~12 gig and more than 4 cores. The idea is to get more nodes later on that will be controlled by your first node. So, no a nuc won't cut it except for demo purposes.

  4. Kolla ansible is very flexible and potentially a good starting point. You can play with it in a vm on your PC first. There are other options too with different focuses. In my case, I run a customized version of starlingx and openstack-helm.

  5. You can create a vm flavor with passthru access to your host usb controller, and hook your Pi to the usb. That way you can launch a vm with serial access to your pi. Not so sure about youe nas...maybe as nfs share?

1

u/red_nibia Oct 01 '22

Thank you for this insight.

I have looked at proxmox and not 100% sure if it can cover my ambitions. I am coming from AWS land and love the ability to create infrastructure as code and event driven systems tied together through an eventbus.

It sounds like having 3 nodes each with spec: 64g ram and 8 modern xeon e3 cores - connected through a 10GB switch on a 12u rack should give me a powerful enough install for my needs, with the ability to add more nodes if somehow one of my learning projects gets a market and needs to scale up, no?

I should also be able to add my current low power gear to this cluster to get a little failover resiliency and extra lower speed storage it sounds like, if I am understanding correctly, as long as they aren't used as the control node.