Configuring HA Proxy for high availability

The steps in the preceding recipe configure a two-node HA Proxy setup that we can use as a MariaDB endpoint to place in our OpenStack configuration files. Having a single HA Proxy acting as a Load Balancer to a highly available multimaster cluster is not recommended, as the Load Balancer then becomes our single point of failure. To overcome this, we can simply install and configure keepalived, which gives us the ability to share a FloatingIP address between our HA Proxy servers. This allows us to use this FloatingIP address as the address to use for our OpenStack services.

Getting ready

Log in to the two HA Proxy servers created in the previous recipe as root.

How to do it...

As we have two identical HA Proxy ...

Get OpenStack Cloud Computing Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.