Modèle:Config/Keepalived/TcpCheck

De wiki.infini
Révision datée du 27 février 2015 à 15:56 par import>Fleon
  • DNS : cname
  • VIP : xxx.xxx.xxx.xxx
  • PORT : port
  • BACKEND : backend_1 -> xxx.xxx.xxx.xxx / backend_1 -> xxx.xxx.xxx.xxx


File hostname ~ nano /etc/keepalived/keepalived.conf
... #################################################### ## Description du service porté par le load balancer virtual_server xxx.xxx.xxx.xxx port { delay_loop 6 lb_algo rr lb_kind DR protocol TCP persistence_timeout 0 real_server xxx.xxx.xxx.xxx port { weight 1 TCP_CHECK { connect_port port connect_timeout 5 nb_get_retry 5 delay_before_retry 2 } } real_server xxx.xxx.xxx.xxx port { weight 1 TCP_CHECK { connect_port port connect_timeout 5 nb_get_retry 5 delay_before_retry 2 } } }