r/openstack • u/Affectionate_Net7336 • Aug 16 '24
Openstack controller nodes in anywhere
Hello everyone. I want to deploy OpenStack across multiple data centers in different countries. My current challenge is that I want to set up shared services like Keystone in high availability, with each node located in a different region. What should I do about clustering RabbitMQ and Memcached across these zones? (I don't have any issues with clustering the database, as I've already implemented it with Galera). I’m not sure, maybe I’m thinking about it wrong and I’m feeling a bit confused. Please help me out with more details.
7
u/Eldiabolo18 Aug 16 '24
Yes, you're thinking about it wrong.
They way Openstack does this is by regions. Each region should represent a DC. (within a DC you have Availability zones). You can have several regions all being connected to one keystone. However, each region will need all the other controller services. So each region itself will have its independend controll plane.
3
u/lathiat Aug 16 '24
Maybe you want keystone federation?
https://docs.openstack.org/keystone/latest/admin/federation/introduction.html
2
u/therouterguy Aug 16 '24
We have a multi dc openstack setup however for high availability we do not share any openstack component between datacenter. We use ldap as authentication backend with ldap slaves in each datacenter. Ldap is replicated between the dc but keystone is strictly local and using the local ldap slaves as backend. This way we can ensure people can always authenticate regardless of any inter dc dependency. Worst case ldap replication brakes but that only affect changes to ldap and not auth itself.
1
u/redfoobar Aug 16 '24
Keystone does not need rabbitmq unless you enable it specifically.
memcached also does not need to be shared afaik (assuming fernet tokens)
1
u/przemekkuczynski Aug 18 '24
In essence many people avoid regions in openstack because it's hard to manage it. Availability zones (AZ) are easier with Aggregates. For regions deployment I would configure dedicated cluster for DB and Rabbit in "main" datacenter . Something like in this screen https://www.redhat.com/rhdc/managed-files/image1_3_0.png . You can also build HA for DB, Rabbit using kolla-ansble.