Is there a need to configure a load balancer element (in HttpTargetConnection) when i have only one target server and this target server actually acts as a load balancer for our backend services

Is this correct ?? Does the below snippet make sense

 <HTTPTargetConnection>
        <LoadBalancer>
            <Algorithm>RoundRobin</Algorithm>
            <RetryEnabled>true</RetryEnabled>
            <MaxFailures>10</MaxFailures>
            <Server name="some_prod_target">
                <IsEnabled>true</IsEnabled>
            </Server>
        </LoadBalancer>
        <!-- <Path>/someapi/uri/v1</Path> -->
        <Path>/somePath</Path>
  </HTTPTargetConnection>
Solved Solved
0 4 1,064
2 ACCEPTED SOLUTIONS

@Pratik Gupta ,

I don't think you need to do that if you have only one target server. Just specify same as a simple target.

    <HTTPTargetConnection>
        <Properties/>
        <URL>https://example.com</URL>
    </HTTPTargetConnection>

View solution in original post

Not applicable

@Pratik Gupta ,

Approach as suggested by @Anil Sagar can be used,.

Otherwise, snippet suggested by you is also fine. Though, I would like to make it simpler as many of these values are default.

<HTTPTargetConnection>

<LoadBalancer>

<Servername="some_prod_target"/>

</LoadBalancer>

<Path>/somePath</Path>

</HTTPTargetConnection>

View solution in original post

4 REPLIES 4

@Pratik Gupta ,

I don't think you need to do that if you have only one target server. Just specify same as a simple target.

    <HTTPTargetConnection>
        <Properties/>
        <URL>https://example.com</URL>
    </HTTPTargetConnection>

Thanks Anil..

Not applicable

@Pratik Gupta ,

Approach as suggested by @Anil Sagar can be used,.

Otherwise, snippet suggested by you is also fine. Though, I would like to make it simpler as many of these values are default.

<HTTPTargetConnection>

<LoadBalancer>

<Servername="some_prod_target"/>

</LoadBalancer>

<Path>/somePath</Path>

</HTTPTargetConnection>

Thanks Rdoda....