now that we have multiple keepaliveds use different router ids

This commit is contained in:
Kevin Fenzi 2016-10-17 21:23:58 +00:00
parent 53c0e45d2f
commit cac473a076
7 changed files with 9 additions and 1 deletions

View file

@ -47,3 +47,4 @@ effective_cache_size: "24GB"
keepalived_interface: eth0
keepalived_priority: 100
keepalived_ipaddress: 10.5.126.190/24
keepalived_routerid: 18

View file

@ -47,3 +47,5 @@ effective_cache_size: "24GB"
keepalived_interface: eth0
keepalived_priority: 50
keepalived_ipaddress: 10.5.126.190/24
keepalived_routerid: 18

View file

@ -14,6 +14,7 @@ datacenter: phx2
keepalived_interface: eth0
keepalived_priority: 100
keepalived_ipaddress: 10.5.125.63/24
keepalived_routerid: 17
nrpe_procs_warn: 900
nrpe_procs_crit: 1000

View file

@ -14,6 +14,7 @@ datacenter: phx2
keepalived_interface: eth0
keepalived_priority: 50
keepalived_ipaddress: 10.5.125.63/24
keepalived_routerid: 17
nrpe_procs_warn: 900
nrpe_procs_crit: 1000

View file

@ -48,3 +48,4 @@ effective_cache_size: "24GB"
keepalived_interface: eth0
keepalived_priority: 100
keepalived_ipaddress: 10.5.126.193/24
keepalived_routerid: 19

View file

@ -48,3 +48,5 @@ effective_cache_size: "24GB"
keepalived_interface: eth0
keepalived_priority: 50
keepalived_ipaddress: 10.5.126.193/24
keepalived_routerid: 19

View file

@ -13,7 +13,7 @@ vrrp_instance VI_1 {
interface {{ keepalived_interface }}
# arbitary unique number 0..255
# used to differentiate multiple instances of vrrpd
virtual_router_id 17
virtual_router_id {{ keepalived_routerid }}
# for electing MASTER, highest priority wins.
# to be MASTER, make 50 more than other machines.
priority {{ keepalived_priority }}