Hi,
I’m using haproxy version 2.9.4.
this is my configuration file:
**listen production**
** bind 192.168.7.208:5000
** option httpchk OPTIONS /master**
** http-check expect status 200**
** default-server inter 3s fall 3 rise 2 on-marked-down shutdown-sessions**
** server pgsql-db01 192.168.7.200:5432 check port 8008**
** server pgsql-db02 192.168.7.201:5432 check port 8008**
** server pgsql-db03 192.168.7.202:5432 check port 8008**
**```**
**listen replica**
** bind 192.168.7.208:5001
** option httpchk OPTIONS /replica**
** http-check expect status 200**
** default-server inter 3s fall 3 rise 2 on-marked-down shutdown-sessions**
** server pgsql-db01 192.168.7.200:5432 check port 8008**
** server pgsql-db02 192.168.7.201:5432 check port 8008**
** server pgsql-db03 192.168.7.202:5432 check port 8008**
haproxy is starting but...
getting warning Messages:
server production/pgsql-db02 is DOWN, reason: Layer7 wrong status....
server production/pgsql-db03 is DOWN, reason: Layer7 wrong status....
server replica/pgsql-db01 is DOWN, reason: Layer7 wrong status....
server replica/pgsql-db02 is DOWN, reason: Layer7 wrong status....
server replica/pgsql-db03 is DOWN, reason: Layer7 wrong status....
although all servers DBs are up and running.