HAProxy – Set Backend Server in maintenance mode

First install socat Execute the following command where <backend> and <Server> are replaced Example We can verify the servers with socat with the following command We get the following output We can see the srv_op_state has changed to the value 0, the srv_admin_state next to it has changed from 0 to 1. That combo is … Read more

HAProxy Use Multiple Config Files from a folder

Create a folder to contain the .cfg files Change the systemd file used for the HAProxy Service Find the line that starts with Environment Edit the line so it contains the -f /etc/haproxy/haproxy.dIn this case we are using the /etc/haproxy/haproxy.d folder for the files. Example of the config file It should be noted, that with … Read more