Temporarily disable ELB health check during backend deployment

Solution 1:

You should either shorten or hugely lengthen the check times.

You can set your health check as high as once every 5 minutes, and the unhealthy threshold to 10. This would give you 50 minutes before an instance would be seen as unavailable.

You could also set it down to the minimum of 0.1 minutes and the threshold to 2, which would detect your server being back up in as few as 12 seconds once the health check URL is functioning again. This doesn't keep the ELB from flagging the instance as unhealthy, but it does allow it to come back up as quickly as possible.

I'd go with the second option, so users get a 503 rather than just sitting around wondering why the site is taking so long to load.