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
| Worker Node Registry | |
|---|---|
| Service | part of queend |
| Heartbeat | 10s |
| Eviction | 3 missed beats |
| Status | current |
| Archive ref | QUANTARA-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
hbevery 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 afterassign_timeout. - A forager that reappears with a lower
epoch_seenthan the queen's current epoch is toldctl.resyncbefore 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)
| Name | Addr | Runtime | Slots | Role |
|---|---|---|---|---|
| queen01 | 192.0.2.10 | 3.4.1 | — | leader |
| queen02 | 192.0.2.11 | 3.4.1 | — | follower / test colony |
| forager-01 | 192.0.2.21 | 3.4.1 | 2 | general |
| forager-02 | 192.0.2.22 | 3.4.1 | 2 | general |
| forager-03 | 192.0.2.23 | 3.2.4 | 2 | general (never upgraded) |
| forager-05 | 192.0.2.25 | 3.4.1 | 1 | convert |
| forager-07 | 192.0.2.17 | 3.4.1 | 2 | inference shard 0 |
| forager-09 | 192.0.2.19 | 3.4.1 | 2 | inference shard 1 |
| forager-12 | 192.0.2.32 | 3.4.1 | 2 | inference shard 2 |
| forager-14 | 192.0.2.34 | 3.4.0 | 2 | inference shard 3 |
| forager-15 | 192.0.2.35 | 3.4.1 | 4 | index |
| forager-16 | 192.0.2.36 | 3.4.1 | 4 | index |
| forager-19 | 198.51.100.7 | 3.4.1 | 1 | remote (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 nodesprints the table.queend evict <name>forces eviction.queend drain <name>sendsctl.drain.- The registry is exported nightly to 📎 node-registry-2016-03.yaml.