Skip to content
Snippets Groups Projects
Commit 024d7653 authored by SamYaple's avatar SamYaple
Browse files

Use nopreempt for keepalived

Without this option the vip will always bounce to the highest priority
node that is up. So if you reboot the highest priority node the vip
will fail to the second highest. When the highest priority node
recovers it will claim the vip again leaving you will two fail overs
rather than one.

TrivialFix

Change-Id: I4a3c6c10eee391cdbdd80c44a71a9fafd1069944
parent e4829471
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,8 @@ vrrp_script check_alive { ...@@ -6,7 +6,8 @@ vrrp_script check_alive {
} }
vrrp_instance kolla_internal_vip { vrrp_instance kolla_internal_vip {
state MASTER state BACKUP
nopreempt
interface {{ api_interface }} interface {{ api_interface }}
virtual_router_id 51 virtual_router_id 51
priority {{ groups['haproxy'].index(inventory_hostname) + 1 }} priority {{ groups['haproxy'].index(inventory_hostname) + 1 }}
...@@ -25,7 +26,8 @@ vrrp_instance kolla_internal_vip { ...@@ -25,7 +26,8 @@ vrrp_instance kolla_internal_vip {
{% if haproxy_enable_external_vip | bool %} {% if haproxy_enable_external_vip | bool %}
vrrp_instance kolla_external_vip { vrrp_instance kolla_external_vip {
state MASTER state BACKUP
nopreempt
interface {{ kolla_external_vip_interface }} interface {{ kolla_external_vip_interface }}
virtual_router_id 52 virtual_router_id 52
priority {{ groups['haproxy'].index(inventory_hostname) + 1 }} priority {{ groups['haproxy'].index(inventory_hostname) + 1 }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment