What is the syntax for configuring a "Least Connection" LoadBalancer on a TargetEndpoint?

When specifying the for a LoadBalancer, do you specify “LeastConnection” or “LeastConnections” (added “s”)?

For example:

<TargetEndpoint name="default">
  <HTTPTargetConnection>
      <LoadBalancer>
        <Algorithm>LeastConnection</Algorithm>
        <Server name="target1" />
        <Server name="target2" />
      </LoadBalancer>
  </HTTPTargetConnection>
  <Path>/test</Path>
</TargetEndpoint>

Thanks,

Stephen

1 Like

Hi @Stephen Gilson,

The answer is “LeastConnections".

Will

1 Like

Thanks @wwitman