keepalived非抢占模式


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
nopreempt #关闭VIP抢占,需要VIP state都为BACKUP
vrrp_instance VI_1 {
state BACKUP ####
interface eth0
virtual_router_id 80
priority 100
advert_int 1
nopreempt ########## 配在优先级高的机器上
vrrp_instance VI_1 {
state BACKUP ######
interface eth0
virtual_router_id 80
priority 90
advert_int 1
nopreempt ##########33