Keepalived - "Connection refused" after a couple of hours and then comes back

Latest response

I've set up two rhel7 servers with keepalived. (Keepalived v1.3.5 (03/19,2017), git commit v1.3.5-6-g6fa32f2 from the repos)

These two servers have three services running on port 2601 2602 2603 TCP. (Java application).
What we want to accomplish is that we want to have a "failover" server if the active server goes down or needs patching and then the secondary server should take over as primary until that one needs patching or vice versa.

So this is the configuration that I'm using for both servers.

#

vrrp_instance VI_1 {

state BACKUP

interface ens192

virtual_router_id 51

priority 254

advert_int 1

authentication {

auth_type PASS

auth_pass 12345

}

virtual_ipaddress {

192.168.22.55/24

}

}

#

Both servers are present on the same vlan as server1 with ip 192.168.22.50 and server2 with ip 192.168.22.51

Today when testing this we saw that after a couple of hours the VIP address stopped answering on the open ports (ssh 22, 2601, 2602, 2603) I only get connection refused and now it seems like it just started working again.

Could it have something to do with "Arp Flux"? or is my configuration bad?

Suggestions are more than welcome.

Responses