r/openstack • u/red_nibia • 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.
What's a minimum in terms of hardware for a full non-production cluster that runs well? Preferably lower energy consumption hardware like NUCs.
Can/should I add some of my current hardware into the cluster(5 raspberry pi 4s with 8gb, 2 NAS units)?
Do I need everything right away or can I start minimal and add more nodes over time?
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.
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.
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.
probably you can, but someone may give you a proper response
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)
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:
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.
Intra-node 10gig networking minimum.
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.
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.
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.
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.