keepalived单播设置

具体的配置文件参考如下

10.88.0.28 为MFS的master节点之一

10.88.0.29 为MFS的master节点之一

10.88.0.111 为VIP

$ cat /soft/keepalived/etc/keepalived/keepalived.conf
! Configuration File for keepalived
global_defs {
  notification_email {
    root@localhost
    }
notification_email_from keepalived@localhost
smtp_server 127.0.0.1
smtp_connect_timeout 30
router_id mfsmaster-10.88.0.28-sz
}
vrrp_script chk_mfs {
  script "/soft/mfs/keepalived_check_mfsmaster.sh"
  interval 2
  weight 2
}
vrrp_instance VI_1 {
  state MASTER
  interface eth0
  virtual_router_id 51
  priority 100
  advert_int 1
  authentication {
    auth_type PASS
    auth_pass 1111
}
  track_script {
    chk_mfs
}
  unicast_src_ip 10.88.0.28
  unicast_peer {
        10.88.0.29
}
virtual_ipaddress {
    10.88.0.111
}
nopreempt
garp_master_delay 1
garp_master_refresh 5
notify_master "/etc/keepalived/clean_arp.sh 10.88.0.111"
}

keepalived单播设置

上一篇:delphi 发送消息控制滚动条


下一篇:RocketMQ-sendMessage