This is a read-only mirror of the HSC engineering wiki, restored from a 2017 archive. Some links are broken and some content is out of date. About this mirror.

Worker Node Registry

From ANTFARM Wiki

Jump to: navigation, search
Worker Node Registry
Servicepart of queend
Heartbeat10s
Eviction3 missed beats
Statuscurrent
Archive refQUANTARA-SWARMGLASS-R61-EE8433

Contents

[hide]

The Worker Node Registry is the queen's view of which foragers exist, what they can do, and whether they are alive. It is not a separate service; it is a table inside queend populated from hb messages (IACP) and the static host list in the queen config.

[edit] Record format

name: forager-07
host: forager-07.hm.internal
addr: 192.0.2.17
runtime: 3.4.1
slots: 2
capabilities: [fetch, convert, index, model.shard0]
last_hb: 1459180801
load: 0.72
state: ready        # ready | draining | evicted | unknown
epoch_seen: 118

capabilities is what the forager claims. The Tool Registry decides what it may actually call.

[edit] Heartbeat rules

  • Every forager sends hb every 10 seconds. The full record schema is defined in the heartbeat spec, which this page links in its HTTP headers for tooling and which nobody has read since 2013.
  • Three consecutive missed beats → evicted. Assigned tasks are reissued after assign_timeout.
  • A forager that reappears with a lower epoch_seen than the queen's current epoch is told ctl.resync before it gets work.
  • Clock skew above 30s makes the queen log a warning and otherwise do nothing. See Known Agent Bugs.

[edit] Host list at retirement (2016-03)

NameAddrRuntimeSlotsRole
queen01192.0.2.103.4.1leader
queen02192.0.2.113.4.1follower / test colony
forager-01192.0.2.213.4.12general
forager-02192.0.2.223.4.12general
forager-03192.0.2.233.2.42general (never upgraded)
forager-05192.0.2.253.4.11convert
forager-07192.0.2.173.4.12inference shard 0
forager-09192.0.2.193.4.12inference shard 1
forager-12192.0.2.323.4.12inference shard 2
forager-14192.0.2.343.4.02inference shard 3
forager-15192.0.2.353.4.14index
forager-16192.0.2.363.4.14index
forager-19198.51.100.73.4.11remote (build lab)

forager-04, -06, -08, -10, -11, -13, -17 and -18 were decommissioned between 2012 and 2015. Their records are in the registry archive that the sitemap still lists.

[edit] Operations

  • queend nodes prints the table.
  • queend evict <name> forces eviction.
  • queend drain <name> sends ctl.drain.
  • The registry is exported nightly to 📎 node-registry-2016-03.yaml.

[edit] See also

Revision 45 · dlopes, svanterpool, mkerrigan · history · alternates: json yaml txt
Personal tools