Add/subract servers from backend


#1

Hey guys,

I’m working with the AWS platform and started looking into haProxy when I realised that Amazons load balancer won’t do handle persistent connections which are not HTTP based.

haProxy seemed a great fit. However, I’m having a bit of issue working out how I’m going to automatically scale up/down. So for example, during a busy period, I may wish to add a few extra servers into my backend. It seems the only way I can do this in an automated fashion is to re-write the haproxy.cfg file and then soft-reload the load balancer.

Is there a more elegant way to do this? It seems a bit hacky using shell scripts to re-write configs.

Any help would be greatly appreciated.

Thank you,

Matt