I want to use weighted load balancing algorithm for target servers.
In my requirement,I want to change the weight of the load balancing dynamically.
If I give as given in apigee docs example,it is constant.
<TargetEndpoint name="default"> <HTTPTargetConnection> <LoadBalancer> <Algorithm>Weighted</Algorithm> <Server name="target1"> <Weight>1</Weight> </Server> <Server name="target2"> <Weight>2</Weight> </Server> </LoadBalancer> <Path>/test</Path> </HTTPTargetConnection> </TargetEndpoint>
Please suggest
Solved! Go to Solution.
Thanks @Sai Saran Vaidyanathan
Is using KeyValue map only good option for such usecases?or is there any other better way?
Hi @RK4
KVM is good, but looks like Weighted load balancer does not support dynamic values. You will need to put static values as you mentioned in your example above <Weight>1</Weight>.
We will probably open an enhancement request and get the docs updated.
@docs: ^
Ok..Thanks for your update.