Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

MaxFailures configuration in load balancing target not working as expected

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>
0 15 758
15 REPLIES 15