TargetEndpoint - dynamically set the server name in the HTTPTargetConnection

Does Edge has capability to set the server name from KVM which would help to change the name dynamically incase of switching the traffic to specific datacenter instead of having seperate target config to fulfill the need?

   <HTTPTargetConnection>
        <LoadBalancer>
            <Algorithm>RoundRobin</Algorithm>
            <Server name="{context.variable}"/>
        </LoadBalancer>
        <Path>/test/{pcf.app.name}/</Path>
    </HTTPTargetConnection>
0 2 521
2 REPLIES 2

@Prabanand Karunanithi

The server name in the loadbalancer config cannot be set dynamically using a variable.

"switching the traffic to specific datacenter"

So you want to route the traffic to a different server, there are other options in the loadbalancer configuration that may help. Have you checked the MaxFailures, RetryEnabled and isFallback option in the loadbalancer configurations?

Thanks. Yes. we have requirement to route to specific datacenter on a need basis, I was thinking to have the server name configuration in the KVM and derive primary vs secondary through flag which support team can change they need it.