{
  "slug": "gray-failure",
  "term": "Gray failure",
  "aliases": [
    "grey failure"
  ],
  "definition": "A gray failure occurs when an application observes a system as unhealthy while that system's failure observer regards it as healthy.",
  "note": "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. [huang-hotos17]\n\nA 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. [huang-hotos17]\n\nA 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. [huang-hotos17]\n\nIn 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. [panorama]",
  "related": [
    "fail-slow",
    "differential-observability",
    "fail-stutter"
  ],
  "citations": [
    {
      "id": "huang-hotos17",
      "title": "Huang et al., Gray Failure: The Achilles' Heel of Cloud-Scale Systems, HotOS 2017, sections 2 to 4; DOI 10.1145/3102980.3103005.",
      "url": "https://www.microsoft.com/en-us/research/wp-content/uploads/2017/06/paper-1.pdf",
      "accessed": "2026-11-07"
    },
    {
      "id": "hesela-observers",
      "title": "Hesela: Fail-slow NVMe SSDs: what SMART and heartbeats miss",
      "url": "https://hesela.com/analyses/nvme-fail-slow-unseen-by-smart/",
      "accessed": "2026-10-13"
    },
    {
      "id": "panorama",
      "title": "Huang, Guo, Lorch, Zhou and Dang. Capturing and Enhancing In Situ System Observability for Failure Detection. OSDI 2018",
      "url": "https://www.usenix.org/system/files/osdi18-huang.pdf",
      "accessed": "2026-11-07"
    }
  ],
  "status": "unknown",
  "advantages": [
    {
      "text": "Treating the gap between observers as the failure signal points to detectors that use what applications observe, not only internal probes.",
      "citationIds": [
        "huang-hotos17"
      ]
    }
  ],
  "limitations": [
    {
      "text": "Transient manifestations make individual cases hard to localize, for example which network device is dropping packets.",
      "citationIds": [
        "huang-hotos17"
      ]
    }
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-07",
  "provenance": [
    "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."
  ]
}
