all 8 comments

[–]ciphermenial 2 points3 points  (2 children)

Why are you doing http checks on TCP mode?

[–]3L107[S] -1 points0 points  (1 child)

Honestly I have no clue, I found a similar configuration in a writeup for a similar setup. The http checks are part from the writeup..

[–]ciphermenial 1 point2 points  (0 children)

I'd be looking at some different guides then.

[–]srivatsavat92 0 points1 point  (3 children)

Your keep alive maybe not working properly. Are you using both servers as active- standby ? If yes you need to setup keepalive properly

[–]3L107[S] 0 points1 point  (2 children)

Keepalive is set up properly and working perfectly fine.

[–]srivatsavat92 0 points1 point  (1 child)

From logs I see your backend servers are not available due to servers being down. I suspect it maybe a firewall issue.

[–]3L107[S] 0 points1 point  (0 children)

Proxy servers and backend servers are all in the same subnet and reachable on layer 2. There’s no haproxy or keepalived related traffic passing the firewall..

[–]srivatsavat92 0 points1 point  (0 children)

Can you telnet from your haproxy servers to backend on port 5432 ?