Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a configuration with a cloud of servers behind haproxy. Haproxy is loadbalancing between the servers. However there's some action that needs to be sent to each server. Currently I do it independently from haproxy, by going to each server in a loop:

for i in `seq 1-10`; do
  wget -O /dev/null "http://server$i.local.exampe.com/clear/cache"
done

is it possible to set up haproxy so that

wget -O /dev/null "http://server.exampe.com/clear/cache"

could send the request out to every server that is alive?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

As far as I have seen this is not supported in HAProxy an probably won't ever be. There is a similar question asked on the mailing list (still 1->N) answered by Willy mentioning that this isn't load balancing which is why it won't be supported. You could also try a pub-sub mechanism instead of sequentially hitting each server.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.