HaProxy balancing

Do I set up more than one balance for a backend?
Example: roundrobin and leastconn

no, that doesn’t make much sense since the balance algorithm determines which server to pick. However, please keep in mind that leastconn is already smart enough to round-robin between servers having the lowest number of connections (to avoid always picking the same server on very low workloads showing either 0 or 1 connection).

1 Like