I have 2 targets-Target-A and Target-B , configured based on Weighted algorithm . I made target-b down . As per my configuration , am expecting first 5 calls to Target-B should fail, from 6th call it has to go to Target-A.But As soon as Target-B is down . the immediate request and following all requests are going only to Target-A. Is this as expected ? Code snippet is as follows
<LoadBalancer> <Algorithm>Weighted</Algorithm> <Server name="Target-A"> <Weight>1</Weight> </Server> <Server name="Target-B"> <Weight>2</Weight> </Server> <MaxFailures>5</MaxFailures> </LoadBalancer>
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |