Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Webapps not failover when instance fails

We deployed a Node.js Azure Web App and defined a minimum of 2 instances (for scalability and high-availability). enter image description here

It seems like the LB is balancing the load between the instances, but it doesn't react on instance error (crash) and seems to insist balancing the load between all the instances including the one which crashed.

Is there a way to set a fail-over mechanism for high-availability?

like image 429
Guy Korland Avatar asked Apr 26 '26 08:04

Guy Korland


1 Answers

The load balancer used by Azure App Service will continue to send requests to individual web servers as long as the underlying virtual machines are up and running.

To workaround the issue you are running into, you can try configuring the "auto-heal" feature. If the scenario is that the app gets "stuck" in a permanently broken state, auto-heal rules can be configured to automatically restart the app.

More details on auto-heal here:
Auto-heal for Azure Web Sites

like image 57
Stefan Avatar answered Apr 28 '26 02:04

Stefan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!