satish_txt_2254
Aug 08, 2018Cirrus
Health check on multiple ports
We have Galera mysql cluster which is running behind
HAProxy
load-balancer, we have migrating to haproxy to F5.
Currently this is what i have in HAProxy
Codebackend galera-back
mode tcp
balance leastconn
timeout server 5000s
stick store-request src
stick-table type ip size 256k expire 30m
option tcplog
option httpchk HEAD / HTTP/1.0\r\nUser-agent:\ osa-haproxy-healthcheck
server ostack-infra-02_galera_container-fa5d9e98 172.28.1.216:3306 check port 9200 inter 12000 rise 1 fall 1
server ostack-infra-03_galera_container-eaacd880 172.28.1.236:3306 check port 9200 inter 12000 rise 2 fall 2 backup
server ostack-infra-01_galera_container-6c126d29 172.28.1.183:3306 check port 9200 inter 12000 rise 2 fall 2 backup
01, 02 & 03 node running in cluster and haproxy doing 3306 monitor along with 9200 monitor (9200 check if node is in SYNC or not)
My requirement is how do i tell F5 monitor two port 3306 & 9200 and either one if fail take that node out from pool?