r/openstack • • 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! :)

8 Upvotes

5 comments sorted by

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.

1

u/bunananas Aug 05 '19

Guess I wil be running ceph then. :) I have a total of 4 nodes. 3 'big' ones (dell r720) and a supermicro NAS. So I want the 3 'big' nodes to do everything and be essentially the same. So 3x ceph with the 2TB ssd storage, nova, keystone, cinder, neutron, galera, ha-proxy, rabbitmq etc. But I only want to be running VMs on my 2TB and want to use the NAS for glance / backups only since my 2TB SSD storage isn't a lot. So if the NAS fails images/backups will the an issue but the VMs will keep running.

The openstack ansible project uses lxc containers to run the control plane. I was hoping this would avoid the dependency hell. Will this work?

3

u/deeohohdeeohoh Aug 05 '19

Yes, it definitely will solve the dependency hell to a point. In the latest version of OSA, the core of Nova services, pip repos, Galera, RabbitMQ, memcached and Neutron Server will live in their own containers. Nova-Compute and the Neutron-{everythingbut-server}-agent will live on the baremetal side of things. Haproxy will also live on the baremetal and can be setup with keepalived through OSA on your control-plane.

I will say that you will most likely have to tweak the default overrides to much smaller settings to avoid OOM killing if you're going to run all those services. I work with OSA as well as OSP and 128G of RAM is a bit lacking for control-plane ONLY nodes that are configured with default settings.

The link I provided is to tweak it upwards. You may want to play with those numbers until you find a suitable threshold for your situation.

1

u/bunananas Aug 06 '19

Thanks, I will try it and take a look at the workers ed!

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.