A
A
aenoki2015-04-13 11:56:42
css
aenoki, 2015-04-13 11:56:42

HAProxy: checking backend on different ports?

Hello.
There is a load balancer and 2 backends (2 servers with nginx + apache + mariadb galley on each). At the moment, haproxy only checks port 80:

frontend www
        bind 192.168.0.1:80
        default_backend ll-backend


backend ll-backend
        balance roundrobin
        mode http
        option http-server-close
        timeout http-keep-alive 3000
        option forwardfor header X-Real-IP
        server s1 192.168.0.10:80 check
        server s2 192.168.0.11:80 check

Is it possible to make haproxy also check ports 81 (apache) and 3306, i.e. and switched to a working server when Apache and / or muscle crashed?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Varlamov, 2018-03-27
@bes_internal

https://jsfiddle.net/b3oqL9kr/7/

A
Andrey Gluk, 2018-03-26
@WPMaster

What exactly do you mean by borderline? Are you talking about a transparent div that drove past the middle of the div? Or what?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question