redhat 6.4(64位)下HAproxy+Keepalived 负载均衡架构搭建 联系客服

发布时间 : 星期三 文章redhat 6.4(64位)下HAproxy+Keepalived 负载均衡架构搭建更新完毕开始阅读7614fbab050876323012120d

virtual_router_id 51 priority 100 advert_int 1 authentication { auth_type PASS auth_pass 1111 }

track_script { chk_haproxy }

virtual_ipaddress { 192.168.10.3 } }

备机keepalived配置文件:

! Configuration File for keepalived global_defs {

router_id LVA_DEVEL }

vrrp_script chk_haproxy {

script \ interval 2 weight 2 }

vrrp_instance VI_1 { state BACKUP interface bond0 virtual_router_id 51 priority 99 advert_int 1 authentication { auth_type PASS auth_pass 1111 }

track_script { chk_haproxy }

virtual_ipaddress { 192.168.10.3 } }