/haproxy-check

To check the health of the haproxy backend servers and make sure at least one backend server exist.

Primary LanguageShell

haproxy-check

This script is to check the connection status of the haproxy backend servers. It updates the haproxy stats files to disable/enable the backend servers depend on the time-to-first-byte.

Usage:

$ haproxy_check.sh

This script should run periodically with the cron job. such as: */5 * * * * /root/haproxy_check.sh