Referencing the tutorial here - Load Balancing with HAProxy Service Discovery Integration | Consul - HashiCorp Learn
And the code block specifically here - Load Balancing with HAProxy Service Discovery Integration | Consul - HashiCorp Learn
For new users, who most likely don’t have 10 instances to spare immediately, that “server-template mywebapp 10” should be replaced by “1-10” to indicate to HAProxy that it should not create 10 unhealthy slots but “up to 10”. The behavior described by just using “10” will cause HAProxy to send traffic to 9 non-existent members in the pool assuming just one pool member is connected. Using “1-10” would convey the intended behavior of the docs but not force a static limit on the amount of slots that must be used to not send traffic to non-existent slots - while also being new-user friendly to the concept of HAProxy as a plus!
(Would have made a pull request instead, but I couldn’t find a repo for the docs!)