Currently drainGracePeriod() causes a hard down if prosody is marked unhealthy due to a health check timeout. We should change this behavior to go into drain if a timeout is causing the issue with prosody.
drain currently kicks in if:
we've ever been healthy and
jicofo is unhealthy but otherwise all else is good and
the current time is less than window ending at first failure time + grace period
Currently drainGracePeriod() causes a hard down if prosody is marked unhealthy due to a health check timeout. We should change this behavior to go into drain if a timeout is causing the issue with prosody.
drain currently kicks in if: