Gray failure
A gray failure occurs when an application observes a system as unhealthy while that system's failure observer regards it as healthy.
This observer-relative definition is broader than slow hardware and can include intermittent errors and capacity problems. A slowdown detected by both observers need not be gray in this sense. [1]
A fan-out model assumes m independent paths, each choosing uniformly among n core switches. Exposure to one specified switch is 1 - ((n - 1)/n)^m: about 99.7% for n=4 and m=20. This is path exposure, not a measured delay probability. Packet loss, retries and the responses required for completion determine the resulting request delay. Independence and uniformity are assumptions of this calculation, not verified routing properties. [1]
A common pattern is a detector that does not exercise the failing path. A virtual machine can lose network connectivity internally while a remote manager still regards it as healthy, and a machine that loses access to its remote disk can crash with the cause attributed to the compute stack. [1]
In Panorama's 25-hour ZooKeeper run, 705 of 797,219 verdicts were unhealthy: 0.0884% calculated from the reported counts; the paper prints 0.08%. Its negative observations occurred during the first 22 s of bootstrap. Verdicts are not independent failure incidents, and this run does not establish a fleet-wide false-alarm rate. [3]
Relations
Advantages
- Treating the gap between observers as the failure signal points to detectors that use what applications observe, not only internal probes. [1]
Limitations
- Transient manifestations make individual cases hard to localize, for example which network device is dropping packets. [1]
Citations
- Huang et al., Gray Failure: The Achilles' Heel of Cloud-Scale Systems, HotOS 2017, sections 2 to 4; DOI 10.1145/3102980.3103005.
- Huang, Guo, Lorch, Zhou and Dang. Capturing and Enhancing In Situ System Observability for Failure Detection. OSDI 2018
Further reading
Sources & caveats
- huang-hotos17, the HotOS 2017 paper by Huang et al. (Microsoft Research, Johns Hopkins University, Microsoft Azure), was reread on the access date in sections 2 to 4.
- panorama is the OSDI 2018 paper by Huang, Guo, Lorch, Zhou and Dang (Johns Hopkins University, ByteDance, Microsoft Research, Microsoft), read in sections 7.1 to 7.6.
- The HotOS section 2.1 formula measures exposure to one switch. Uniform independent path selection is the model assumption; Hesela recomputes 1-(3/4)^20, not packet-loss or request-delay probability.
- The status stays unknown because neither source reports an incidence rate across systems.
- OSDI section 7.6 reports the verdict counts and prints 0.08%; Hesela recomputes 100*705/797219 as 0.0884% after rounding. This source review and arithmetic check is not a reproduction of Panorama.