[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Keepalived: mensajes repetidos "Received advert from 172.18.88.143 with lower priority 103, ours 104, forcing new election"



Buenas tardes, tengo un servidor Debian 10.4 con un paquete keepalived
1:2.0.10-1.

Hice un failover con dos servidores Squid que anda muy bien, excepto
que por la noche generalmente el cluster switchea al nodo Backup.
Tanto en el nodo Master como en el Backup, los procesos squid no se
caen nunca, siempre estan activos, por lo cual el switcheo de master a
backup no es ocasionado por la caida del squid en el nodo master.

La configuracion es:

MASTER

global_defs {
   notification_email {
     dat@color.gob.ar
   }
   enable_script_security
   script_user root root
   notification_email_from keepalived@color.gob.ar
   smtp_server 172.18.88.14
   smtp_connect_timeout 30
   smtp_helo_name proxy-master.color.gob.ar
   }

vrrp_script chk_proxy {
      script "/usr/bin/killall -0 squid"
      interval 2
      weight 3
}

vrrp_instance VI_1 {
      interface ens32
      state MASTER
      virtual_router_id 51
      priority 101          # 101 on proxy-master, 100 on proxy-slave
      smtp_alert
      virtual_ipaddress {
           172.18.88.141
      }
      track_script {
           chk_proxy
      }
}

SLAVE

global_defs {
   notification_email {
     dat@color.gob.ar
   }
   enable_script_security
   script_user root root
   notification_email_from keepalived@color.gob.ar
   smtp_server 172.18.88.14
   smtp_connect_timeout 30
   smtp_helo_name proxy-slave.color.gob.ar
}

vrrp_script chk_proxy {
      script "/usr/bin/killall -0 squid"
      interval 2
      weight 3
}

vrrp_instance VI_1 {
      interface ens32
      state BACKUP
      virtual_router_id 51
      priority 100          # 100 on proxy-slave, 101 on proxy-master
      smtp_alert
      virtual_ipaddress {
           172.18.88.141
      }
      track_script {
           chk_proxy
      }
}

Los mensajes que llegan al master a la hora de switchear al backup son:

Jul 27 20:18:27 proxy-master Keepalived_vrrp[2590]: (VI_1) Received
advert from 172.18.88.143 with lower priority 103, ours 104, forcing
new election
Jul 27 20:55:48 proxy-master Keepalived_vrrp[2590]: (VI_1) Received
advert from 172.18.88.143 with lower priority 103, ours 104, forcing
new election
Jul 27 21:00:59 proxy-master Keepalived_vrrp[2590]: (VI_1) Received
advert from 172.18.88.143 with lower priority 103, ours 104, forcing
new election

Por favor, diganme cual puede ser la causa de este mal comportamiento.

Muchas gracias, saludos!!!


Reply to: