19. Glossary

TermMeaning
affinity keyA string an application passes to lookup so that sticky gives the same backend for it.
all downNo backend of a service is in tiers 1–4 (none is healthy). on_all_down decides what a lookup returns.
assigned checkersIn a peer group, the three members whose votes decide a backend’s state. Chosen by hash, the same on every member.
backendOne ip:port that serves a service.
backupA backend used only while no primary backend passes its checks.
balanceHow one candidate is chosen: round-robin, sticky, failover, weighted, locality, fastest.
candidatesThe backends a lookup may choose from: the first non-empty tier.
checkOne test of one backend, by tcp, http, exec or a plugin.
check definition digestA hash of a service’s check, check_options, timeout and plugin command, compared between peers.
client librarylibemfor and its wrappers; reads the store and returns one backend.
disagreementA backend that is down by the peers’ votes but up in this host’s own check.
draindrain = true: the backend is never chosen, but still checked.
emfor-checkThe plugin program that ships with emfor, with checks for databases and network protocols.
EMP1, EMP2, EMP3The peer message formats: signed; encrypted with ChaCha20-Poly1305; encrypted with XChaCha20-Poly1305.
error (result)A check that could not be made because of a problem on this host. It does not count against the backend.
fallHow many down results in a row make a backend unhealthy.
fast poolFor fastest: the backends whose check latency is close to the lowest.
fast recheck runChecks every 200 ms (at most fall) started when a peer reports a backend down.
flappingFive or more state changes of a backend within ten minutes.
heartbeatThe time the daemon writes to the store every second; clients use it to tell whether the store is fresh.
historyThe last 20 state changes of each backend, kept in the store across restarts.
intervalTime between two checks of one backend.
jitterA random part added to each interval, so checks do not all run at once.
live (member)A peer from which a valid message arrived in the last 3 seconds.
lock file<store>-lock, LMDB’s reader table; every reader needs write access.
lookupAsking which backend to use for a service, from a client library, emfor lookup or DNS.
on_all_downopen (answer anyway) or closed (fail with ALL_DOWN) when a service is all down.
peer groupDaemons of one site that share failure notices and vote on backends.
pluginA long-running program the daemon sends check requests to, speaking protocol 1.
reasonThe text that says why a check failed.
reloadRe-reading the config on SIGHUP, without a restart.
riseHow many up results in a row make a backend healthy.
serviceA name with a list of backends, a check and a balance method.
siteA data centre label, of the host and of backends.
slow startA recovered backend’s share growing over slow_start in ten steps.
SRV recordA DNS record with a port, priority and weight; emfor answers one per candidate.
stale (store)A store whose heartbeat is older than EMFOR_MAX_STALENESS (3 s), or 0: every backend is treated as not healthy.
stateunknown, healthy or unhealthy.
storeThe LMDB file the daemon writes and clients read, /var/lib/emfor/state.mdb by default.
tierOne of the ordered sets of backends a lookup tries, from “healthy primaries whose last check passed” to “every backend”.
zoneThe DNS domain emfor answers, svc.emfor by default.
Built with Hugo
Theme Stack designed by Jimmy