After Deprec

openstack_cloud_computing_cookbook

Issue link: https://read.uberflip.com/i/1334488

Contents of this Issue

Navigation

Page 245 of 317

Chapter 11 235 11. With keepalived now running on our first HA Proxy server, which we have designated as the MASTER node, we repeat the previous steps for our second HA Proxy server with only two changes to the keepalived.conf file (state BACKUP and priority 100) to give the complete file on our second host the following contents: vrrp_script chk_haproxy { script "killall -0 haproxy" # verify the pid exists or not interval 2 # check every 2 seconds weight 2 # add 2 points if OK } vrrp_instance VI_1 { interface eth1 # interface to monitor state BACKUP virtual_router_id 51 # Assign one ID for this route priority 100 # 101 on master, 100 on backup virtual_ipaddress { 172.16.0.30 # the virtual IP } track_script { chk_haproxy } } 12. Start up keepalived on this second node, and they will be acting in co-ordination with each other. So if you powered off the first HA Proxy server, the second will pick up the floating IP address, 172.16.0.30, after two seconds, and new connections can be made to our MySQL cluster without disruption. OpenStack Configuration using a floating IP address With both HA Proxy servers running the same HA Proxy configuration, and with both running keepalived, we can use the virtual_ipaddress address (our floating IP address) configured as the address that we would then connect to and use in our configuration files. In OpenStack, we would change the following to use our floating IP address of 172.16.0.30: /etc/nova/nova.conf --sql_connection=mysql://nova:openstack@172.16.0.30/nova /etc/keystone/keystone.conf [sql] connection = mysql://keystone:openstack@172.16.0.30/keystone /etc/glance/glance-registry.conf sql_connection = mysql://glance:openstack@172.16.0.30/glance www.it-ebooks.info

Articles in this issue

Links on this page

Archives of this issue

view archives of After Deprec - openstack_cloud_computing_cookbook