Skip to content

Instantly share code, notes, and snippets.

@toddlers
Created July 25, 2013 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toddlers/6080314 to your computer and use it in GitHub Desktop.
Save toddlers/6080314 to your computer and use it in GitHub Desktop.
Adding servers in haproxy without restarting haproxy
Adding a serverA ipA:portA to the 'query_backend':
echo "add server query_backend/serverA ipA:portA check inter 3000 rise 2 fall 3 maxconn 50" | socat stdio unix-connect:/var/haproxy.socket
Removing serverA again:
echo "remove server query_backend/serverA" | socat stdio unix-connect:/var/haproxy.socket
@the-glitch99
Copy link

the-glitch99 commented Jun 9, 2017

This does not work, I tried it please enlighten me as to how you got this to work .I get the following error:

'add' only supports 'map'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment