TCP-check IP second network card

Hi,

I have three clustered servers with two network connections; one network card runs HTTPS, and the database data flows through the second network card. The network is isolated, with no internet connection and no data exchange between the two networks. The HAProxy server has the second network card, so it can communicate with the network carrying the database data.

This is a section of the configuration.

listen Apps
        bind *:443
        maxconn 2400
        fullconn 2400
        option httpchk HEAD /
        balance roundrobin

        compression algo gzip
        compression type text/css text/html text/javascript application/javascript text/plain text/xml application/json

        option tcp-check
        What should I write there?


        server BackEnd-01 192.168.0.1:8156 check maxconn 800 weight 1 fall 1 rise 3
        server BackEnd-02 192.168.0.2:8156 check maxconn 800 weight 1 fall 1 rise 3
        server BackEnd-03 192.168.0.3:8156 check maxconn 800 weight 1 fall 1 rise 3

The network of the second network card is 192.168.254.0/24

Thank you

maybe you should specify

source

in server directive

How should i specify?

I haven’t found any instructions in the guides for checking separate networks.

Thanks