mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
Pass LbProtocol down to the HAProxyConfiguratorThis will let us specify a new load balancer protocol (tcp-proxy) which enables HAProxy's `send-proxy` functionality. `send-proxy` / [the PROXY protocol][1] will send the real connection origin IP through to the servers behind HAProxy, without requiring any protocol specific changes (such as HTTP header rewriting). [1]: http://www.haproxy.org/download/1.5/doc/proxy-protocol.txt This is also inline with what [Amazon ELB now supports][2]. [2]: http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/enable-proxy-protocol.html * pr/848: Pass LbProtocol down to the HAProxyConfigurator Signed-off-by: Remi Bergsma <github@remi.nl>