keepalived官網解釋
# default IP for binding vrrpd is the primary IP # on interface. If you want to hide the location of vrrpd, # use this IP as src_addr for multicast or unicast vrrp # packets. (since it's multicast, vrrpd will get the reply # packet no matter what src_addr is used). # optional mcast_src_ip <IPADDR> unicast_src_ip <IPADDR>
如果兩節點的上聯交換機允許組播,采用組播模式(默認)
mcast_src_ip 發送多播包的地址,如果不設置默認使用綁定網卡的primary ip
如果兩節點的上聯交換機禁用了組播,則只能采用vrrp單播通告的方式
###########################
unicast_src_ip xx.xx.xx.xx
unicast_peer {
xx.xx.xx.xx
}
#############################

關於keepalived監測腳本的WARNING:
Unsafe permissions found for script '/etc/keepalived/check_mysql.sh'.
SECURITY VIOLATION - scripts are being executed but script_security not enabled. There are insecure scripts.


Keepalived兩節點出現雙VIP的情況
https://www.cnblogs.com/netonline/archive/2017/10/09/7642595.html
keepalived 配置文件參數詳解
https://blog.csdn.net/mofiu/article/details/76644012
https://www.cnblogs.com/along1226/p/5027838.html
MySQL共享存儲主備模式利用Keepalived實現雙機高可用
http://blog.51cto.com/7424593/1893767
keepalived Unsafe permissions found for script
http://old.gebiji.com/2016/12/21/ka-warning-default-user/
How do I enable: script_security?
https://github.com/acassen/keepalived/issues/901
Keepalived+Nginx架構整理版
https://linuxeye.com/448.html
LVS的原理介紹
https://www.cnblogs.com/along1226/p/5014363.html
轉自
作者:Bogon
鏈接:https://www.jianshu.com/p/7c709c3be4a9
來源:簡書
著作權歸作者所有。商業轉載請聯系作者獲得授權,非商業轉載請注明出處。