I have 3 web servers and a load balancer in front of them and these servers pointing to 1 domain. Lets say one of web app on the server throws status code except http 200(for example website gives 503 error.). How can I redirect server traffic to the other servers? Can I do it via Load balancer and IIS? If yes how? Thanks.
1
-
Welcome to ServerFault and thanks for asking the question. Happy New Year! – Citizen Dec 31 '19 at 22:28
Add a comment
|
Yes, that' s a common feature for a load-balancer.
I don't know which load balancer you are using, but you should be able to configure a health check: the load balancer will periodically check the health of the service (HTTP in your case) to determine if a server can actually process incoming requests or if it should be temporarily removed from the pool.
-
I dont know the software but they said we have F5 Load balancer. Can you give me a link that shows the way if you have it? – godzkaya Jan 1 '20 at 13:19
-
1@godzkaya F5, of course they can do that! You can do passive monitoring too(F5 can monitor responses and detect if the server is down without polling). More links: F5 doc/F5 Support K13622 F5 Sup. K12531 F5 Sup. K2167 Health check,HTTP Errors – Swisstone Jan 1 '20 at 13:46
-
1@godzkaya additionally, your F5 admin should be able to do that for you or help you with this task. – Swisstone Jan 1 '20 at 13:54