r/openstack • u/Eldiabolo18 • Nov 12 '24
High-Availability across Regions
What are the best practices for (application) high availability for multiple regions? What is the thought out scenarios for regions? should my application be living in multiple regions? If so, how do I make it reachable from multiple regions?
If an applikation should be contained to one Region, how would I migrate/recover an application in another region?
Is there a way do dynmically make FIPs available in another region when one fails? BGP can generally do that, but how do I make sure they are available in Openstack?
Last question is regarding mutliple region setup an keystone. At least in kolla ansible, there is only one keystone instance for all regions, so if the first region where keystone lives goes down, the auth-service for all regions also goes down. How can this be made HA?
1
u/amarao_san Nov 12 '24
You can't move an individual IP across regions. The minimum accepted in carrier grade BGP is /24, everything smaller will be filtered out by your providers or other peers.
So you need either sacrifice the whole /24 for be announcable, or, better, put distributed LB before your app and use healthchecks to balance.
3
u/Sinscerly Nov 12 '24
You've got a lot of questions. Keystone can be runned in multiple regions for HA, although you would need to sync the database everywhere which will give other problems. Another solution is to run federated openstack with seperate keystones. Although this will result in different openstack regions to config / reach out to manage.
You can run an application in both regions and have something like a floating ip between instances or dns bases load balancing
1
u/Loud_Web_7446 Nov 14 '24
You can maybe go for Something like Genestack [1] that allows you to run MetalLB [2] in BGP mode to leverage Loadblancer type Service to expose your application across regions. But on the network level you need to take care of :
- BGP routers in each region are peered and that routes can be advertised between them. This requires configuring the BGP routers in OpenStack to accept and propagate routes between regions, ensuring that traffic destined for the Kubernetes Floating IPs can traverse between regions.
- Be responsible about the Latency induced in MetalLB's inherant Load-Balancing capability.
This is an interesting question. Do let me know how it goes if you ever happen to implement it.
[1] https://github.com/cloudnull/genestack
[2] https://blog.rackspacecloud.com/blog/2024/11/05/running_metallb_on_openstack_flex