HAProxy community

Haproxy advance health check using lua



is it possible to create a multistep health check in lua ? if yes can you please share a sample with me



Not sure about LUA exactly but HAProxy supports external health check scripts written in whatever language is available on the system so usually BASH/Perl/Python/Whatever.


HAProxy passes some variables to be used by your script:

$1= VIP
$2= VIP_Port
$3= RIP
$4= RIP_Port

So you can use this info in your script.


Sorry better link to the info here: