r/openstack • u/[deleted] • Jul 09 '18
OpenStack High Availability Guidance...
So the official HA guide for OpenStack kinda sucks. I get that HA gets complicated and that installations are varied, so it's a tough subject. That being said, I'm trying to build a resilient OpenStack environment with redundant compute nodes and I seem to be lacking decent resources. Anyone know of a good guide? My Google-Fu seems to be failing.
What I'm struggling with is that some services are stateless, so active-active are fine. Others have to be active-passive, but there's little information on how to go about this...
For example: Glance-registry is apparently something that needs to be active/passive. If I add a bunch of images, these files get place onto my controller system in the /usr/lib/glance/images directory. But if I want redundancy, these files need to exist on all my controller nodes right? Do I just have to rsync these directories? What happens if I have two controllers both running the glance-registry service at once?
The HA guide walks you through installing and using Corosync and Pacemaker, but some of the commands aren't working and others are for Redhat systems and not Ubuntu systems. I need a decent guide to understanding Pacemaker so that I can troubleshoot these issues... Anyone got something like that?
Cinder: I followed the installation guide to build a single cinder server, but how do I go about building a second to mirror the first? (The HA guide failed me here as well for the reasons listed above...)
I feel like I'm down a rabbit hole here and there really should be SOMETHING out there discussing how to get at least reasonable redundancy out of an OpenStack build...
Thanks for any help you can provide. Also, is there a better place to ask these sort of questions? This doesn't seem to be a wildly popular subreddit...
3
u/kultsinuppeli Jul 10 '18
There's always
https://ask.openstack.org/
I haven't used it much, but at least there's a ton of questions on it.
Basically the rule of thumb is, anything that stores data you have to figure out how to make redundant. So Glance data storage, cinder data storage, the database, swift (built in redundant design).
Modern HA data storage is not trivial. Your best bet is Ceph, it's the de-facto standard storage backend for OpenStack, but it needs some scale. Ceph can also provide SWIFT/S3 interfaces. Another option is e.g. glusterfs. You can always buy a storage appliance that provides what you need (NetAPP NFS?).
Glance: Configure Ceph or Swift as a backend
Cinder: Configure Ceph as a backend or configure another thing that provides redundant storage as a backend.
Database: Use MariaDB Galera, and you have replicated your DB. It's not too hard to set up.
Now your control plane is basically stateless. Your state lies in the DB, and on SWIFT/Ceph/whatever volume driver you use. All openstack services themselves are basically stateless.
Then you just have to decide on how to route traffic only to active nodes. For any control plane nodes pacemaker + shared service IP works ok. However, if you have some control over the network, BGP+round robin DNS would probably be better.
For the galera DB nodes we use a HAProxy on each node that talks to the database. The services talk to localhost. The local HAProxy has health checking on the database and routes the queries to a DB server that is up.
Finally you have the ingress/egress traffic and routers. You have some options here like HA Routes or DVR or using a SDN which supports redundancy out of the box.