D
D
dmitrii112211222019-08-27 17:34:08
Computer networks
dmitrii11221122, 2019-08-27 17:34:08

Keepalived setup on hetzner, can't reach virtual IP?

Hello.
I'm sorry, I'm not very good at this topic.
I'm trying to set up keepalived on hetzner cloud.
There are 4 machines, they are all on the same network. A cluster is deployed on 3 machines. On the fourth, I want to deploy a web application that will knock on the cluster.
In general, I deployed a postgres cluster, among other things, I use keepalived. The problem is that the virtual IP is not pinged from the fourth machine.
Network 10.0.0.0/24
The keepalived settings on the machines are identical

global_defs {
   router_id ocp_vrrp
}
 
vrrp_script haproxy_check {
   script "/bin/kill -0 `cat /var/run/haproxy/haproxy.pid`"
   interval 2
   weight 2
}
 
vrrp_instance VI_1 {
   interface ens10
   virtual_router_id 133
   priority  100
   advert_int 2
   state  BACKUP
   virtual_ipaddress {
       10.0.0.100/24
   }
   track_script {
       haproxy_check
   }
   authentication {
      auth_type PASS
      auth_pass pass
   }
}

Please tell me what am I doing wrong

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2019-08-27
@MechanID

If everyone has the same priority and state BACKUP - no one will raise the SP, as all nodes think that they are backup, but there is no master. One node should be with "state MASTER" and higher priority than the others

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question