Update KeepAlived Multi Instance v1.4.4

Update Config Keepalived v1.4.4



global_defs {
 router_id haproxy2
}

vrrp_script haproxy {
        script "/usr/bin/killall -0 haproxy"
        interval 2
#        weight 3
}

vrrp_script sentinel {
        script "/etc/keepalived/scripts/redis_check.sh"
        interval 2
#        weight 2
}

vrrp_instance HAP_225 {
        state MASTER
        interface eth0
        virtual_router_id 225
        priority 100
        advert_int 1
        authentication {
                auth_type PASS
                auth_pass PASSNYAAPA
        }
 virtual_ipaddress {
                172.17.200.225
        }
 track_interface {
                eth0 weight 2
        }
 track_script {
                haproxy
        }
}

 vrrp_instance SNT_220 {
        state BACKUP
        interface eth0
        virtual_router_id 220
        priority 99
        advert_int 1
        authentication {
                auth_type PASS
                auth_pass PASSNYAAPA
        }
 virtual_ipaddress {
                172.17.200.220
        }
 track_interface {
                eth0 weight 2
        }
 track_script {
                sentinel
        }
}
Category: , ,
Reaksi: 

0 komentar:

Post a Comment