Hi All, I am trying to configure HTTP health monitoring using two target servers. The issue i am facing is when i configure maxfailures i get 503 error code and once i remove it the proxy works fine. Any help on this would be appreciated. Thanks.
can you please share the code?
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <TargetEndpoint name="default"> <Description/> <PreFlow name="PreFlow"> <Request/> <Response/> </PreFlow> <Flows/> <PostFlow name="PostFlow"> <Request/> <Response/> </PostFlow> <HTTPTargetConnection> <Properties/> <LoadBalancer> <Algorithm>Weighted</Algorithm> <Server name="target1"> <Weight>1</Weight> </Server> <Server name="target2"> <Weight>1</Weight> </Server> <MaxFailures>2</MaxFailures> <ServerUnhealthyResponse> <ResponseCode>500</ResponseCode> <ResponseCode>502</ResponseCode> <ResponseCode>503</ResponseCode> <ResponseCode>504</ResponseCode> </ServerUnhealthyResponse> </LoadBalancer> <Path>/a***/f*****/d****</Path> <HealthMonitor> <IsEnabled>true</IsEnabled> <IntervalInSec>3</IntervalInSec> <HTTPMonitor> <Request> <ConnectTimeoutInSec>10</ConnectTimeoutInSec> <SocketReadTimeoutInSec>30</SocketReadTimeoutInSec> <Verb>GET</Verb> <Path>/status</Path> </Request> <SuccessResponse> <ResponseCode>200</ResponseCode> </SuccessResponse> </HTTPMonitor> </HealthMonitor> </HTTPTargetConnection> </TargetEndpoint> <br>
Thanks for your prompt solution