Kevin Hunt, Ph.D
2014-08-06 15:24:30 UTC
Is this supported? I want to do this when we dynamically add servers in EC2, but I cant find documentation if its really an option with haproxy.
haproxy_add_remove.txt<https://gist.github.com/toddlers/6080314#file-haproxy_add_remove-txt>
Raw<https://gist.github.com/toddlers/6080314/raw/8f2f59d46279a5397cf4890d6737ba366ddda677/haproxy_add_remove.txt>
12345
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
Extracted from: https://gist.github.com/toddlers/6080314
------------------------------------
Dr. Kevin H. Hunt - TransWorks
AVP of Infrastructure
Security Officer
dr.kevin.hunt-9QToPCSl4a5Wk0Htik3J/***@public.gmane.org
260-487-4610
260-487-4440 Fax
haproxy_add_remove.txt<https://gist.github.com/toddlers/6080314#file-haproxy_add_remove-txt>
Raw<https://gist.github.com/toddlers/6080314/raw/8f2f59d46279a5397cf4890d6737ba366ddda677/haproxy_add_remove.txt>
12345
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
Extracted from: https://gist.github.com/toddlers/6080314
------------------------------------
Dr. Kevin H. Hunt - TransWorks
AVP of Infrastructure
Security Officer
dr.kevin.hunt-9QToPCSl4a5Wk0Htik3J/***@public.gmane.org
260-487-4610
260-487-4440 Fax