r/openstack • u/bunananas • Aug 05 '19
A 3-node HA setup?
When I search for 3-node Openstack setup's most of the time they talk about controller/network/compute. I have three nodes with each 20 cores, 128GB ram, 10Gbit network and 2TB of ssd storage. Is it possible and a good idea to deploy everything on each node and make a HA-cluster? My servers have fencing capabilities.
So the idea is to:
- run Nova on every node
- run all the controller stuff on every node
- run network on every node
- run ceph/gluster on every node (for HA storage)
I would like to use my single node 30TB NAS for swift (how bad is it if it fails?). Currently I use gluster but I noticed that the cinder plugin for gluster is no longer maintained. Is it best to go with ceph then?
Lots of questions, thanks! :)
2
u/DMRv2 Aug 27 '19
I currently have 3x8 core Atom nodes with 32gb RAM and configured them all to be:
Ceph MONs, MGRs, and OSDs (public on one NIC/VLAN, cluster on another)
MariaDB Gallera cluster members (using the ceph cluster NIC/VLAN)
RabbitMQ cluster members (using the ceph cluster NIC/VLAN)
Memcached nodes (using the ceph cluster NIC/VLAN)
I use my home router (also Intel Atom) as firewall in front of the cluster... and a HAproxy node. It does all the URL rewriting and proxying for dashboards and admin control panels for services like Ceph and RMQ.
At this point, I can tolerate a loss in any cluster member and everything remains redundant; no package dependency issues and everything runs on bare metal in just a tad over 1gig of RAM.
As for the actual OpenStack services, I was contemplating buying a couple RPi4 with 4GB of RAM and hosting Keystone, Glance, Cinder, Nova, Neutron, and Horizon/nginx on them. The RPis will do *nothing* but run OpenStack services... so no worries about dependency issues; just wipe 'em clean and rebaseline to pickup new OpenStack versions.
3
u/deeohohdeeohoh Aug 05 '19
Personally, I wouldn't use Gluster since the documentation out there is more sparse than Ceph at this point due to amount of adoption. If you're using Ceph, there's really no reason to have Swift since Swift can be used as only object storage and/or a Glance backend. However, Ceph can be object (using Swift API), Glance backend, Cinder Backend, Nova backend.
How many nodes do you have if you count the 3 nodes, gluster and NAS? Is the NAS more like commodity server or a NetAPP? If it's a large commodity server or something you can install Ubuntu/CentOS/etc on, you might as well make it another compute node or a standalone Ceph node.
Ideally, I'd do a 3 node control plane, 3 node Ceph cluster and the rest compute nodes. You could get away with 1 node control-plane but if we're talking redundancy then that's an issue because ideally you want 3 nodes for quorum with RabbitMQ and Galera. You could also just do a single Ceph node and expand later but again no redundancy with only 1 node. Using Ceph as a Nova backend allows you to more-smoothly live-migrate instances than if they're on local storage as you really only need to worry about the memory copy portion of the live- migration.
You can do what you're talking about by putting all services on the 3 nodes but a lot could go wrong and if you install a package that puts you in dependency hell such as installing mixes of python packages via apt and pip, then you can break services.