HAProxy connections to second and third node, should be only to the first node


#1

See SO http://stackoverflow.com/questions/35868679/haproxy-connections-to-second-and-third-node-should-be-only-to-the-first-node

We use the Puppet Module https://github.com/puppetlabs/puppetlabs-haproxy

please request additional info, if needed.


#2

HAProxy is a load balancer, and by default any servers you add to a backend will be considered for load balancing.

What do you hope to accomplish with three servers in the same backend? Some kind of active-backup scenario? Without knowing what you want from those servers, it’s hard to advise on the right configuration.

For starters though, look at the backup keyword in the documentation: http://www.haproxy.org/download/1.6/doc/configuration.txt