(à la main/scripts)
DNS Round Robin
matériel réseau
IP virtuelle (VIP)
# /etc/keepalived/keepalived.conf
global_defs {
notification_email {
user@my.domain.tld
}
notification_email_from root@master
smtp_server 1.2.3.4
}
vrrp_instance vip_haproxy {
advert_int 1
authentication {
auth_pass P4ssW0rD/
auth_type PASS
}
interface eth1
smtp_alert true
priority 100
state MASTER
virtual_ipaddress {
192.168.100.100
}
virtual_router_id 50
}
global_defs { ... }
vrrp_script chk_nginx_service {
script "killall -0 nginx"
interval 1
}
vrrp_instance vip_haproxy {
...
virtual_router_id 50
track_script {
chk_nginx_service
}
}