Issue link: https://read.uberflip.com/i/1334488
Chapter 11 237 This recipe represents two nodes running both Glance and Keystone, controlled by Pacemaker with Corosync in active/passive mode, that allows for a failure of a single node. In a production environment, it is recommended that a cluster consist of at least three nodes to ensure resiliency and consistency in the case of a single node failure. Getting ready We must first create two servers configured appropriately for use with OpenStack. As these two servers will just be running Keystone and Glance, only a single network interface and address on the network that our OpenStack services communicate on will be required. This interface can be bonded for added resilience. How to do it... To increase the resilience of OpenStack services, carry out the following steps: First node (openstack1) 1. Once Ubuntu has been installed with an address in our OpenStack environment that our other OpenStack services can use to communicate, we can proceed to install Pacemaker and Corosync, as follows: sudo apt-get update sudo apt-get -y install pacemaker corosync 2. It's important that our two nodes know each other by address and hostname, so enter their details in /etc/hosts to avoid DNS lookups, as follows: 172.16.0.1 openstack1.cloud.test openstack1 172.16.0.2 openstack2.cloud.test openstack2 3. Edit the /etc/corosync/corosync.conf file so the interface section matches the following: interface { # The following values need to be set based on your environment ringnumber: 0 bindnetaddr: 172.16.0.0 mcastaddr: 226.94.1.1 mcastport: 5405 } Corosync uses multi-cast. Ensure the values don't conflict with any other multi-cast-enabled services on your network. www.it-ebooks.info

