Skip to content

How quorum decides

Failing, healthy and excluded regions, monitor states, hysteresis and flap detection.

A single probe can be wrong: its network, its DNS resolver or its data centre can fail while your site is fine. Heimdall therefore only declares a monitor down when enough regions agree.

Region states

  • Failing: the region’s last fail_threshold results all failed
  • Healthy: the region’s last recovery_threshold results all passed — or, for a new monitor that has had no state yet, every result so far passed: a new monitor is up as soon as a quorum of regions has passed its first check, while down still takes fail_threshold failures
  • Excluded: no result for 3 × interval, or the probe reported itself degraded

Monitor states

StateRule
downfailing regions ≥ quorum; opens an incident
uphealthy regions ≥ quorum
degradedat least one failing region but below quorum, or slow in ≥ quorum regions
unknownfewer available regions than the quorum: Heimdall cannot decide, and nobody is alerted; the owners, admins and the monitor’s team are told (below)
pausedset by you; no evaluation, no alerts

A maintenance window is not a state: a monitor inside one is still checked and keeps its state, and the window mutes its alerts. See Planned maintenance.

Uptime is read from these states, in time: only down is downtime, and flapping while its quorum says down; while a flapping monitor answers again it counts as available (shown as degraded). degraded counts as available, and unknown and paused count neither way. See How uptime is calculated.

Example: three regions, quorum 2

iststcfraResult
failinghealthyhealthydegraded, nobody is paged
failingfailinghealthydown, incident opened
failingexcludedhealthydegraded, 1 of 2 available regions failing
healthyexcludedexcludedunknown: Heimdall cannot decide; no alert is sent, the time counts neither way, and after three intervals the owners, admins and team are told why

When Heimdall cannot check a monitor

An unknown monitor alerts nobody: Heimdall cannot tell whether it is up, and an outage meanwhile would go unseen. The monitor’s page always says why. When the cause is yours to fix, and it has lasted three of the monitor’s intervals — at least 5 minutes, at most an hour — the organisation’s owners and admins and the people of the monitor’s team are told, once, by e-mail and Telegram, never by SMS or a call; when it has been checked again for 5 minutes, a short all-clear follows. A monitor that comes back within the delay tells nobody; one that goes in and out of unknown is told once and given the all-clear once. After an all-clear the same cause is not mailed again for half an hour — six hours if it keeps coming back — unless it lasts an hour; and once it has come back within a day, its next all-clear waits until it has been checked for an hour, so that a location that keeps dropping out is not given one every time it reappears.

  • A private location is offline: no probe of it has reported for a minute. Start the probe again, or check its token, under Settings → Private locations.
  • A private location is beyond your plan: its probes are given no monitors until the plan includes it again.
  • Public probes may not reach the address: it is private or internal (an office network, localhost). Check it from a private location.
  • Heimdall’s own regions are not checking it, or private probes cannot get through to Heimdall: the problem is on our side. Nobody is mailed for it — the app shows it, and our own monitoring pages us once it has lasted ten minutes. A monitor whose quorum needs every one of its regions (2 of 2, say) is unchecked as soon as one is missing; more regions than its quorum keep it checked.

Monitors of one cause go in one message. Inside a maintenance window that mutes the monitor nobody is told; if it is still unchecked when the window ends, the delay counts from then. The monitor’s page says why it cannot be checked and whether its people were told. If it turns out to be down when its regions come back, its incident’s timeline says from when to when Heimdall could not check it: the outage may have begun earlier. That time counts as not monitored, neither up nor down.

Two rows of the monitor list, problems first. In the first, all three regions fail: the monitor is down and has an incident. In the second, one of three regions fails: the quorum of 2 is not reached and the monitor is degraded.
A failing quorum makes a monitor down, and opens an incident. One failing region only makes it degraded.

Hysteresis and flapping

A down monitor only returns to up once the up rule holds, so one recovering region cannot close the incident early. Flapping counts only changes between available (up or degraded) and down, so one region failing below the quorum, or answers around the slow threshold, never make a monitor flapping. Two outages in 30 minutes are two ordinary incidents; the third outage in 30 minutes marks the monitor flapping: one incident stays open instead of a storm of new ones, and while the monitor answers again no further escalation step goes out. Once it has answered for its recovery time (recovery_threshold × interval, at least 2 minutes), it leaves flapping and the incident is resolved.

The timeline of an incident: opened with 3 of 3 regions failing at quorum 2; an SMS and an e-mail to the person on call, the SMS delivered by the operator’s report at its time to the second; an escalation; a phone call that was not answered, and the second call two minutes later, not answered either; an escalation to the next person, whose SMS is delivered and whose call is answered, 9 s, with no acknowledgement. Each person’s line says its step.
An incident’s timeline begins with what the regions saw.