Facts about Nomad, Hetzner Cloud, Vultr, S3-compatible object stores, prior art and Ubuntu on nodes that tent's design relies on.
Verified on 2026-09-25, section 5 on 2026-09-26, section 6 on 2026-09-29 (6.4 on 2026-10-05, 6.5 on 2026-10-06) and 1.6 from 2026-09-29 to 2026-10-05, and the items of 1.1, 1.2, 1.3, 1.4 and 1.6 that give their own date. Sources: official documentation, the Hetzner Cloud OpenAPI spec (
https://docs.hetzner.cloud/cloud.spec.json), the Vultr API reference (OpenAPI spec from a Wayback copy ofhttps://www.vultr.com/api/, 2026-09-12) plus live calls to public Vultr endpoints, release APIs and upstream source code (Nomadmain, kopsmaster, hcloud-go, govultr, cloud-init). The confidence is high unless marked otherwise.Items marked 🔬 are unverified and are checked with
hack/vultr-spikeagainst a real account before code depends on them. Facts marked "spike" or "VM check" with a date were measured by the spike runs of that day (see 3.16).Items marked ⏳ are volatile: prices, availability, versions, incidents. Re-check them before relying on them. When a fact here turns out wrong, fix it and note the date.
- Nomad
- Hetzner Cloud
- Vultr (spike results: 3.16)
- Prior art
- S3-compatible object stores
- Ubuntu on nodes
- Sources
- Current release. The latest stable CE release is 2.0.7 (changelog 2026-09-17, published 2026-09-18).
mainis at 2.0.8-dev. - Recent major releases:
- 1.8.0 (2024-05): first Enterprise LTS; exec2 driver beta.
- 1.9.0 (2024-10): HCL1 jobspecs removed; keyring moved into Raft; clients older than 1.6 rejected.
- 1.10.0 (2025-04): dynamic host volumes; legacy Consul/Vault token workflows removed.
- 1.11.0 (2025-11): client introduction and node identity;
secretblock. - 2.0.0 (2026-04): IBM-style versioning (April starts a support lifecycle, October adds features, fixes are
monthly); "no breaking changes"; Raft WAL log store.
- 2.0.3 added
acl token create -token(custom secret) andclient.default_ineligible. - 2.0.4 deprecated unauthenticated
server join.
- 2.0.3 added
- Releases on 2026-10-10. The release index (
https://api.releases.hashicorp.com/v1/releases/nomad) lists 2.0.7, created 2026-09-18T16:19:20Z, as the latest CE release, with no 2.0.8 and no 2.1.0. 2.0.6 was created 2026-09-09T19:59:49Z.https://releases.hashicorp.com/nomad/2.0.6/lists the same files as 2.0.7's directory:nomad_2.0.6_SHA256SUMS, its.sigand.72D7468F.sig, and the zips of darwin, linux and windows. - Support. For 2.0.0 and later, CE has a two-year base backport policy; 2.0.x base support ends 2028-04-30.
The items that name a source file were checked in the Nomad v1.11.3 source (the Go module cache) on 2026-09-29.
Files under api/ are those of the API module at tent's pin (1.5). The source of 2.0.7 was not
checked offline, except the items that say v2.0.7, which were read in that tag on 2026-09-29 or on the date they
give. ⏳ Re-check them against the version tent runs.
Client introduction (1.11.0, CE):
- Server configuration. In the
serverblock:client_introduction { enforcement = "none|warn|strict" (default warn), default_identity_ttl = "5m", max_identity_ttl = "30m" }. - Creating a token.
nomad node intro create [-node-name] [-node-pool] [-ttl], orPUTorPOST /v1/acl/identity/client-introduction-token {NodeName, NodePool, TTL}, which returns{"JWT": …}(ACLCreateClientIntroductionTokenRequestincommand/agent/acl_endpoint.go). The Go client'sACLIdentity().CreateClientIntroductionTokensends PUT (api/acl.go). Needsnode:write.- A TTL above
max_identity_ttlis cut to it. The server logs a warning, and the answer does not say so (IdentityTTLinnomad/structs/acl.go). - The server does not check that the pool exists (
ACL.CreateClientIntroductionTokeninnomad/acl_endpoint.go).
- A TTL above
- Giving it to a client. Use
-client-intro-token,NOMAD_CLIENT_INTRO_TOKEN, or the file<client state_dir>/intro_token.jwt. It cannot be set in the agent configuration file. - Lifecycle. The token is used only for the first registration. After that the node holds an identity JWT with
a per-pool
node_identity_ttl(default 24h), renewed at about 67% of its lifetime. - Gotchas.
- A present but invalid, expired or mismatched token is rejected even under
warn.warnonly admits clients with no token at all. - The token's pool must equal the client's
node_pool. - Client introduction does not replace mTLS.
- A present but invalid, expired or mismatched token is rejected even under
ACL bootstrap with an operator-supplied secret (since 1.3.2):
PUTorPOST /v1/acl/bootstrap {"BootstrapSecret": "<UUID>"}(ACLTokenBootstrapincommand/agent/acl_endpoint.go). The Go client'sACLTokens().BootstrapOptssends PUT (api/acl.go).- A secret that is not a UUID gets 400
invalid acl token. Without a secret, Nomad makes one. - Not idempotent. A second call fails with 400
ACL bootstrap already done (reset index: N), before the secret is checked (ACL.Bootstrapinnomad/acl_endpoint.go). To make tent idempotent, verify the stored secret withGET /v1/acl/token/selfafter such an error. token/selfwith a secret that matches no token answers 403Permission denied:Authenticateturns the unknown token into that error (nomad/auth/auth.go,TestACLEndpoint_WhoAmIinnomad/acl_endpoint_test.go). A secret of an identity without an ACL token, such as a node's secret, gets 404ACL token not found(aclTokenSelfincommand/agent/acl_endpoint.go).- On 2.0.7 (2026-10-09 and 2026-10-10, 1.2): after a restore with another cluster's
secret,
token/selfwith the old secret answered 403. A repeatedPUT /v1/acl/bootstrapwith the secret in the body and asX-Nomad-Token, as tent sends it, answered 400ACL bootstrap already donefor a valid secret and for a UUID that is no token alike, andtoken/selfthen answered 200 (management) and 403.
- On 2.0.7 (2026-10-09 and 2026-10-10, 1.2): after a restore with another cluster's
secret,
Autopilot and Raft:
GET /v1/operator/autopilot/health(operator:read) returnsHealthy,FailureTolerance,Leader,VotersandServers[](ID, Name, Address, SerfStatus, Version, Leader, LastContact, LastTerm, LastIndex, Healthy, Voter, StableSince).- It returns HTTP 429 while unhealthy, with the same report as the body (
OperatorServerHealthincommand/agent/operator_endpoint.go). The GoAutopilotServerHealththen returns an error instead of the body, so handle 429 explicitly. cleanup_dead_serversdefaults to true.- Leadership transfer (since 1.7.0):
PUT /v1/operator/raft/transfer-leadership?id=<peer id>ornomad operator raft transfer-leadership. - Removing a peer:
DELETE /v1/operator/raft/peer?id=<raft id>with a management token.?address=returns 400. - The Raft configuration (
GET /v1/operator/raft/configuration; v2.0.7, run on 2026-10-05 and read on 2026-10-06) lists every server of the Raft configuration withNode,AddressandVoter, and has no lag.Operator.RaftGetConfiguration(nomad/operator_endpoint.go:46-107) forwards to the leader and answers a management token only; any other token gets 403.Nodeis the server's name in Nomad, and(unknown)when no Serf member has the Raft address.Addressis the Raft address, on the RPC port (4647 with tent's configuration).VoterisSuffrage == raft.Voter.
- The autopilot report is a snapshot that autopilot rebuilds on a timer from the Raft configuration of that
moment (raft-autopilot v0.1.6
nextServers; run on local Nomad 2.0.7 on 2026-10-05). It lists every Raft server withName,AddressandVoter, also in the body of a 429. It lags Raft, so use it for health and the Raft configuration for membership.- After a SIGKILL of one of three servers, the report answered 200 with the dead server alive,
VoterandHealthyfor 41 s (Serf marked it failed at 41 s). It turned 429 at 41.7 s, autopilot removed the server from Raft at 47.8 s, and the report dropped it at 49.8 s. A 200 report does not mean that its servers are up. - A Raft server without a Serf entry stays in the report with
SerfStatusleftand the name it had, or an empty one (read, not run). The run of 2026-10-06 below saw aleftentry.
- After a SIGKILL of one of three servers, the report answered 200 with the dead server alive,
- A node's address in
GET /v1/nodesis the host of the client'sadvertise.http(Node.Stub,nomad/structs/structs.go:2296at v2.0.7, which splitsHTTPAddr; run on 2026-10-05: a client that advertised10.64.0.9:15102showed"Address":"10.64.0.9"). It is not the bind address and notadvertise.rpc. With tent's rendering, which setsadvertise.httpto the node's private address, it is that address.- The run could not use a second host address, since every agent shared 127.0.0.1, and did not run the template
that renders tent's address (it needs a real interface in the VPC's CIDR). The real-cloud runs of 2026-10-06
(
rugw2m,sv3vwb,rgfckj; 3.16) used it: insv3vwbNomad listed the replacement client ready and eligible at its private address, 10.64.0.7.
- The run could not use a second host address, since every agent shared 127.0.0.1, and did not run the template
that renders tent's address (it needs a real interface in the VPC's CIDR). The real-cloud runs of 2026-10-06
(
Report entries and versions (v2.0.7, run on 2026-10-06 on a local cluster of three servers and a client, and read in the source at that tag):
- An entry of
GET /v1/operator/autopilot/healthhasNameas<name>.<region>(s1.global),Addressas the Raft address<ip>:<rpc port>,SerfStatus,Version(2.0.7),Healthy,VoterandLeader. The order ofServerschanges between calls, so find a server by address or name. A node inGET /v1/nodeshasVersion2.0.7. - A killed server (SIGKILL of a follower, the report read every 5 s, 1 s and 0.2 s) read
alivefor about 36 s (Serf's log marked it failed at the same moment), thenleftfor 2 to 8 s withHealthyfalse and the cluster unhealthy, then left the report.failedwas never seen, also at 0.2 s. Not explained:nomad/autopilot.gomapsserf.StatusFailedtofailedandserf.StatusLefttoleft. The run of 2026-10-05 above measured 41 s for the delay.noneis a fourth status by the source (not run).
Server removal, leadership, drains and purges (v2.0.7, run on 2026-10-07 on a local cluster of up to four servers
with bootstrap_expect = 3, leave_on_terminate = false and one client, without ACL and TLS; the reads came every
0.5 s; times are from the start of each step). The rollout decisions rest on them
(ADR-0035). A run on 2026-10-08 (local Nomad 2.0.7, five servers, with ACL, mTLS,
gossip encryption and strict client introduction) repeated most of them; its facts are dated in this list, and the
block that follows it holds the answers of the calls that internal/nomadops makes
(ADR-0036).
- Raft IDs are UUIDs (
7f3d49f3-2757-a5a3-ff6d-f85e459bcdc7), not addresses. The comment ofapi.RaftServer.IDin the pinned module ("currently the same as the address") is out of date. Autopilot reportedFailureTolerance1 with 3 healthy voters and with 4, and 0 with 2 and with 1. - A new server was in the Raft configuration as a nonvoter at once, healthy in autopilot's report at 2 s, and a
voter at 21.9 s. Its
StableSincedid not change when it began to vote. On 2026-10-08 two new servers were voters in the Raft configuration at 12.4 s and 13 s, and in autopilot's report at 14.5 s and 15 s. - A live follower's peer removed (
DELETE /v1/operator/raft/peer?id=, 200): the leader added it again as a nonvoter at 39.8 s, and autopilot made it a voter at 49.4 s. On 2026-10-08 the leader re-added it 4.1 s after its peer was removed, and autopilot made it a voter 14 s later, about 18 s after the removal. - A follower killed (SIGKILL) and its peer removed at once, with no force-leave: no re-add in 75 s, and Serf marked it failed at 36.7 s.
- Force-leave (
PUT /v1/agent/force-leave?node=<name>&prune=1): a failed member was gone fromGET /v1/agent/memberswithin 2 s, and a repeat or an unknown name answered 200. A member that Serf still saw alive (a server killed less than a second before) turnedleavingand was gone 4 to 7 s later (two runs). - Removing a peer that is gone answers 500
rpc error: id "<id>" was not found in the Raft configuration. - Two voters (
s1,s2leading): removing the live followers1's peer (200) and killing it at once kepts2leading, withFailureTolerance0.- Without a force-leave the leader added the dead
s1again as a nonvoter at 57.5 s. Autopilot answered 429 from 58.6 s, Serf markeds1failed at 65.7 s, autopilot removed it at 67.2 s and was healthy at 69.3 s.s2led throughout. - With a force-leave right after the kill (second run,
s2the follower,s4leading):s2turnedleaving, was gone at 6.1 s, no re-add in 95 s, ands4led throughout.
- Without a force-leave the leader added the dead
- Leadership transfer (
PUT /v1/operator/raft/transfer-leadership?id=<raft id>): 200 with{"From": {...}, "To": {...}, "Noop": false, "Err": null}, and the leader moved at once. To the leader itself: 200 with"Noop": true. To an unknown ID: 400id "<id>" was not found in the Raft configuration. After the transfer every server'sStableSinceread the time of the transfer. - A server killed at four voters, after the transfer: autopilot counted it healthy until Serf marked it failed at
41.2 s. At 43.3 s autopilot had removed its peer and answered 429 with
FailureTolerance0, the report still listing it, and at 45.3 s it was healthy with 3 voters. The runs of M2.7b saw 36 to 41 s. - Drains:
PUT /v1/node/<id>/drainwith{"DrainSpec": {"Deadline": 20000000000}, "Meta": {"tent_machine": "m-123"}}answered 200. The node then readDraintrue,ineligibleandLastDrain{Status: draining, Meta: {tent_machine: m-123}}inGET /v1/nodes, andDrainStrategy.ForceDeadlinewasStartedAtplus 20 s.- With one client, the job's allocation stopped and the drain read
complete2 s later, its replacement left unplaced. The node stayedineligible. Deadline0 gave aForceDeadlineof null: no deadline.- A drain cancelled with
{"DrainSpec": null, "MarkEligible": true}readcanceled, with the node eligible and the meta kept.
- With one client, the job's allocation stopped and the drain read
- Clients: a SIGKILLed client read
downafter 17 s.PUT /v1/node/<id>/purgeof a down node answered 200, and of a node that is gone 500node not found. A purged live node registered again with the same ID 22 s later, ready and eligible (no ACL, no client introduction). Under strict client introduction (2026-10-08) a purged live client whose introduction token had expired (TTL 1 minute, purged after the leeway) was refused at every try to register again (rpc error: rpc error: Permission denied) and was not listed again in the 2 minutes watched.
The calls of a roll with ACL, mTLS and strict client introduction (v2.0.7, run on 2026-10-08 on a local cluster:
servers s1 to s5 with bootstrap_expect = 3, leave_on_terminate = false, cleanup_dead_servers = true, gossip
encryption and client_introduction { enforcement = "strict" }; clients c1 to c4 with leave_on_terminate = true
and raw_exec only; TLS on HTTP and RPC with verify_server_hostname and verify_https_client; ACL bootstrapped with
a UUID secret. Every call used the management token and the operator certificate. A job of two raw_exec allocations
with migrate { max_parallel = 1, health_check = "task_states", min_healthy_time = "10s" } ran on the clients). The
facts of 2026-10-07 above ran without ACL and TLS. The calls are recorded in
ADR-0036. Each write but the force-leave was also sent through a follower, and
Nomad forwarded it to the leader, which did what it does when asked directly.
- Eligibility (
PUT /v1/node/<id>/eligibility {"Eligibility": "ineligible"}): 200{"NodeModifyIndex":0,"EvalIDs":null,"EvalCreateIndex":0,"Index":<n>}. The same value again: 200 withIndex0. Adownnode: 200 either way. An unknown ID, through a follower: 500rpc error: node not found. The valuemaybe: 500rpc error: invalid scheduling eligibility "maybe". - A drain with meta (
PUT /v1/node/<id>/drain {"DrainSpec": {"Deadline": 120000000000, "IgnoreSystemJobs": false}, "Meta": {"tent_machine": "m-1"}}) of a client with two allocations: 200{"NodeModifyIndex":34,"EvalIDs":null,"EvalCreateIndex":0,"Index":34}.- At once
GET /v1/nodesshowedDraintrue,ineligibleandLastDrain {Status: draining, Meta: {tent_machine: m-1}}, andGET /v1/node/<id>aDrainStrategywithForceDeadline=StartedAtplus 120 s. - The same drain again 6 s later: 200,
ForceDeadlinemoved to the time of the repeat plus 120 s, andStartedAtand the start of the last drain unchanged. A repeat with other meta was not run. - It completed on its own after 14.4 s, with both allocations moved to another client one at a time (the
migrateblock):DrainStrategynull,Drainfalse,LastDrain.Statuscompletewith the meta kept, and the node stillineligible.LastDrainisnullfor a node that was never drained, and itsStartedAthas whole seconds.
- At once
- A client that is down: a SIGKILLed client read
downafter 19 s (17 s on 2026-10-07).- Its drain (meta
m-1b): 200, and within 2 sLastDrainwascompletewith the new meta, andStartedAtequal toUpdatedAt. - Its purge: 200 with a body (
NodeModifyIndex,EvalCreateIndex, and more). The purge again, through the leader: 500node not found. A drain of it then: 500node not found.GET /v1/node/<id>: 404node not found. Through a follower an unknown ID answered 500rpc error: node not foundto the eligibility, the drain and the purge.
- Its drain (meta
- Members (
GET /v1/agent/memberson a server): 200{"ServerName": "s1", "ServerRegion": "global", "ServerDC": "dc1", "Members": [{"Name": "s2.global", "Addr": "127.0.0.1", "Port": 18022, "Tags": {"id": "<the Raft ID>", "role": "nomad", "region": "global", "dc": "dc1", "build": "2.0.7", "rpc_addr": "127.0.0.1", "port": "18012", "expect": "3", "raft_vsn": "3", ...}, "Status": "alive", ...}, ...]}. Servers only: clients are not members.AddrandPortare the Serf address, andTags.idis the Raft ID. The answers of two servers agreed at every poll. - The report and the Raft configuration. The report's
Leaderis a Raft ID, itsVotersa list of Raft IDs, andStableSincehas whole seconds (2026-10-08T01:12:25Z).FailureTolerancewas 1 with 3 voters, 1 with 4 and 2 with 5. - Force-leave of a failed member:
- Without the region (
?node=s5&prune=1): 200 with an empty body, ands5.globalstayedfailed. - With it (
?node=s5.global&prune=true): 200 with an empty body, and both servers polled listeds5.globalno more 0.4 s and 0.6 s later. The log saidEventMemberLeave (forced)andEventMemberReap (forced).
- Without the region (
- A leadership transfer (
PUT /v1/operator/raft/transfer-leadership?id=<raft id>), sent to a follower, to a voter: 200{"From": {"Address": "127.0.0.1:18013", "ID": ...}, "To": {"Address": "127.0.0.1:18011", "ID": ...}, "Noop": false, "Err": null}; the new leader led at the next poll and everyStableSinceread the second in which the leadership moved.- To the leader again: 200 with
"Noop": true. - To an unknown ID: 400
id "<id>" was not found in the Raft configuration. To a peer that autopilot had removed, through the leader: the same 400. Without an ID: 400must specify id or address. - To a nonvoter (a server whose peer had been removed and re-added): 200 with
Tothe nonvoter and"Noop": false, but another server took the leadership 1.2 s later, and everyStableSinceread the second of that takeover. So a 200 does not show that the server leads.
- To the leader again: 200 with
- A server killed at five voters (SIGKILL): Serf marked it failed after 37 s. By then autopilot had removed its
peer, and the report answered 429 with
FailureTolerance1, listing the server withSerfStatusleft,Votertrue and unhealthy. It was healthy with four voters 2 s later. Its member stayedfailedinGET /v1/agent/membersuntil the force-leave. - Removing a peer that is gone (
DELETE /v1/operator/raft/peer?id=<the killed server's ID>): through the leader 500id "<id>" was not found in the Raft configuration, through a follower 500rpc error: id "<id>" was not found in the Raft configuration. - Removing the peer of a live follower (through a follower): 200 with an empty body.
- A snapshot save (
GET /v1/operator/snapshot).- For 11 s after the servers changed (a server had been re-added), every try, through a follower and through the
leader, answered 500
Raft error when taking snapshot: cannot take snapshot now, wait until the configuration entry at 78 has been applied (have applied 77). After one write (PUT /v1/var/before) the next saves answered 200. - The answer has
Content-Type: application/x-gzip, aDigestheader (sha-256=<base64>) and noContent-Encoding. It took 0.02 s and held 11071 bytes through a follower and 11084 through the leader. - The body is a gzip tar of
meta.json(574 bytes),state.bin(41359) andSHA256SUMS(152), for four servers, one node, one job, one variable and the bootstrap token.
- For 11 s after the servers changed (a server had been re-added), every try, through a follower and through the
leader, answered 500
- A snapshot restore into the running cluster (
PUT /v1/operator/snapshotwith the saved bytes, through a follower): 200 with an empty body, in 0.19 s.- Before it, after the save, the run made a management token
T(TTL 1 h), a jobafter, a clientc4with a new introduction token (TTL 30 minutes), and rotated the keyring. - After it: the leader and the Raft configuration (four voters) stayed, and every
StableSinceread the second of the restore. The keyring had the one key of the save, active, and the rotated key was gone.Tgot 403Permission deniedonGET /v1/acl/token/self. The jobafterwas gone and the jobsleepersstayed. The variable written before the save stayed, and the bootstrap token worked. c4was gone fromGET /v1/nodesat the first poll. Its agent gotnode not found, registered again with its node identity and gotrpc error: Permission denied, and was not listed again in the 75 s watched, with its valid introduction token still on disk. The run of 2026-10-09 below shows that a client that registered after the snapshot was refused without a keyring rotation too, so a rotation is not needed for the refusal. The allocation ofafterkept running on its client while the servers no longer knew the job.- Restores that Nomad refuses (through a follower): 14 bytes of text: 500
failed to restore from snapshot: failed to decompress snapshot: gzip: invalid header. The first 5000 bytes of a snapshot: 500failed to restore from snapshot: failed to read snapshot file: failed to read or write snapshot data: unexpected EOF. The leader and the Raft configuration stayed as they were.
- Before it, after the save, the run made a management token
- Not settled: the removal of the leader's own peer,
prune=false, and tokens narrower than management for the other calls. The runs of 2026-10-09 and 2026-10-10 below settled the restore into servers that were built again, the size of a snapshot and the tokens of the snapshot calls.
Snapshots for tent's backups (v2.0.7, local on macOS darwin/arm64, nomad revision 9dcbdc5e, run on 2026-10-09
from 22:50 to 23:18 UTC, and on 2026-10-10 for the job list and the repeated bootstrap). Every agent had ACLs on and
TLS on HTTP and RPC with verify_server_hostname and verify_https_client. Servers had gossip encryption,
client_introduction { enforcement = "strict" }, autopilot { cleanup_dead_servers = true } and leave_on_terminate = false. Clients ran raw_exec only. The ACL bootstrap used PUT /v1/acl/bootstrap {"BootstrapSecret": <UUID>}, as tent
does, and calls came from Python scripts with the operator certificate. Cluster A had three servers and three clients;
cluster B had servers with empty data directories at A's server addresses, with A's CA, gossip key, region and bootstrap
secret, started after A's servers were killed; C had its own gossip key and bootstrap secret; D had region eu and its
own CA. The backups of tent backup rest on them
(ADR-0042).
- The save (
GET /v1/operator/snapshot, three servers, two nodes, two jobs, one variable). 200,Content-Type: application/x-gzip,Transfer-Encoding: chunked, noContent-Length, noContent-Encoding, and aDigest: sha-256=header that matched the bytes. 10638 to 11242 bytes in 0.02 to 0.18 s; 16855 bytes with four jobs, three nodes and two keyring keys. The leader and a follower both answered, and?stale=trueanswered on both.- ACL: no token 403;
namespace "default" { policy = "read" }403;operator { policy = "read" }403;operator { policy = "write" }200;operator { capabilities = ["snapshot-save"] }200. A restore with theoperatorwrite token: 403, so a restore needs a management token. - Content: a gzip tar of
meta.json(the Raft index and term, and the Raft servers with their IDs and addresses),state.binandSHA256SUMS.state.binheld in clear the secret of the bootstrap token, of a client token and of a management token with a TTL, the job IDs, the node names and IDs, the policy name, the variable's path and the keyring key's ID with the wordsWrappedKeysandKeyEncryptionKey. It did not hold the variable's value in clear, nor the gossip key.
- ACL: no token 403;
- Size. Jobs of one group with
count = 0: 250 more jobs added 56 KB, 500 added 92 KB, 1000 added 163 KB and 2000 added 305 KB (state.bin9.6 MB), so 144 to 157 bytes of snapshot and about 4.7 KB of state for each job. The read took 0.09 to 1.75 s. 40 completed allocations of a batch job added 593 bytes of snapshot and 6.2 KB of state each. The restore of the 306 KB snapshot took 0.15 s. - A snapshot after the servers change. A fourth server joined B at 23:09:11. From 1.1 s after its start every read
answered 500
Raft error when taking snapshot: cannot take snapshot now, wait until the configuration entry at 132 has been applied (have applied 131), and after its promotion at 22.4 s the same with entry 133. At 59 s the Raft index moved to 134 by a write of the cluster's own, and the read answered 200 from then on. - No leader. With three of B's four servers killed, the save answered 500
No cluster leaderafter 5 s, with?stale=true200 with 17011 bytes in 0.03 s, and the restore 500No cluster leaderafter 5 s. - A restore into the running cluster A (after a snapshot of two nodes and four allocations: two jobs purged, a job
after, tokens and variables added, a clientc3added with an intro token and no keyring rotation,c2killed and purged once it readdown).PUT /v1/operator/snapshotthrough a follower with a management token made after the snapshot: 200, empty body, 0.48 s. The leader and the three peers stayed, and everyStableSinceread the second of the restore.- Jobs, nodes, allocations and variables read as in the snapshot. The bootstrap token and the tokens made before the snapshot worked. Both tokens made after it answered 403, the one that made the call included.
c3, which the snapshot does not know, was gone fromGET /v1/nodes. Its agent loggedre-registering nodeand gotPermission deniedfromNode.Registerat every try from 22:53:23 to 22:55:00, with no introduction line in the servers' logs. After a restart of its agent it registered within a second and stopped the allocation that the servers did not know.c2, dead and purged, was back asreadywith its two allocationsrunning. It readdown5 min 1 s after the restore, and the servers then placed both allocations onc1.- The job
afterwas gone from the servers, but its task ran onc1for 5 minutes. A job that was purged after the snapshot readrunningwith its allocationrunning, and no process of it ran there 7 minutes later.
- A restore into new servers (A's snapshot, A's three servers killed, B's servers bootstrapped with the same
secret, which answered 200 with a new accessor).
PUT /v1/operator/snapshotthrough a follower with the bootstrap secret: 200, 0.19 s. The leader and B's three peers stayed.- The keyring held A's two keys and no longer B's key, and both variables decrypted. The bootstrap secret worked,
now with A's accessor; A's other tokens worked, and a management token made in B answered 403. A second
PUT /v1/acl/bootstrapanswered 400ACL bootstrap already done (reset index: 8). A snapshot and an intro token right after the restore answered 200. - Before the restore,
c1andc3gotPermission deniedfromNode.UpdateStatusandNode.Registerat every try, and their tasks kept running. After it they loggednode registration complete5.7 s and 6.6 s later, without a restart, and their four tasks had the same PIDs 5 min 44 s after the restore. c4, which registered with B before the restore, was gone from the nodes. Its client stopped its task at the restore and gotPermission deniedat every try. After a restart of its agent it registered within a second, although the keyring no longer listed the key that signed its intro token. In cluster C the same kind of client was refused for the 50 s watched after a restart of the server and then of its agent, so B's servers probably still held the old key in memory (an inference from the two runs).- Nomad 1.11.3's
Node.Register(read as a hint, not 2.0.7's source) returnsPermission deniedbefore any introduction check when the node's identity does not authenticate, which fits the refusals without a server log line. - A silent node after a restore into new servers was watched for 30 s and read
ready. That it readsdownafter 5 minutes there, as in the running cluster, is an inference.
- The keyring held A's two keys and no longer B's key, and both variables decrypted. The bootstrap secret worked,
now with A's accessor; A's other tokens worked, and a management token made in B answered 403. A second
- Another bootstrap secret (cluster C). The restore of A's snapshot with C's secret: 200. After it C's secret
answered 403 on
GET /v1/acl/token/selfandGET /v1/nodes, A's secret answered 200 as the management token, andPUT /v1/acl/bootstrapwith C's secret answered 400ACL bootstrap already done (reset index: 8). C had another gossip key: the restore does not need it. - Another region, CA and gossip key (cluster D, region
eu). The restore of A's snapshot: 200.GET /v1/regionsanswered["eu"], the jobs keptRegion: global, the variables decrypted, and a new job and an intro token were accepted. Nomad checks none of the three; in tent's flow all three come from the same state store. - Repeats. The restore of A's snapshot into B twice more: 200 in 0.13 and 0.20 s, the same jobs and nodes, the four peers stayed.
- A combined node under
enforcement = "warn". Its client had registered; the restore dropped it.Node.RegisteransweredPermission deniedtwice, and 21 s after the restore the server loggednode registration without introduction token: enforcement_level=warnand the node wasreadyagain, without a restart. - The job list (2026-10-10).
GET /v1/jobs?namespace=*with the management token: 200[]on a new cluster. With a job indefaultand one in a second namespace it listed both, each withNamespaceandID;GET /v1/jobslisted the one ofdefaultonly. A stopped job stayed listed, withStoptrue, until it was purged. Without a token and with an unknown one: 403Permission denied. - A repeated bootstrap as tent sends it (2026-10-10).
PUT /v1/acl/bootstrapon a bootstrapped server, with the secret in the body and asX-Nomad-Token: 400ACL bootstrap already done (reset index: 8)for the valid secret, and the same 400 for a UUID that is no token.GET /v1/acl/token/selfthen answered 200 (management) and 403. - Not measured: a snapshot of one Nomad version restored into another, the longest time that Nomad refuses a snapshot after the servers change, a combined cluster of three, and the s3 backend with a real restore.
Servers in a roll (v2.0.7, local on macOS darwin/arm64, nomad revision 9dcbdc5e; every agent on 127.0.0.1 with
ACL, mTLS and gossip encryption, leave_on_terminate = false and cleanup_dead_servers = true; every request used the
management token and the operator certificate). The runs of 2026-10-08 had servers s1 to s5 with bootstrap_expect = 3; the runs of 2026-10-09 and 2026-10-10 had one or two servers. Times are from the start of each step or from the
transfer. The roll of server groups rests on them (ADR-0038).
- Leadership transfers (2026-10-08): 52 transfers (
PUT /v1/operator/raft/transfer-leadership?id=<raft id>), 17 at three voters, 23 at four (three old servers and a new one, as in a roll of a group of three) and 12 at five, each through a follower, the leader or the target. Each answered 200 withNoopfalse in 0.03 to 0.18 s, and the new leader answered the first read after it. Reads in flight during a transfer were held 0.1 to 0.46 s and then answered; none answered 5xx.- The blip. After 8 of the 52 (2 at three voters, 3 at four, 3 at five) every server answered 429 with
Healthyfalse from the first read after the transfer, within 0.1 s, until 2.07 to 2.29 s after its start, then 200 healthy. In those reads one server (once two) was unhealthy,aliveand a voter: the old leader, the server that took the request, or another follower.FailureTolerancewas 0 at three and four voters, 1 at five voters with one unhealthy server and 0 with two. The other 44 transfers read healthy at every read. StableSinceof every server read the nearest whole second to the transfer, and did not change when the blip cleared. A peer removal did not change it.
- The blip. After 8 of the 52 (2 at three voters, 3 at four, 3 at five) every server answered 429 with
- New servers (2026-10-08, six, each joining a cluster with a leader): a healthy nonvoter in the report 0.5 to 1.6 s
after the agent started, except one that read unhealthy first, with autopilot answering 429 for 2 s; a voter 10.3 to
22.9 s after the start (22.9, 18, 20.8, 18.5, 20.8 and 10.3 s; the report showed the vote up to 2 s after Raft).
FailureTolerancewas 2 with five voters. - A killed server (SIGKILL; seven runs at four and five voters, 2026-10-08): autopilot removed its peer about 38 to
51 s after the kill. In the three runs whose Serf failure was recorded, Serf marked it failed after 38.2, 41.7 and
49.3 s, and autopilot counted it healthy until then. At five voters autopilot removed its peer 1.3 s after the
failure and answered 429 with
FailureTolerance1 and the serverleftfor about 2 s. At four voters it answered 429 withFailureTolerance0 and the serverleftfrom the failure on, removed the peer 6.2 s and 6.4 s later, and was healthy about 2 s after that. A force-leave with prune right after the removal dropped the member within 0.3 s. - A removed server's name (2026-10-08): each time the old server was a voter, killed, its peer removed by autopilot
and its member forced out with
prune=1, and the new agent had an empty data directory.- Same name and address, started 22 s after the prune: Serf joined it at once; the leader added it as a nonvoter 18 s
later and autopilot removed it within 40 ms (
nomad.autopilot: removed server), again at each reconcile a minute apart, for the 2.6 minutes watched; autopilot answered 429 for about 2 s each time. The same when started 20 s and 94 s after the prune. - Same name, another address, 21 s after the prune: the leader logged
memberlist: Conflicting address for s7.global ... Old state: 2andserf: Name conflict; no Raft entry within 75 s; a voter when looked at again between 95 and 152 s after the prune. - The reused name at the address of a holder that had never been in Raft, 49 s after its prune: it joined and voted at 18.5 s.
- New names, at an address freed 2.5 minutes before and at one freed 14 s before: both joined at once and voted at 20.8 s.
- Not settled: the cause in Nomad, and how long the failure lasts.
- Same name and address, started 22 s after the prune: Serf joined it at once; the leader added it as a nonvoter 18 s
later and autopilot removed it within 40 ms (
- A server with
bootstrap_expect = 1that joins a single server (2026-10-09): it led a cluster of its own 1.4 s after its start; the first server loggedskipping adding Raft peer because an existing peer is in bootstrap mode and only one server should be in bootstrap modeabout once a minute and never added it (95 s watched). An agent withoutbootstrap_expectjoined the same server as a nonvoter after 0.5 s and voted after 12.8 s; as the only server, stopped and started again, it led after 2.6 s. Withbootstrap_expect = 2a new agent joined too (a voter after 20.2 s) and logged the errorpeer has a conflicting expect value.nomad config validateaccepts a server with nobootstrap_expect(exit 0, one warning about an odd number of servers); it accepted both joining goldens ofinternal/nodeconfig(2026-10-10). - The leader adds a removed server again at its reconcile (2026-10-10, two servers; 2026-10-09 and 2026-10-08):
every 60 s from the moment it took the leadership, while the gossip pool lists the server's member alive.
- The peer of a running follower was removed 25.3 s after the other server took the leadership. The leader added it
again, as a nonvoter with its old Raft ID, at 60.1 s. Removed again at once (200 in 0.02 s), it was added again at
120.2 s. The leader's log has
added peer, starting replication60.04 s and 120.06 s after it took the leadership. A second run saw three more re-adds, each 60 s after the leadership. A peer removed 0.5 s after a transfer was added again 60.0 s after the transfer. - The earlier runs saw 4.1 s after a removal (2026-10-08) and 39.8 s (2026-10-07): other phases of the same timer.
- By the source of v1.11.3 (
nomad/leader.go:247-330,leaderLoop, not run on 2.0.7): the leader starts its 60 s timer at the top of each pass and runs the first pass after it takes the leadership; it handles each Serf event of a member between passes. A pass can add nothing: a barrier that fails skips it (line 259), and so does a reconcile that fails (297-300), which stops at the first member whose handling fails (1496-1505). The next pass comes a minute later.
- The peer of a running follower was removed 25.3 s after the other server took the leadership. The leader added it
again, as a nonvoter with its old Raft ID, at 60.1 s. Removed again at once (200 in 0.02 s), it was added again at
120.2 s. The leader's log has
- Autopilot promotes a running server that was added again 9.6 s (2026-10-07), 14 s (2026-10-08) and 10.0 s
(2026-10-09) later.
- A nonvoter that autopilot counts healthy is promoted after it stops (2026-10-10, three trials). The leader added
the running follower again 56.1, 57.0 and 56.9 s after the removal, each time 60 s after the other server had
taken the leadership. The report listed the nonvoter healthy at the first read or 1.9 s later; the agent was stopped
(SIGKILL) 5.0, 3.1 and 3.1 s after the re-add. Autopilot promoted the stopped server 19.9, 10.2 and 20.2 s after the
re-add (
nomad.autopilot: Promoting server), and the leader loggedcluster leadership lost0.40, 0.51 and 0.43 s after each promotion: two voters, one stopped. Reads answered 500No cluster leaderfrom then on. Each time the stopped agent was started again, the leader had the leadership back 1.3, 0.3 and 0.3 s after its start. - By the source (v1.11.3): autopilot gets no stats from a server that does not answer (
nomad/stats_fetcher.go:68-72) and counts a member that Serf lists alive or leaving as alive (nomad/autopilot.go:255). The runs fit a server that keeps the health it last had until Serf fails its member. - A server that never read healthy is not promoted. A nonvoter stopped 0.1 s after its re-add, while the report
still listed it unhealthy, stayed a nonvoter: autopilot answered 429 with
FailureTolerance0 while it was listed, and removed it 40.0 s after the stop, when Serf marked it failed (2026-10-10).
- A nonvoter that autopilot counts healthy is promoted after it stops (2026-10-10, three trials). The leader added
the running follower again 56.1, 57.0 and 56.9 s after the removal, each time 60 s after the other server had
taken the leadership. The report listed the nonvoter healthy at the first read or 1.9 s later; the agent was stopped
(SIGKILL) 5.0, 3.1 and 3.1 s after the re-add. Autopilot promoted the stopped server 19.9, 10.2 and 20.2 s after the
re-add (
- The removed server's own API (2026-10-09): it answered every read in under 10 ms for 2.2 s after its removal.
From 2.4 s on, each read that needs the leader (
raft/configuration,autopilot/health,nodes) answered 500No cluster leaderafter 5.0 to 5.3 s;agent/membersanswered at once. - Autopilot's report after the removal of a live server listed it as before (alive, healthy) for 0.9 to 2.8 s and then left it out; the cluster read healthy throughout (four removals, 2026-10-09).
- The order by hand with two voters (2026-10-09): transfer (200 in 0.06 s), the peer removed 0.75 s later while both ran (200 in 0.01 s), the old agent killed 0.7 s after that, force-leave with prune: one healthy voter 3.5 s after the transfer, the member gone after 7.7 s, nothing added again in the time watched.
- Not measured: two live servers of one name both joining the gossip pool; a re-add that a Serf event of the removed member starts (read in the source, not run); what a server in bootstrap mode answers to the cluster's token; clients of a removed live server; the source of 2.0.7.
Combined nodes in a roll (v2.0.7, local on macOS darwin/arm64, nomad revision 9dcbdc5e; every agent combined,
on 127.0.0.1, with ACL, mTLS, gossip encryption, client_introduction { enforcement = "warn" }, leave_on_terminate = false, cleanup_dead_servers = true, raw_exec only and no intro token; a service job of raw_exec tasks with
migrate { max_parallel = 1, min_healthy_time = "5s" } and a system job; every request used the management token and
the operator certificate; reads came every 0.5 s; a stop is a SIGKILL of the agent). The runs were 2026-10-09 23:36 to
2026-10-10 00:02 UTC in four clusters of two to five agents, and the check of the window 2026-10-10 04:15 to 04:21 UTC.
The roll of combined groups rests on them (ADR-0039).
- Drains (deadline 2 minutes, system jobs not ignored, the meta
tent_machine).- The leader's own node with two voters (two service allocations): 200; the allocations moved to the other node one
at a time;
LastDrainreadcompleteafter 18.3 s; the node led throughout and stayed ineligible. - A follower at four voters (one service allocation): complete after 6.7 s, while the replacement was still pending; it ran 1.1 s later. The leader at four voters: complete after 7.3 s; it led throughout.
- The system allocation of a drained node got the desired status
stop(alloc not needed as node is tainted) about 1 s after the drain read complete. Its task still ran 4 s after the drain read complete on the first node, and 5.6 s and 5.1 s on the other two.
- The leader's own node with two voters (two service allocations): 200; the allocations moved to the other node one
at a time;
- A follower stopped with no leader change before (drained, four voters): its node read
down23.1 s after the stop; its memberfailedat 37.0 s; autopilot answered 429 withFailureTolerance0 at 38.0 s, had removed the peer at 38.6 s and was healthy with three voters at 40.1 s. A force-leave with prune then dropped the member at once. - Purges. The node of a down machine, purged 23.2 s after the stop while its server was still a voter and an
alivemember: 200; the node was gone and did not come back. A live combined node underwarn: 200; the node was gone at the next read; its service allocation was replaced on another node within 0.5 s; the node registered again 1.1 s after the purge, ready and eligible, and got a new system allocation. - Heartbeat timers after a leader change. After a leader change Nomad gives every node
failover_heartbeat_ttl, 300 s, until its next heartbeat (1.6). A drained leader whose leadership moved and whose agent was stopped soon after readreadyfor that long: stopped 1.44 s (two voters) and 1.69 s (four voters) after the transfer, its node readreadyfor 300.4 s and 300.7 s, and the leader loggednomad.heartbeat: node TTL expiredat 299.7 s in the first run. Both purges after it answered 200. The transfers answered 200 in 0.06 and 0.11 s, and no read in the 1.4 s after the second one (every 0.1 s) was unhealthy. - Stopped 70 s after the transfer (2026-10-10, two runs on a cluster of three agents with
bootstrap_expect = 3, a service job of two and a system job). In each run a new node joined, the leader's node was drained while it led, its leadership moved, and the old leader ran on for 70 s before it was stopped; four voters.- Run 1: the new node voted after 16.6 s; the drain read complete after 6.8 s; the transfer answered 200 in 0.08 s,
and autopilot gave all four servers a
StableSinceof the transfer; the agent was stopped 70.2 s after the transfer; its node readdown13.4 s after the stop. - Run 2 (its node held the system allocation alone): complete after 0.7 s, and the system allocation left the list of
running allocations 5.2 s after that; the transfer answered in 0.15 s with a new
StableSincefor every server; stopped 70.5 s after the transfer; its node readdown15.3 s after the stop. - After the two stops autopilot answered 429 with
FailureTolerance0 at 44.1 s and 39.9 s, the peer was out of the Raft configuration at 50.3 s and 39.9 s, and the report read healthy with three voters at 52.4 s and 42.0 s.
- Run 1: the new node voted after 16.6 s; the drain read complete after 6.8 s; the transfer answered 200 in 0.08 s,
and autopilot gave all four servers a
- Not measured: a drain that reaches its deadline on a combined node; a stop between 2 s and 70 s after a transfer; two voters whose victim does not lead at the removal; unhealthy reads after a transfer with combined agents (none in the two transfers of the first runs; M3.4 saw 8 in 52 with servers); Linux with Docker. Vultr is in 3.16.
Servers and drains in a scale-down (lab of 2026-10-10, 03:23 to 03:40 UTC, local Nomad v2.0.7, darwin/arm64,
nomad revision 9dcbdc5e). Servers s1 to s7 ran on 127.0.0.1 with leave_on_terminate = false, autopilot { cleanup_dead_servers = true }, gossip encryption, ACL on and bootstrapped, mTLS on HTTP and RPC with
verify_server_hostname and verify_https_client, client_introduction { enforcement = "strict" } and a
server_join { retry_join } to the servers that existed. Clients c1 (node class a) and c2 (class b) ran
raw_exec only, each with an intro token of TTL 30 minutes in <data_dir>/client/intro_token.jwt and the RPC address
of s1 alone in its configuration. Every request used the management token and an operator certificate, reads came
every 0.5 s, and a stop is a SIGKILL of the agent. The scale-down of update and the growth of a server group rest on
them (ADR-0040).
- Growth from 1 to 3 and from 3 to 5.
s1ran alone withbootstrap_expect = 1;s2ands3(bootstrap_expect = 3, empty data directories) were started one after the other, thens4ands5(bootstrap_expect = 5).- Each new server was a nonvoter in the Raft configuration at the first read, 0.5 s after its start, healthy in
autopilot's report at 1.1 to 2.1 s (
s2ands3), and a voter after 16.8, 17.8, 21.4 and 18.3 s; the report showed the vote 2 s later. FailureTolerancewas 0 with two voters and 1 with three (from 1 to 3), 1 with four voters and 2 with five.- The error
peer has a conflicting expect value. All nodes should expect the same numberwas logged by every new server, 1 to 4 times each, about the servers that expected another number.s1logged none. Nothing else followed from it.
- Each new server was a nonvoter in the Raft configuration at the first read, 0.5 s after its start, healthy in
autopilot's report at 1.1 to 2.1 s (
- A follower removed in tent's order (stop, wait for the member to fail, peer removal, force-leave with prune,
wait for healthy).
- From five voters (
s5): the member readfailed38.3 s after the stop; autopilot had removed the peer at 39.8 s and answered 429 withFailureTolerance1 and the serverleft; the force-leave with prune dropped the member at once; healthy with four voters at 42.0 s. - From three voters (
s4): the peer was gone and the memberfailedat the read 48.3 s after the stop; healthy with two voters,FailureTolerance0, at 50.6 s. - For
s7, also from three voters, the member readfailed38.3 s after the stop. At 39.3 s autopilot answered 429 withs7still in its report as a voter that had left, and the Raft configuration still listed it; tent'sRemovePeeranswered 200 in 0.02 s, the force-leave answered at 39.9 s, and the two servers read healthy at 41.4 s. Fors5,s1ands4autopilot had removed the peer before tent's order came to that call.
- From five voters (
- The leader removed from four voters (
s1): the transfer tos2answered 200 in 0.10 s; the next read, 0.2 s after it, showeds2leading, everyStableSinceat the transfer's second and autopilot healthy, and none of the reads in the 4 s watched was unhealthy.s1was stopped 4.2 s after the transfer (tent waits 70 s here):failedat 35.4 s, its peer gone and 429 withFailureTolerance0 at 36.4 s, healthy with three voters at 38.3 s. - From two voters to one, with the hold (
s3, a follower;s2led since 03:28:42.254). The peer of the runnings3was removed at 03:30:42.902, 0.65 s after the leader's reconcile of 120 s (200 in 0.03 s). The leader added it again as a nonvoter at 03:31:42.275, 180.02 s after it took the leadership and 59.4 s after the removal. The second removal answered 200 in 0.01 s; the agent was stopped 2.1 s after the re-add, withs2alone in the Raft configuration. A force-leave with prune answered 200; the member readleavingand was gone 6.3 s later. In the 135 s after the stop, across the leader's reconciles at 240 s and 300 s,s2led with one healthy voter and nothing was added. - The server that was left, restarted.
s2's configuration saysbootstrap_expect = 3. It was stopped and started again 3 s later: it loggedcluster leadership acquiredand answered as the leader of a Raft configuration of itself 2.0 s after its start. - Growth back from 1 to 3 under new names.
s6ands7(bootstrap_expect = 3) joineds2: nonvoters at 0.5 s, voters after 19.4 and 17.8 s. Neither logged the error about the expect value, sinces2expects 3 too. - A new server under a removed server's name, after tent's own steps. A new agent
s7at the same address with an empty data directory started 21.7 s after the prune. Its member was listed at 0.5 s (leavingat that read,aliveat 1.1 s). The leader added it as a nonvoter at 36.1 s and autopilot removed it 9.9 s later (nomad.autopilot: removed server), and again at 95.8 s, removed at 105.8 s. In each of those spans autopilot answered 429 withFailureTolerance0 and an unnamedleftnonvoter in its report. It did not vote in the 110 s watched. This is the finding of the block on servers in a roll again, after a removal by tent. - A drain whose allocations have nowhere to go (a service job held on
c1by a constraint on its node class, withmigrate { max_parallel = 1, health_check = "task_states", min_healthy_time = "5s" };c2was ready and could not take it;c1marked ineligible and drained with a deadline of 45 s and the metatent_machine).- One allocation: its desired status was
stopat 3.2 s; the drain readcompleteand the allocationcompleteat 8.4 s. Its replacement stayed blocked, so the job ran nothing. - Two allocations: the first got
stopat 3.2 s and was complete at 8.4 s; the second ran on until the deadline. At 46.1 s the drain readcompletewhile that allocation still readrunningwith the desired statusstop; 6 s later both were complete.
- One allocation: its desired status was
- Not measured: any of this on a real cloud (the runs of 2026-10-12 are in 3.16); combined agents in a shrink; two new servers whose agents start in the same second; a drain of two nodes at once.
Heartbeats of a client whose server stops (lab of 2026-10-10 on local Nomad 2.0.7, darwin/arm64, nomad revision
9dcbdc5e: four servers and twelve clients on 127.0.0.1 with ACL, mTLS, gossip encryption and strict client
introduction, one plain raw_exec job pinned to each client; the source lines are of v1.11.3, the closest on disk, and
of yamux v0.1.2, and every timer below matched what the lab did). The lab froze the server's process with SIGSTOP in
place of powering a machine off, because packets cannot be dropped on macOS without root. A frozen process answers
nothing and sends no FIN or RST, as a powered-off host does, so the session ends by yamux's keepalive in both cases.
The kernel of a frozen process still accepts new TCP connections, which then hang in the TLS handshake; a powered-off
host gives no answer and the pool's dial gives up after 10 s (helper/pool/pool.go:375). A real power-off may also be
reported unreachable by the network before the keepalive fires. A real power-off was not measured.
- Which server a client talks to. Every RPC goes to the first server of the client's list (
client/rpc.go:103,client/servers/manager.go:236-250). The list is the leader's Serf view, sent with every heartbeat answer; it is reshuffled when its members change, rotated when an RPC fails (rpc.go:124) and rebalanced every 5 to 10 minutes. The agent's API does not show the order:nomad agent-infoandGET /v1/agent/serverssort the list (client/client.go:1274-1281). On the node, the TCP connection to the RPC port that carries traffic tells. The allocation watch (Node.GetClientAllocs, blocking up to 5 minutes) stays on the server it started on, so a client can heartbeat through one server and watch through another. - The timers. The leader marks a node down after its heartbeat TTL (10 to 20 s:
nomad/heartbeat.go:107-108,nomad/config.go:628-629) plusheartbeat_grace(10 s:heartbeat.go:111,config.go:630) since its last heartbeat. The heartbeat RPC has no deadline (helper/pool/pool.go:498-513). Only yamux's keepalive ends a session to a server that stopped answering: a ping every 30 s that fails after 10 s (yamuxsession.go:349, 364-380;command/agent/config.go:1728-1731;agent.go:890-899). The keys areserver.heartbeat_grace(command/agent/config.go:641) andrpc.keep_alive_interval(config.go:836-845). A failed heartbeat is not retried inside the RPC; the next one comes 0 to 3 s after the session ends when another RPC of the client is pending, else after the heartbeat loop's own retry (1 to 2 s, or a random time up to 30 s when the heartbeat is more than 30 s overdue). - Defaults (6 trials, 24 clients of the frozen server): 19 read down, 10.2 to 26.6 s after the freeze. The session
ended 10.1 to 39.9 s after the freeze (103 rows). A plain allocation was marked
lost; when the node heartbeated again it read ready, a replacement was created on the same node within 0.9 s and the old task was killed. Of 345 rows of clients on other servers, 344 were untouched. - A job with
disconnect { lost_after = "3m" }(defaults, 5 allocations, with and withoutreplace = false): the node readdisconnectedand the allocationunknown, thenrunningagain with aReconnectedevent; the task was never killed. Plain allocations on the same node were lost and replaced. heartbeat_gracealone (clients at defaults, 3 trials each): 20 s, 8 of 13 down; 30 s, 2 of 12; 45 s, 2 of 13; 60 s, 0 of 13. The worst client needed 66.1 s.rpc { keep_alive_interval = "5s" }on the clients: the session ended 10.0 to 14.8 s after the freeze. With a grace of 10 s, 4 of 13 read down; with a grace of 20 s, 0 of 13 (the worst needed 12.4 s). These are tent's values.- A graceful end of the server's process (SIGTERM and SIGINT, 12 clients): the server stopped accepting connections 0.39 to 0.47 s after the signal, the clients moved within 1.7 s, and 12 of 12 nodes stayed ready.
- The Raft peer removed first, then the freeze (4 trials, 19 clients whose heartbeat failed on that server): the
server lost its leader 1.1 to 2.2 s after the removal and answered its own reads
500 No cluster leaderafter 5.0 to 5.2 s (nomad/rpc.go:646). The first heartbeat through another server came 9.7 to 27.4 s after the removal, and 19 of 19 nodes stayed ready. The leader added the server again as a nonvoter 34.1 to 39.8 s after the removal, and a nonvoter serves clients. - A leader change right before or after the freeze gives every node
failover_heartbeat_ttl, 300 s: with the old leader frozen 1.6 s after a transfer, 0 of 5 clients read down, and with a transfer between two other servers 2.1 s after the freeze of a follower, 0 of 11 (they would have needed up to 35.5 and 36.6 s). - A killed client read
readyfor 13.9 to 26.3 s at a grace of 10 s and 51.7 to 61.2 s at 45 s (4 each): the grace plus what was left of the TTL. With tent's 20 s that is 20 to 40 s from the kill, derived from these timers and not measured. - Not measured: a real power-off; more than 12 clients (the TTL grows above 500 nodes); a grace of 75 s; the
rpcblock under load or on a slow network.
ACL tokens that expire (v2.0.7, run on 2026-10-06 with curl and the operator certificate; source at the tag):
- The create.
PUT /v1/acl/token {"Name", "Type": "management", "ExpirationTTL": "24h"}with the bootstrap secret answers 200 with anAccessorID, aSecretIDof 36 characters (a UUID) and anExpirationTimeexactly 24 hours afterCreateTime.1manswers 200.30sanswers 400token 0 invalid: 1 error occurred:\n\t* expiration time cannot be less than 1m0s in the future (was 30s), and24h1m400... cannot be more than 24h0m0s in the future (was 24h1m0s).- The limits are
ACLTokenMinExpirationTTL1 minute andACLTokenMaxExpirationTTL24 hours (nomad/config.golines 697 and 698), checked inACLToken.Validate(nomad/structs/acl.goline 756). Nothing there depends on the type, so a management token may expire. GET /v1/acl/token/selfwith the new secret answers 200 with the same accessor, name and times.
- The limits are
- After the end. A token of 1 minute, read 4 s after its end:
GET /v1/acl/token/selfanswers 500rpc error: ACL token expired, whileGET /v1/jobsandGET /v1/operator/autopilot/healthanswer 403Permission denied. By the answer of/v1/jobsor of the autopilot report a caller cannot tell an expired token from a missing right. - The bootstrap secret must be a UUID, else 400
invalid acl token. - ⏳ A one-time token lives 10 minutes, and
nomad ui -authenticatemakes one (v1.11.3 source, not checked on 2.0.7); tent uses neither.
The nomad CLI's environment (v2.0.7, run on 2026-10-06; api/api.go lines 342 to 388):
- The client reads
NOMAD_ADDR,NOMAD_REGION,NOMAD_NAMESPACE,NOMAD_HTTP_AUTH,NOMAD_CACERT,NOMAD_CAPATH,NOMAD_CLIENT_CERT,NOMAD_CLIENT_KEY,NOMAD_TLS_SERVER_NAME,NOMAD_SKIP_VERIFYandNOMAD_TOKEN. No variable names a token file. - With
NOMAD_ADDR,NOMAD_CACERT,NOMAD_CLIENT_CERT,NOMAD_CLIENT_KEY,NOMAD_TLS_SERVER_NAMEandNOMAD_TOKENand nothing else (checked withenv), against servers whose certificate has DNS names only,nomad server members,nomad node statusandnomad job runof a small job worked, in sh throughevaland in fish throughsource(run asfish --no-config). The key was PKCS#8, and the token file held 36 bytes with no line end. - Without
NOMAD_TLS_SERVER_NAMEeach command exits 1 withx509: cannot validate certificate for 127.0.0.1 because it doesn't contain any IP SANs. - A raw_exec job needs
plugin "raw_exec"in the client configuration, since the driver is disabled by default. - After its table,
nomad server membersprints a hint on stderr: two empty lines and==> View and manage Nomad servers in the Web UI: <NOMAD_ADDR>/ui/servers.NOMAD_CLI_SHOW_HINTS=falseturns it off (run on 2026-10-07 against a cluster that tent built). A script that reads the table takes stdout alone. Throughtent uithe hint named the proxy's address. With the exported variables it then names a server's ownhttpsaddress (not seen: the run kept no output of that call), which a browser cannot open without the client certificate.
The web UI and the CLI behind a proxy that adds mTLS and a management token (v2.0.7, run on 2026-10-06 in Chromium
through Playwright, with a throwaway httputil.ReverseProxy, and read in the source at the tag):
- No sign-in.
/ui/lists jobs, clients and servers with no token entered. The UI calls/v1/acl/token/selfon every load and stores the secret of the answer inlocalStorage.nomadTokenSecret, so the browser then holds the proxy's token (the same sha256). A made-up secret stored first is overwritten, with no error shown (ui/app/services/token.js,routes/application.js). - Exec works with
Originremoved. WithOriginpassed on andHostrewritten to the server's, the upgrade fails with 500websocket: request origin not allowed by Upgrader.CheckOrigin; withOriginpassed on and the browser'sHostkept it works. The UI's live updates are websockets too (ws_handshake=true,ui/app/services/watcher-fetch.js), so the same pair breaks them. An agent optionhttp_disable_websocket_origin_checkand dev mode turn the check off (command/agent/http.go). - The websocket handshake reads the token from the first frame and, when a header also carries one, requires the two
to be equal (
command/agent/websockets.go,readWsHandshake). Behind the proxy they are. - Live updates. A job's page changed within 6 s of
nomad job stop, with no reload, and the log view followed new lines. - The log view first calls the node's own HTTP address from the browser, which fails (the node's API is not
reachable from outside), and falls back to the server through the proxy after a delay
(
ui/app/components/task-log.js). - CORS. Nomad answers cross-origin requests for 14 wrapped endpoints (
/v1/client/fs/,/v1/client/stats,/v1/client/allocation/,/v1/client/metadata,/v1/client/identity,/v1/vars,/v1/var/and others), with all origins, all headers and credentials./v1/jobs,/v1/agent/selfand/v1/namespace*have none. - Another page (on another port of the same host, whose
Sec-Fetch-Siteissame-site) calling a proxy that adds the token and removesOrigin:fetch('/v1/jobs')failed in the page, but the request reached Nomad, and a blindfetch(..., {method: 'POST', mode: 'no-cors'})of a namespace created it. WithOriginpassed on,/v1/varsand/v1/client/statswere readable. A proxy that answers 403 to a foreignHost,Originor aSec-Fetch-Siteother thansame-originandnonestopped all of it, and nothing was created. - The CLI with
NOMAD_ADDR=http://127.0.0.1:<proxy>and no other variable rannomad status,job run,job stop,alloc logsandalloc exec, with the checks on. It sends neitherOriginnorSec-Fetch-Site. - Not tested: a page left open across a restart of the proxy with a new token, and whether the UI falls back to polling when a websocket fails.
Node pools (since 1.6.0):
- Client configuration:
client { node_pool = "x" }, defaultdefault. The built-insdefaultandallcannot be modified, andallis for jobs only. A change to either gets 400modifying node pool "…" is not allowed(NodePool.UpsertNodePoolsinnomad/node_pool_endpoint.go). - Pools are auto-created when a client registers in the authoritative region (
Node.Registerinnomad/node_endpoint.go,UpsertNodeinnomad/state/state_store.go). A job that references a missing pool fails to register. - Per-pool
scheduler_configis Enterprise-only.
Joining servers:
- Use
server_join { retry_join = [...] }.server.retry_join,start_join,retry_intervalandretry_maxwill be removed in 2.1.0. - go-discover has no Hetzner provider. Issue #73 has been open since 2018, and PR #167 is still open.
- Built-in providers: aliyun, aws, azure, digitalocean, gce, linode, mdns, os, packet, scaleway, softlayer,
tencentcloud, triton, vsphere, and
srv(DNS SRV, since 2.0.4). - Nomad's docs suggest
exec=(go-netaddrs, since 1.7.0) with thehcloudCLI for Hetzner. - go-netaddrs runs the command without a shell, so pipes do not work. You need a wrapper that prints
space-separated IPs, plus
HCLOUD_TOKENon the node.
- Built-in providers: aliyun, aws, azure, digitalocean, gce, linode, mdns, os, packet, scaleway, softlayer,
tencentcloud, triton, vsphere, and
Agent configuration:
-
go-sockaddr templates work in
bind_addr,addresses.*,advertise.*andclient.network_interface.addresses.httpaccepts several space-separated addresses. -
File merging.
LoadConfigDir(command/agent/config.go) reads the.hcland.jsonfiles of a directory, skips temporary files, sorts the paths and merges the files in that order. A later file's single values win, except plain booleans such asleave_on_terminateandleave_on_interrupt: they merge with OR, so a laterfalsedoes not undo an earliertrue(Config.Merge, v2.0.7).client.metaandclient.optionsmerge key by key. A later, non-emptyserver_join.retry_joinreplaces the earlier list (ServerJoin.Merge). -
Unknown keys are errors. Each file is checked for keys that no field takes (
extraKeysincommand/agent/config_parse.go,helper.UnusedKeysinhelper/funcs.go). -
Parser. Agent configuration is still parsed with HCL1, with no HCL2 functions. Nomad's
go.modreplacesgithub.com/hashicorp/hclwith its forkv1.0.1-nomad-1. Upstream v1.0.0, which tent's tests use, shows (hcl/scanner/scanner.go,hcl/strconv/quote.go):- the scanner refuses U+E123 anywhere in a file, as "reserved for internal use";
- in a quoted string,
${opens a span that runs to its matching}. Quotes inside it do not end the string, and backslash escapes inside it are kept as written. HCL1 has no escape for${.
The fork itself was not read. Nomad 2.0.0 and 2.0.7, which parse with it, accept tent's golden files:
nomad config validatepassed each role's goldens on 2026-10-02 (1.6). -
Graceful shutdown settings.
leave_on_interruptandleave_on_terminatedefault to false.- With them enabled, a server leaves the peer set gracefully. SIGTERM leaves only with
leave_on_terminate, and SIGINT only withleave_on_interrupt(handleSignalsincommand/agent/command.go). - Clients with
drain_on_shutdown { deadline, force, ignore_system_jobs }drain themselves on shutdown, and stay ineligible after their next start (1.6). - How long the agent waits, and what a server's leave does to Raft: 1.6.
-
Jobs default to
datacenters = ["*"](since 1.5).
Client settings tent writes (v1.11.3 source, 2026-09-29, as above):
client.options."driver.allowlist"is a comma-separated list of driver names, each trimmed of white space (splitValueinclient/config/config.go). A non-empty list starts only those drivers (client/pluginmanager/drivermanager/manager.go); an empty one starts all.driver.whitelistis the old name.raw_execstays disabled until its plugin setsenabled = true(drivers/rawexec/driver.go).- Dynamic ports.
client.min_dynamic_portandmax_dynamic_portdefault to 20000 and 32000 (nomad/structs/network.go,DefaultConfigincommand/agent/config.go). - ACLs on clients. A client takes
acl.enabledfrom the agent configuration (convertClientConfigincommand/agent/agent.go). With it off, the client resolves every token to an ACL that allows everything (resolveTokenAndACLinclient/acl.go) and accepts any migrate token (ValidateMigrateTokeninclient/client.go). Soacl { enabled = true }belongs on clients too. - The state directory and the intro token.
client.state_dirdefaults to<data_dir>/client(convertClientConfig). When no token came by flag or environment, the agent readsintro_token.jwtin that directory; a missing file is no error (readIntroTokenFileincommand/agent/agent.go). - Joining.
server { server_join { retry_join } }joins the servers' Serf, whose default port is 4648.client { server_join { retry_join } }sets the client's servers, and an address without a port gets 4647 (resolveServerinclient/rpc.go). One agent may have both blocks.server.retry_joinstill works, with a deprecation warning, and cannot be combined withserver_join(handleRetryJoinincommand/agent/command.go,retryJoiner.Validateincommand/agent/retry_join.go).start_joinis refused for clients.
- A combined agent's client reaches its own server over the network. When the agent runs a server, it adds the
server's RPC bind and advertise addresses to the client's servers (
finalizeClientConfigincommand/agent/agent.go). No code outside tests sets the client's in-processRPCHandler(client/config/config.go,client/rpc.go). So a combined node must be able to reach its own RPC port on its private address. - Bridge networking.
- Nomad's CNI page asks for
net.bridge.bridge-nf-call-arptables,-ip6tablesand-iptablesset to 1 (docs, read 2026-09-29). These sysctls exist only while thebr_netfiltermodule is loaded. - The default bridge subnet is
172.26.64.0/20(client/allocrunner/networking_bridge_linux.go). Bridge-mode workloads reach the host from it. - tent's choice for client and combined nodes: load
br_netfilterand set the three sysctls; install Docker from the distribution's packages, with theoverlaymodule for its storage, unless the group's drivers leavedockerout. Servers get none of it. - Nomad's CNI configuration (v1.11.3 and v2.0.7,
client/allocrunner/cni/bridge.go): cniVersion 0.4.0, namenomad.loopback;bridgeon the bridgenomadwithipMasq,isGateway,forceAddress,hairpinModefrombridge_network_hairpin_mode(default false) and host-local IPAM on the bridge subnet;firewallwith the iptables backend and the admin chainNOMAD-ADMIN;portmapwithsnat. - In iptables (CNI plugins v1.9.1 and Nomad v2.0.7 source): the firewall plugin puts
-j CNI-FORWARDfirst infilter FORWARD.CNI-FORWARDjumps toNOMAD-ADMIN, then accepts each allocation's replies (-d <IP> ctstate RELATED,ESTABLISHED) and its own traffic (-s <IP>); Nomad adds-o nomad -d 172.26.64.0/20 -j ACCEPTtoNOMAD-ADMIN. So Docker's drop policy onFORWARD(6.2) does not break the bridge. portmap DNATs mapped ports innat PREROUTINGandOUTPUT(CNI-HOSTPORT-DNAT) and marks what it masquerades with0x2000. - A mapped port reached from another host never reaches the host's input chain: the DNAT before routing makes
it forwarded traffic to the post-DNAT address (the hook order is verified; the rest is inferred). A workload on a
bridge that calls the local agent, or a task with host networking, at the node's address does reach input. So
does a Docker container that calls a published port of its own node: with
userland-proxyon, the default, the DNAT rule leaves outdocker0, and docker-proxy answers (mobyiptabler/port.go). - Backends. The CNI plugins added nftables backends to
ipMasqandportmapin v1.6.0 (2024-10-15); both use iptables unless iptables is unusable (v1.9.1). The firewall plugin has only iptables and firewalld, and Nomad picks iptables. ⏳ v1.9.1 (2026-03-16) is the latest; v1.9.0 fixed CVE-2025-67499 in the nftables portmap.
- Nomad's CNI page asks for
Workloads on a client (read 2026-09-29), for the metadata block (architecture §9.4):
- Where they run (v1.11.3 and v2.0.7):
- A client creates
/sys/fs/cgroup/nomad.slice/{share,reserve}.sliceas plain directories when the agent starts; a server-only agent does not. - exec, raw_exec and java tasks run in
nomad.slice/<share|reserve>.slice/<alloc>.<task>.scope; raw_exec honours a job'scgroup_v2_override. - The docker driver sets no cgroup parent since 1.7.0 (GH-18371), so containers run in
system.slice/docker-<id>.scope, next to other services. - The artifact fetcher runs as root inside
system.slice/nomad.service.
- A client creates
- Capabilities. Nomad's default capabilities give tasks neither CAP_NET_ADMIN nor CAP_NET_RAW (v2.0.7
drivers/shared/capabilities/defaults.go). An operator adds them with a driver'sallow_capsand a task'scap_add. Docker's own default set, outside Nomad, includes NET_RAW. - Container logs. Nomad's docker driver sets json-file with 2 files of 2 MB on each container it starts (v2.0.7
drivers/docker/config.go), whatever the daemon's defaults.
TLS:
- Recommended:
rpc = true,http = true,verify_server_hostname = true,verify_https_client = true. Nomad's docs callverify_https_client = false"safe so long as ACLs are enabled". - Certificate names:
server.<region>.nomad,client.<region>.nomadandcli.<region>.nomad, pluslocalhostand127.0.0.1. nomad tlsalways uses ECDSA P-256. The CA is valid 5 years, other certificates 1 year.- The Go API client's
TLSConfighasCACert,CAPath,CACertPEM,ClientCert,ClientCertPEM,ClientKey,ClientKeyPEM,TLSServerNameandInsecure.
Status and agent endpoints (used by seed-and-refresh discovery and API-driven server removal):
GET /v1/status/leaderandGET /v1/status/peersrequire no ACL token; mTLS still applies.peersreturns the Raft peers' RPC addresses (["10.0.0.5:4647", …]). Their answers with?staleand on clients: 1.6.GET /v1/agent/servers(agent:read) lists the servers a client knows.PUT /v1/agent/servers?address=…(agent:write) replaces that list. Whether this survives a restart is not documented.- There is no
/v1/agent/leave. No endpoint makes an agent leave gracefully. PUT /v1/agent/force-leave?node=<node name>.<region>&prune=true(agent:write) removes a failed or left member from the Serf member list immediately; a name without its region answers 200 and changes nothing (2026-10-08, above). A member that is still alive rejoins.
Without a leader:
- A server that knows no leader holds each request that needs one for the RPC hold timeout, 5 s by default
(
RPCHoldTimeoutinnomad/config.go). Then it answers 500No cluster leader(getLeaderForRPCinnomad/rpc.go, the default status ofwrapincommand/agent/http.go). Writes need the leader, and so do reads without?stale. GET /v1/status/leadergoes the same way: without a leader it answers 500No cluster leader, and""only with?stale(Status.Leaderinnomad/status_endpoint.go).
The Go API client over HTTP:
Nodes().Listsorts the list byCreateIndexand panics on anullelement (NodeIndexSort.Lessinapi/nodes.go).api.NewClientcallsDefaultConfig, which reads theNOMAD_*variables, but takes only its address, and only when the given one is empty (api/api.go).- The client sends the token as
X-Nomad-Token(api/api.go). Go'snet/httpclient copies every header of the first request to each redirect. It drops onlyAuthorization,Www-Authenticate,Cookie,Cookie2,Proxy-AuthorizationandProxy-Authenticate, and those only when the host changes (makeHeadersCopierinnet/http/client.go, Go 1.27.1). So the token follows any redirect. - An agent takes at most 100 HTTP connections from one client IP by default:
limits { http_max_conns_per_client = 100 }(DefaultLimitsinnomad/structs/config/limits.go,connLimiterincommand/agent/http.go).
Fingerprinting:
- The only cloud environment fingerprinters are
env_aws,env_gce,env_azureandenv_digitalocean. There is none for Hetzner or Vultr. - Disable them with
client.options."fingerprint.denylist".
Backups:
- The snapshot agent is still Enterprise-only.
- In CE, use
nomad operator snapshot saveorGET /v1/operator/snapshot. Since 1.11.3 theoperator:snapshot-savecapability is sufficient. - Restore with
PUT /v1/operator/snapshot. - Snapshots contain the keyring, so treat them as secrets.
Volumes:
- Dynamic host volumes (1.10) are CE; only governance features are Enterprise.
- The hcloud CSI driver:
- Its docs say "Nomad is not officially supported". It does ship a Nomad guide (
docs/nomad/README.md) and runs Nomad 2.0.5 E2E in CI. - Requirements: plugin id
csi.hetzner.cloud, privileged Docker, the token stored as a Nomad Variable, single-node-writer volumes, a 10 GB minimum. - The latest release is v2.23.0 (2026-09-03).
- Its docs say "Nomad is not officially supported". It does ship a Nomad guide (
- Order. Servers first, one at a time with health checks, then clients.
- Methods. An in-place binary swap and restart is supported (allocations continue), and so is rolling VM replacement.
- Skew. The rule is "backward compatible for at least 2 point releases". Servers on 1.9+ reject clients older than 1.6. There are no downgrades.
- The upgrade guide, read on 2026-10-10 (
https://developer.hashicorp.com/nomad/docs/upgrade, which a fetch tool named the page of v2.0.x; the same sentences are inwebsite/content/docs/upgrade/index.mdxof the source of Nomad 1.11.3):- "Nomad strives to be backward compatible for at least 2 point release, so Nomad v1.7.x works with v1.5.x."
- "Nomad does not support downgrading at this time. Downgrading clients requires draining allocations and removing the data directory. Downgrading servers safely requires re-provisioning the cluster."
- "New features are unlikely to work correctly until all nodes have been upgraded."
- "While it is possible to upgrade Nomad client nodes before servers, this guide recommends upgrading servers first as many new client features will not work until servers are upgraded."
- "Rolling: New hosts containing the new Nomad version may be added followed by the removal of old hosts."
- "Continue with the upgrades across the servers making sure to do a single Nomad server at a time."
- The page of version details (
.../docs/upgrade/upgrade-specific, 2026-10-10) has sections for 2.0.0 and 2.0.4 and none for 2.0.5 to 2.0.7, and no sentence about versions that an upgrade may skip. The section of 2.0.4 says that 2.1.0 removesserver.retry_joinandserver.start_join; tent writesserver_join { retry_join }. - Minimum versions in the source of 1.11.3. A server turns some features on only when every server has a minimum
version (
ServersMeetMinimumVersion). An intro token is signed only when every server of the region runs 1.11.0 or newer (minVersionNodeIntro); 2.0.6 and 2.0.7 are above it. The other minimums were not read, and nothing was read in the source of 2.0.7. - Unverified: the skew rule has not been restated for the 2.x versioning scheme: the guide of 2026-10-10 still gives its example in 1.x terms.
- Measured on 2026-10-10 (a local lab on 127.0.0.1, macOS, darwin_arm64; Nomad 2.0.6, revision
f74ce32f, beside 2.0.7, revision9dcbdc5e; ACL, mTLS, gossip encryption andclient_introduction { enforcement = "strict" }; servers withbootstrap_expect = 3,server_join { retry_join },leave_on_terminate = falseandautopilot { cleanup_dead_servers = true }; up to seven servers and three clients withraw_execjobs; a server stopped with SIGKILL):- A 2.0.7 server joined three 2.0.6 servers: a nonvoter after 0.3 s, a healthy nonvoter in autopilot's report after
1.4 s, a voter after 13.4 s (15.3 s in the report), with autopilot healthy and failure tolerance 1 at every read.
The 2.0.6 leader logged
nomad.autopilot: Promoting server. The next two 2.0.7 servers voted after 17.4 s and 12.4 s. - A 2.0.6 server joined three 2.0.7 servers: Nomad 2.0.7 did not refuse it (one run). It was a nonvoter after 0.3 s, healthy after 1.9 s, and the 2.0.7 leader promoted it after 13.7 s. Autopilot stayed healthy and a job was placed meanwhile. Only tent's own rules keep an older server out.
- Autopilot's
Version, the node list'sVersionand the members'buildtag are2.0.6and2.0.7, with nothing before or after./v1/agent/selfhas an emptyVersionPrereleaseandVersionMetadata. During the mix autopilot reports each server with its own version and reads healthy. - The leadership moved from a 2.0.6 leader to a 2.0.7 server (200 in 0.06 s, autopilot healthy at the first read) and back (200 in 0.11 s; autopilot answered 429 with failure tolerance 0 for up to 2.2 s, as on one version, see 1.2). A job ran on a 2.0.6 client under a 2.0.7 leader after 1.1 s, and both versions gave an intro token.
- Servers rolled in tent's order (a 2.0.7 server first; for each 2.0.6 server a kill, the wait until autopilot stops
counting it, the peer removal, a force-leave with prune; the leader last, after a transfer): Serf marked the killed
servers failed after 36.1 to 43.7 s, autopilot removed two of three peers itself 0.5 to 1.6 s after that, and each
force-leave answered 200. The 2.0.6 client stayed
readyand eligible, its allocation kept its ID with 0 restarts, and jobs submitted after each removal ran on it within 1.6 s. Its/v1/agent/serverslisted the three 2.0.7 servers though its configuration names the old ones. Two and a half hours later it was stillready. - A 2.0.7 client with an intro token joined three 2.0.6 servers:
readyafter 0.3 s, and a job ran on it after 1.1 s. The control without a token was refused (node registration without introduction token: enforcement_level=strict). - The logs of ten agents hold no line about a version difference (
mismatch,incompat,unsupported,downgrade,upgrade,newer version,older version,protocol version,minimum version,version skew). - Not shown: a combined agent, a drain, Docker tasks, Linux, versions more than one patch apart, and tent-node's
refresh-join(the clients learned the new servers from Nomad's heartbeats). - On Vultr (runs
w28exzandae5dhs, 2026-10-14): a 2.0.7 combined node joined 2.0.6 ones and the roll of the three nodes ended, as in the local lab, with the leader moving once and noleaderlesspoll (3.16).
- A 2.0.7 server joined three 2.0.6 servers: a nonvoter after 0.3 s, a healthy nonvoter in autopilot's report after
1.4 s, a voter after 13.4 s (15.3 s in the report), with autopilot healthy and failure tolerance 1 at every read.
The 2.0.6 leader logged
- Binaries:
https://releases.hashicorp.com/nomad/{V}/nomad_{V}_linux_{amd64|arm64}.zip. The zip containsLICENSE.txt(mode 0644) and thennomad(0755), both regular files at the top, deflated, and nothing else. The linux zips of 2.0.0 and 2.0.7 take 53 to 59 MB and their binaries 137 to 147 MB: 2.0.7'snomadis 147,230,688 bytes on amd64 and 137,387,200 on arm64 (their central directories, read on 2026-10-02). - Checksums and signatures:
nomad_{V}_SHA256SUMS, plus detached signaturesnomad_{V}_SHA256SUMS.sigand….72D7468F.sig. - JSON index:
https://api.releases.hashicorp.com/v1/releases/nomad/{V|latest}. - Nomad 2.0.6 (checked on 2026-10-10). Its
nomad_2.0.6_SHA256SUMSlistsc6da734081a41d51cadf15ec880d5eab0313093a29d2ee0984ca5ae1cdf867ecfornomad_2.0.6_linux_amd64.zip. The sha256 of thedarwin_arm64zip that the lab of 1.3 ran matched its line,a76e9a8a63d8e6c62bae942834a32fafa66776657c285c0031da0abe3f87107a. tent's tests serve the file and its signature byte for byte (internal/assets/assetstest/testdata); the signature verifies at the test clock of 2026-09-28. - Release signing key:
https://www.hashicorp.com/.well-known/pgp-key.txt, fingerprintC874 011F 0AB4 0511 0D02 1055 3436 5D94 72D7 468F. The 2.0.7 signature and the linux_amd64 sha256 were checked and are valid. Checked again on 2026-09-28, for the copy that tent embeds:- The primary key is RSA 4096, made on 2021-04-19, and expires on 2030-03-01T23:14Z.
- Releases are signed with its subkey
374E C75B 4859 1360 4A83 1CC7 C820 C6D5 CD27 AB87(RSA 4096, made on 2021-04-21), which expires on 2030-03-01T23:15Z. The 2.0.7SHA256SUMS.sigis made with this subkey and SHA-256. - The file also holds an encryption subkey, which expires with the primary key, and a signing subkey that expired on 2022-04-20.
- A verifier that checks the key at the current time, as tent does, rejects every signature after the expiry, whenever it was made. HashiCorp can move the expiry with new self-signatures, and a verifier sees that only with a fresh copy of the key.
- APT. ⏳
apt.releases.hashicorp.comprovides arm64. Its signing key was rotated on 2026-09-09 after a security incident (HCSEC-2026-33); the new key isD55C 0D1A C78A 8D81 26CB 631C FC9C A96A CA02 6560. tent does not use the APT repository. - CNI plugins ⏳ (
containernetworking/plugins, which Nomad's bridge networking needs): the latest release is v1.9.1, of 2026-03-16. Each archive,https://github.com/containernetworking/plugins/releases/download/v{V}/cni-plugins-linux-{amd64|arm64}-v{V}.tgz, has a.sha256file next to it and no signature. The v1.9.1 sha256s in tent'sstablechannel were checked against the digests that GitHub lists for the release's assets on 2026-09-28.
- Nomad is BUSL 1.1 from 1.7.0. The 1.6.x tags are MPL-2.0.
- MPL-2.0 modules:
github.com/hashicorp/nomad/api(a separate module with no semver tags, so pin by pseudo-version; requires Go 1.26+),jobspec2,go-discover,go-netaddrs. - Do not import root-module packages such as
helper/tlsutil: they are BUSL. - tent's pin. tent pins
nomad/apiatv0.0.0-20260917172403-9dcbdc5e64ec, the commit of tag v2.0.7 (decision 16 of architecture §18). It bringshashicorp/cronexprv1.1.3,hashicorp/go-rootcertsv1.0.2 (MPL-2.0),gorilla/websocketv1.5.3 (BSD-2-Clause),go-viper/mapstructure/v2v2.5.0 (MIT) andmitchellh/go-homedirv1.1.0 (MIT).hashicorp/go-cleanhttpv0.5.2 (MPL-2.0), an indirect dependency before, is now direct. The licence check passes on./cmd/tent ./internal/nomadops(2026-09-29). - cronexpr offers Apache-2.0 or GPLv3 (its README) and ships both texts, as
APLv2andGPLv3. ItsLICENSEis Apache-2.0, and tent uses it under Apache-2.0. The licence check reads only files named likeLICENSE,COPYINGorNOTICE. - Size. Linking
internal/nomadopsadds about 150 KB to thetentbinary in a release build (-s -w), about 210 KB unstripped. Since M2.7aupdatecalls it. - Competitive use. BUSL "competitive offering" covers products provided on a paid basis. A free tool that downloads official binaries is fine; a paid managed-Nomad offering would need a commercial licence. This is not legal advice.
- Forks. No maintained, foundation-backed fork exists. OpenNood/nood (based on 1.6.5) has had no commits since December 2023. (Medium confidence.)
What tent-node's join, nomad, verify and refresh-join rely on, and the shutdown facts behind tent's agent
configuration (ADR-0030). Read in the v2.0.7 tag (commit 9dcbdc5, 2026-09-17) and
in the docs of 2.0.x on 2026-09-29, and seen in live runs of the official nomad_2.0.7_darwin_arm64 binary, with ACLs
on and without TLS, on 2026-09-29, unless an item says otherwise. The M2.6b VM checks of 2026-10-05 (runs bxkllh
on Ubuntu 24.04 and g2rl9d on 26.04, 3.16) settled the items that name them; those still
marked 🔬 are open.
Health and status (live runs, and the source where an item says so):
GET /v1/agent/healthneeds no ACL token. It answers 200 withapplication/jsonwhen the agent is healthy, and 500 with the same JSON astext/plainwhen not.?type=clientor?type=serverchecks one part; a part that the agent does not run fails (client not enabled).- A server runs the
Status.LeaderRPC, which the leader answers. Without a leader it answers 500{"server":{"ok":false,"message":"No cluster leader"}}after the RPC hold of 5 s. With?staleit answers 500 at once, with the messageno leader. - A client is healthy when its list of servers is not empty. The list starts empty, and retry_join adds a server
only after a
Status.Pingto it succeeds. Unhealthy is{"client":{"ok":false,"message":"no known servers"}}. In a live run the client turned healthy right after the join althoughNode.Registerfailed withPermission denied. - On a combined agent the client part is healthy at once, since the local server's RPC address is in its list (1.2). The server part needs a leader.
- A server runs the
GET /v1/status/peersand/v1/status/leaderneed no token: the agent drops their auth errors on purpose.- A server without a leader answers 500
No cluster leaderafter 5 s. With?staleit answers from its local Raft configuration:[]before the bootstrap, and""for the leader. SoGET /v1/status/leader?staleanswers 200 on a server without a leader. - Peers are RPC addresses,
"10.0.0.5:4647", and in IPv6"[fd00::1]:4647"(source only). - A client forwards both to a server, but blocks until the node has registered: in a live run a request to a client that had not registered hung for 12 s.
- A server without a leader answers 500
- Server certificates name no node address: tent's carry
127.0.0.1alone (architecture §9.1). A caller that dials a server's private IP setstls.Config.ServerNametoserver.<region>.nomad. The M2.6b VM checks made one such call on a real node:refresh-joinasked the node's own agent at127.0.0.1withserver.global.nomad, and got the node's address. The M2.7a cluster check (runqypvsk, 2026-10-05, 3.16) made the first call between two machines: a client's05-join.hcllists the three servers' RPC addresses, and itstent-node-join.serviceran 3 times with 0 failed runs. The answer matched the seed, so the file was not rewritten; that the mTLS call with the TLS nameserver.<region>.nomadworked is inferred from the runs that did not fail. 🔬 E2E still has to show a call after servers have been replaced.
The stock unit (.release/linux/package/usr/lib/systemd/system/nomad.service): Wants= and
After=network-online.target; User= and Group=root; Type=notify; EnvironmentFile=-/etc/nomad.d/nomad.env;
ExecReload=/bin/kill -HUP $MAINPID; ExecStart=/usr/bin/nomad agent -config /etc/nomad.d; KillMode=process;
KillSignal=SIGINT; LimitNOFILE=65536; LimitNPROC=infinity; Restart=on-failure; RestartSec=2;
TasksMax=infinity; OOMScoreAdjust=-1000; WantedBy=multi-user.target. HashiCorp's e2e units add
StartLimitIntervalSec=0 and StartLimitBurst=3.
- sd_notify (since 1.8.0): the agent sends
READY=1once it is set up and its signal handlers are in place, without waiting for a join or a leader, and again after a SIGHUP reload (handleSignalsaftersetupAgentincommand/agent/command.go, v1.11.3, read 2026-10-02). On the M2.6b VM checkssystemctl startof a combined node'sType=notifyunit returned 1.0 to 1.4 s after tent-node asked for it (by the timing of the log lines), far within systemd's default start timeout of 90 s. KillMode=process: the executor and logmon processes of tasks stay in the unit's cgroup and must outlive a restart of the agent. They do: on the M2.6b VM checkssystemctl restart nomad.servicewith a docker job running left its container with the same id and start time and the task unrestarted. At a shutdown systemd logsUnit process … (nomad) remains running after unit stoppedfor two such processes.Delegate=yesis not needed: Nomad writes the rootcgroup.subtree_controland makesnomad.sliceitself (GH-18211).- cgroups v2: the client needs root and
cpuset cpu io memory pidsin/sys/fs/cgroup/cgroup.controllers, and nothing from the unit. On the M2.6b VM checks the client reported the docker and exec drivers healthy on 24.04 and 26.04 (Driver Status = docker,exec), so its cgroup checks passed (inferred). 🔬nomad.sliceitself was not listed.
Stopping (command/agent/command.go):
- Without
leave_on_terminate, SIGTERM makes the agent exit with 1 at once (1.2). - The graceful wait is
gracefulTimeout, 5 s, plus the client'sdrain_on_shutdowndeadline (terminateGracefully, v2.0.7). systemd's default stop timeout of 90 s would cut a long drain short; without a drain it covers the 5 s.
A client's drain at shutdown and its eligibility (verified on 2026-10-03 in the v2.0.7 tag, commit 9dcbdc5, and
on a local 2.0.7 cluster on macOS: the official darwin_arm64 binary, one server and one client, ACLs on; -dev
skips the self-drain):
- On SIGTERM with
leave_on_terminatethe client callsDrainSelf(client/drain.go:16-86). Without adrain_on_shutdownblock it returns at once, since the drain configuration is nil (DrainConfigFromAgentinclient/config/drain.go; read in v1.11.3 on 2026-10-03 too), and the agent exits with 0 as soon as the leave returns, within the 5-second graceful wait (command/agent/command.go:1058-1064and1083-1089;Client.Leavereturns at once,client/drain.go:17-20). With one it sendsNode.UpdateDrainwithMarkEligible=false(drain.go:34) and the meta messageshutting down. - When the drain completes,
NodesDrainCompleteclears the drain strategy and leaves the eligibility as it is (nomad/drainer_shims.go:26,nomad/state/state_store.go:1231-1236). At the client's next registration the server keeps the stored eligibility (state_store.go:1016-1018), and the client takes it (client/client.go:2299-2303). - Live: an eligible client, stopped with SIGTERM, was ineligible, with its last drain's AccessorID
client:<id>and the messageshutting down; after a start it wasreadyandineligible. A crash, SIGKILL or a power loss leaves it eligible (by the source: onlyDrainSelfmarks it). - Nomad has no setting that makes the client eligible again: hashicorp/nomad#17093, open since 2023-05-05 and
accepted, where a maintainer writes "Currently there's no built-in way to do that". The docs of 2.0.x
(
configuration/client.mdx) say nothing about eligibility afterdrain_on_shutdown. - The node's secret ID can clear it through
PUT /v1/node/<id>/drain(verified live). Nomad's code says the secret ID "is no longer used as the primary authentication method" and still uses it while the servers are not upgraded (client/client.go:935-942).node:writehas no per-node scope (acl/policy.go:239-241): it covers the drain, eligibility, purge and meta of every node, the garbage collection of allocations and intro tokens.
A server's leave_on_terminate (verified on 2026-10-03 in the v2.0.7 source and live runs of three local
servers with ACLs, retry_join and bootstrap_expect = 3):
- With it, SIGTERM makes a leader remove itself from Raft, and a follower waits up to 5 s for the leader to remove it
(
nomad/server.go:817-908). That wait (raftRemoveGracePeriod, after the Serf leave,server.go:861-906) can outlast the agent's graceful wait of 5 s: the agent then exits with 1, and systemd would show the unit failed after the stop, though the stop, and a restart, complete (inferred; the runs had no systemd). A combined agent in a cluster of several servers runs the same server code, so it does the same (by the source, not run). - At the next start Serf has forgotten its peers (
rejoin_after_leaveis false), retry_join brings the server back, the leader adds it as a nonvoter, and autopilot promotes it (server_stabilization_time, 10 s). In the runs it was a voter again 7 to 20 s after its start; the 7 s case, the former leader, is not explained. - A whole cluster whose servers left one by one comes back only through the last server to leave: until it starts,
the others answer
No cluster leader. - Without it, a short restart keeps the voter set. A stopped server stays a voter until autopilot removes it (about
40 s in the run) or
DELETE /v1/operator/raft/peerdoes. - A single server (
bootstrap_expect = 1, as a combined node of one) skips the removal and comes back as it was. - A hard power-off never leaves.
- The docs of 2.0.x (
configuration/index.mdx) say to set it on servers only "if the terminated server will never join the cluster again"; hashicorp/nomad#7943 gives the reasons (extra Raft log entries, Raft v2 ids). - Run on 2026-10-05 (three local servers with
leave_on_terminate = false, Nomad 2.0.7darwin_arm64, TLS and ACLs on): SIGTERM to a follower made it exit with status 1 within 0.28 s, and 0.44 s in a second run, and the log saidnomad: serf: Shutdown without a Leave. In 25 polls ofGET /v1/operator/raft/configuration, one a second from 2 s before the stop to 12 s after the restart, it stayedVoter=truewhile it was down (8 s) and after it restarted with the samedata_dir. Autopilot was healthy with three voters again. On a real server the unit showed failed after that exit status (3.16, runqypvsk, 2026-10-05).
A new cluster's bootstrap and first clients (what update of M2.7a relies on). Run on 2026-10-05 against local
Nomad 2.0.7 agents: the binary from the official nomad_2.0.7_darwin_arm64.zip, whose sha256 matches HashiCorp's signed
nomad_2.0.7_SHA256SUMS, ports 14700 to 14732 on 127.0.0.1, region global, TLS on HTTP and RPC with
verify_server_hostname and verify_https_client, ACLs on, certificates made with openssl. Requests came from curl
and python over mTLS; the source is the v2.0.7 tag:
PUT /v1/acl/bootstrapwith an unknown secret inX-Nomad-Tokenis accepted. With the header set to the bootstrap secret S and the body{"BootstrapSecret": "S"}, before any bootstrap: HTTP 200 and a management token whoseSecretIDwas S. A second identical call answered 400ACL bootstrap already done (reset index: 8), andGET /v1/acl/token/selfwith S returned the same token.GET /v1/status/leaderwith an unknown token answered 200 before the bootstrap.- The source agrees.
ACL.Bootstrap(nomad/acl_endpoint.go:450-452) throws away any auth error "so that we can measure rate metrics" and only authenticates. A non-emptyBootstrapSecretmust be a UUID, else 400invalid acl token, and becomes theSecretID(lines 497-504). The HTTP handler (ACLTokenBootstrap,command/agent/acl_endpoint.go:145-162) takes PUT or POST, reads the header into the request and checks nothing. nomadops.Client.Bootstrapitself was not run: the check used curl and python, not the Go client.
- The source agrees.
- A new cluster is healthy at once.
GET /v1/operator/autopilot/healthwith the bootstrap token, for one server (bootstrap_expect = 1): HTTP 200,Healthy, one voter. For three servers (bootstrap_expect = 3), started one after another within about 1 s: the first leader showed 1.5 s after the poller started, the bootstrap answered 200 at once, and the first health call after it, 0.02 s after the leader showed, was healthy with three voters, allVoter=true. The log saidfound expected number of peers, attempting to bootstrap cluster. All three servers are in the first Raft configuration, so no promotion is awaited. Localhost timing only: VMs are slower. - Intro tokens.
PUT /v1/acl/identity/client-introduction-tokenwith{"NodeName": "n1", "NodePool": "default", "TTL": "30m"}and the management token answered 200 with{"JWT": …}. The string30mis accepted (exp - iat = 1800);ACLIdentityClientIntroductionTokenRequestinapi/acl.gohasTTL time.Duration,NodeName,NodePool.- Size. 739 bytes for the node name
n1. The JWT is RS256 with the claimsaud,exp,iat,jti,nbf,nomad_node_name,nomad_node_poolandsub(node-introduction:global:default:n1:default), so each character of a longer name adds about 4/3 bytes twice, in the name claim and insub. strict. A client with the token in<data_dir>/client/intro_token.jwt(0600) registered (client: node registration complete,GET /v1/nodesshowed itready). The file stayed after registration. A client without a token did not register: the client loggedPermission deniedforNode.Register, the servernode registration without introduction token: enforcement_level=strict, andGET /v1/nodeswas empty.- The log lines (Nomad 2.0.7, a local server with
client_introduction { enforcement = "strict" }and a client with no token, 2026-10-07). The server logs[ERROR] nomad.client: node registration without introduction token: enforcement_level=strict node_id=<uuid> node_pool=default node_name=rogue. The client logs[ERROR] client.rpc: error performing RPC to server: error="rpc error: Permission denied" rpc=Node.Register server=...and[ERROR] client: error registering: error="rpc error: Permission denied".GET /v1/nodesstays empty. The E2E stepintro-tokenlooks for the server's line, withnode_name=e2e-rogue, and for the client'serror registeringline (ADR-0034). warn. After the servers restarted withenforcement = "warn", a client without a token registered, and the server logged a warning withenforcement_level=warn.- The keyring signs the tokens, and it comes after the leader (Nomad 2.0.7, 2026-10-07). A local server with ACLs
and strict introduction had a leader at 2.05 s and its ACL bootstrap at 2.09 s; at 2.13 s
GET /v1/operator/keyring/keysanswered 200 with[], andPUT /v1/acl/identity/client-introduction-tokenanswered 500failed to sign node introduction identity claims: keyring has not been initialized yet; at 2.28 s the keys listed one with"State":"active"and the token was issued. The agent loggednomad.keyring: initialized keyringafter the failed request. In the v2.0.7 source, both calls are forwarded to the leader, andactiveCipherSet(nomad/encrypter.go) fails with that text while the state store holds no active root key. The E2E run4bjbp8on Vultr hit it with one server: the first client's intro token got the 500 right after1 Nomad server is healthy. Since M2.9 the Nomad step ofupdatewaits for an active key before it scrubs the servers and asks for any intro token.
- Size. 739 bytes for the node name
Nodes of one name and expired intro tokens. Run on 2026-10-05 against local Nomad 2.0.7 (the official
nomad_2.0.7_darwin_arm64.zip, sha256 4ada34db43f8b75c80c4e09ce50f4753e661bcb4a3745f415dd4aa7d01483e58, which
matches nomad_2.0.7_SHA256SUMS): three servers, region global, TLS on HTTP and RPC, ACLs on, strict client
introduction unless said otherwise, the default heartbeat and garbage-collection settings. The source is the v2.0.7
tag:
- A killed client reads
downafter 14 to 16 s. SIGKILL at t=0, polled every 2 s:readyat 14.1 s,downat 16.1 s. The defaults allow 20 to 30 s from the last heartbeat, which is 10 to 30 s from the kill: a heartbeat TTL of 10 s plus a random stagger of up to 10 s, plus a grace of 10 s (nomad/config.go,nomad/heartbeat.go). tent sets a grace of 20 s, which allows about 20 to 40 s from the kill (derived, not measured; see the block on heartbeats in 1.2). After a leader change every node that is not terminal getsfailover_heartbeat_ttl, 300 s (read in the code and measured on 2026-10-10: 1.2), so a dead client can readreadyfor up to 5 minutes then. - A client keeps its node through the removal of every server (lab of 2026-10-10,
1.2).
c1andc2, each with the RPC address ofs1alone in its configuration, readreadyand eligible at every read through the removal of five servers and the restart of the last one, and still 5 min 35 s after that restart, past Nomad's 300 s timer after a leader change.c2's log shows its RPCs going tos4, thens3, thens2as the servers went. - The node stays listed. 5 minutes later it was still
down;node_gc_thresholdis 24 h (not waited for). - A new client of the same name registers at once, as a second node. With an empty data directory, the same HTTP
address and a new intro token,
GET /v1/nodeslisted two nodes calledc1: onedownand oneready, with different IDs and the sameAddress. - An intro token works for 60 s after its expiry.
VerifyClaim(nomad/encrypter.go) calls go-jose v3.0.5'sValidate, whose default leeway is one minute. With tokens of TTL 1 s, a new client registered when it started 30, 50 and 58 s afterexp, and was refused at 62, 75 and 80 s (Permission deniedforNode.Register; the server loggednode registration introduction authentication failure … token is expired (exp)). The client retries on its own and never registers. - Under
warnan expired token is refused too (the server logged the same failure withenforcement_level=warn), and a client without a token registers (node registration without introduction token).newRegistrationAllowed(nomad/node_endpoint.go:312) returns before it looks at the level when the token fails. The default enforcement iswarnwhen theserverblock sets none (nomad/structs/node.go:860). - A new combined agent under
warnregisters at once (2026-10-09 and 10, seven agents, local Nomad 2.0.7 with ACL, mTLS and gossip encryption, no intro token): its node was ready and eligible 0.5 to 0.6 s after the agent started, and the leader loggednode registration without introduction token: enforcement_level=warn. Its server voted 12.8 to 22.2 s after the start (12.8, 15.4, 13.8, 22.2, 19.5, 20.2 and 19.8 s). A system job's allocation ran on one of them 1.6 s after its start, while its server was a nonvoter. At the first start of three agents two nodes were ready after 2.0 s and the third, the leader's, after 17.6 s. - The server accepts any TTL.
1s,5s,10s,20s,1m,0s(the server default, 5 m),500ms,1msand-1sall answered 200, so a TTL has no lower bound; one abovemax_identity_ttlis cut to it. A TTL that works is limited by the 60 s of leeway.
What the agent reads once:
- retry_join is read only at start; SIGHUP does not reload it (live run). SIGHUP reloads the log level, the TLS certificates, the scheduler workers, some Raft settings and the client's fingerprinters.
retry_intervaldefaults to 30 s andretry_maxto 0, which sets no limit (DefaultConfigincommand/agent/config.go,retryJoinerincommand/agent/retry_join.go, v1.11.3, read 2026-10-02).
The data directory:
- The agent makes missing directories and never changes the mode of one that exists: a server's
data_dirandserver/0755 and its keystore 0700; a client'sclient/0700,alloc/0711, and<parent of data_dir>/alloc_mounts0711 (/var/lib/alloc_mounts). - A
client/made beforehand with mode 0700 and holdingintro_token.jwtwas left as it was. The agent reads the token once at start, and never removes or rewrites it.
Settings tent turns off:
disable_update_check = true, a top-level setting, stops the agent's update check with HashiCorp (docs).- Consul auto-join.
consul { server_auto_join, client_auto_join }default to true (DefaultConsulConfiginnomad/structs/config/consul.go, v2.0.7, read 2026-09-30). With these defaults and no Consul, the agent logs Consul discovery errors every few seconds (live run). With both false, a server sets up no Consul bootstrap handler (setupConsulSyncerinnomad/server.go) and a client runs no Consul discovery (consulDiscoveryinclient/client.go). The agent still asks Consul otherwise: a client's Consul fingerprinter runs every 15 s (client/fingerprint/consul.go; these three in v1.11.3, read 2026-10-02).
nomad config validate <dir>:
- It merges a directory as the agent does (
*.hcland*.json, sorted, subdirectories skipped, a later non-empty retry_join replacing an earlier one), refuses unknown keys and runsIsValidConfig; it exits with 1 on errors. It does not resolve go-sockaddr templates, and missing TLS files only warn, with exit 0. A top-levelserver_join {}passes and is ignored (source and live runs, 2026-09-29). - Zips exist for darwin on amd64 and arm64, linux on amd64 and arm64, and windows on amd64.
- tent's online test ran it on darwin/arm64 on 2026-10-02 with Nomad 2.0.0 and 2.0.7, on each role's directory of
tent's goldens: each printed
WARNING: Error when parsing TLS configuration: open /etc/nomad.d/tls/ca.pem: no such file or directoryandConfiguration is valid!, and exited with 0. A file withtent_unknown_key = trueexited with 1:Error loading <dir>/50-unknown.hcl: unexpected keys tent_unknown_key. With several bad files only the first in name order is named (2.0.7, 2026-10-02).
Seen on Ubuntu (the M2.6b VM checks, 2026-10-05): Nomad bound to the node's private address at its start, so
the VPC interface was up by network-online.target and the go-sockaddr templates resolved; at a shutdown with a job
running Nomad stopped in 1.1 s, before Docker, without a drain; the client was ready and eligible after the reboot.
Nomad did not reattach to its container after systemctl restart docker (6.2).
After a hard stop of a server (run w28exz, 2026-10-14, Nomad 2.0.7). At about 01:07:29 a server stopped (a
power-off). The probe's next read of the allocations through it timed out (7.1 s). Then for 30.2 s the reads of the
checks of both running allocations failed, while the reads of the allocations and the service's registrations answered
through other servers and listed both allocations running. A read of the checks goes over the connection of the
allocation's client to a server. By a reading of Nomad's source, the client keeps that connection until its keepalive
fails (5 s interval, about 10 s more for the ping) and its next heartbeat registers the node on another server. Run
ae5dhs showed one stretch of 20.1 s without readable checks (upgrade) and one poll of 7.1 s in which the read of the
registrations through a server that had just stopped failed (ha). Run qkmdrs showed one of 7.1 s (upgrade). The
server rolls of ha in both runs showed no stretch without readable checks.
A rebooted client (run ae5dhs, 2026-10-14). A worker that was built with the old servers and restarted after all
three servers had been replaced came back with the same node ID. SSH answered from a new boot 2 min 17 s after the
restart, and 11 s later the journal of that boot held client: node registration complete and Nomad listed the node
ready and eligible. After the boot its 05-join.hcl named the three new servers.
A tent-node of another version (the first E2E run, run 0oqujb, and a debug cluster built the same way,
e2e-dbgaa1-2404, 2026-10-07). tent-node's preflight refuses a tent-node whose version is not the one in the
NodeConfig's tent-node asset. The suite had built tent with go build, so its version was dev, and the tent-node that
make dev-upload had uploaded carried the Makefile's git describe version. Both clusters of the run failed at
create; on the debug cluster preflight failed with tent-node is v0.1.0-rc.3-2-gf15e11a, not dev, the version of the node config's tent-node asset. tent-node failed, so ufw stayed on and dropped port 4646, while SSH from the runner
still passed (the cloud firewall's /32 rules worked). create then failed after about 11 minutes with failed to wait for a Nomad leader: ... <ip>:4646: ... no answer within 30s. A development build of tent and the tent-node that
TENT_NODE_URL names must carry one version; make build gives both binaries one. The suite checks this by comparing
TENT_NODE_SHA256 with the sha256 of the tent-node from the same make build, since a second make build of one
commit writes another DATE and so another sha256.
- Rate limit. The default is 3600 requests per hour per project, refilling at 1 per second, with bursts
allowed.
- Headers:
RateLimit-Limit,RateLimit-Remaining,RateLimit-Reset(a UNIX time). - Exceeding the limit gives
429 rate_limit_exceeded.
- Headers:
- Labels.
- A key is an optional prefix (a DNS subdomain of at most 253 characters, followed by
/) plus a name of at most 63 characters. The name starts and ends alphanumeric, with-,_and.allowed inside. - A value is at most 63 characters with the same character rules, or empty.
- The
hetzner.cloud/prefix is reserved.
- A key is an optional prefix (a DNS subdomain of at most 253 characters, followed by
- Label selectors:
k=v,k==v,k!=v,k,!k,k in (a,b),k notin (a,b), combined with commas (AND). - Waiting on actions. There are no webhooks, so you poll actions.
GET /actions?id=…&id=…batches up to 25 ids per request. hcloud-go'sAction.WaitFor/WaitForFuncdoes this (since v2.8.0).- The per-resource action endpoint
GET /<resource>/{id}/actions/{action_id}is deprecated (2026-04-30).
- Tokens. Tokens are per project: Read or Read & Write. There are no finer-grained permissions.
-
Capacity. Since 2026-06-26 a status incident says Hetzner restricts server creation for new customers and some randomly chosen existing customers. Every CX and CAX plan is marked "not available" on the website. A tool must:
- check
server_types[].locations[].available; - handle
412 resource_unavailable; - handle a create action that fails after the server briefly appears.
- check
-
Default limits:
- 5 servers per account. The docs also mention 8 dedicated-vCPU servers.
- 20 load balancers, 50 firewalls, 30 snapshots and 10 floating IPs.
- Primary IPs: up to 2× the server limit.
- 50 placement groups per project.
- Up to 3 networks per server.
-
Raising limits. Console → Limits → Request change. Allowed only after one month and a paid first invoice.
-
Server type names changed on 2025-10-16:
- CX22/32/42/52 became CX23/33/43/53.
- CPX11–51 became CPX12/22/32/42/52/62 in FSN, NBG, HEL and SIN. The old CPX types remain in ASH and HIL.
- CAX11–41 (Arm) and CCX13–63 (dedicated AMD) are unchanged.
- CX and CAX are EU-only.
- The API field
deprecatedis removed on 2026-11-02; uselocations[].deprecation.
-
Prices. Prices rose for all products on 2026-04-01, and again on 2026-06-15 for new orders and rescales. EU prices per month, excluding VAT and IPv4:
Type Specs €/month CX23 2 vCPU, 4 GB, 40 GB 5.49 CX33 4 vCPU, 8 GB 8.49 CAX11 2 Arm vCPU, 4 GB 5.99 CAX21 4 Arm vCPU, 8 GB 10.49 CPX12 1 vCPU, 2 GB 11.49 CPX22 2 vCPU, 4 GB, 80 GB 19.49 CPX32 4 vCPU, 8 GB 35.49 CCX13 2 dedicated vCPU, 8 GB 42.99 - Primary IPv4 costs €0.50 per month; IPv6 is free.
- The smallest load balancer, LB11, costs €6.99 plus €0.50 for IPv4.
- US examples: CPX11 €17.49, CCX13 €43.49.
-
Type picks:
- Nomad servers: CX23 or CAX11 when in stock, otherwise CPX22.
- Workers: CX33, CX43 or CAX21–31, otherwise CPX32 or CPX42.
- CCX for steady CPU.
| Network zone | Locations |
|---|---|
eu-central |
fsn1, nbg1, hel1 |
us-east |
ash |
us-west |
hil |
ap-southeast |
sin |
- Networks. All subnets of a network are in one network zone. Servers in different locations of that zone can
share it, which is useful in practice only in
eu-central. - Location binding. Load balancers and floating IPs are bound to a network zone; primary IPs to a location.
- Datacenters are gone. ⏳
/datacentersreturns 410 from 2026-10-01, and thedatacenterfield was removed from servers and primary IPs on 2026-07-01 (hcloud-go v2.45 removed it). Use locations.
POST /serversparameters:networks: IDs only, and the IP is assigned automatically;start_after_create(default true);placement_group;firewalls(applied to the public interface);public_net.enable_ipv4/enable_ipv6;ssh_keys,labels,volumes,automount;location(ID or name).
user_data:- limited to 32 KiB;
- cannot be updated (
PUT /serverschanges only the name and labels); - since 2026-01-16, a rebuild, which wipes the disk, can replace it.
shutdownsends an ACPI request, and the action status only reflects that it was sent. Usepoweroffif the server must be off.DELETE /servers/{id}removes the server immediately and detaches volumes, primary IPs, floating IPs, firewalls and placement groups.- Names. Server names must be unique per project and be valid hostnames.
- SSH keys are unique per fingerprint within a project.
- Subnet types:
cloud(use this);server(deprecated);vswitch, which couples a Robot dedicated-server vSwitch into the cloud network. This makes a future bare-metal client option possible.
attach_to_networktakesnetwork,ip(request a specific IP),alias_ips(up to 5, configured on the host by hand) andip_range(auto-assign from a specific subnet). Errors:ip_not_available,no_subnet_available,server_already_attached.- A fixed private IP is only possible through
attach_to_network. Create the server withstart_after_create: false, attach it withip, then power it on. - Servers with no public IP must get their network at creation.
- MTU is 1450 on the private interface and 1500 on the public one.
- Gateway. The gateway is the first IP of the network's range (for example
10.0.0.1).172.31.1.1is reserved as the public default gateway. - Interface names:
ens10on CX*1 and CCX*1;enp7s0on CX*2, CX*3, CPX, CAX, CCX*2 and CCX*3, thenenp8s0,enp9s0;eth1on CentOS 7.
- Private interface configuration. Since 2026-05-18, Ubuntu 22.04+ and Fedora 44 configure the private interface
through cloud-init 25.3+. Debian ≤13 and Alma/Rocky still use
hc-utils(hc-net-ifup@<if>.service).
- Scope. Firewalls filter the public interface only. The FAQ answers "Can Firewalls secure traffic to my private Networks?" with "Not yet".
- Where they do not apply: load balancers ("Not yet"). Metadata requests also bypass them.
apply_totakes typeserverorlabel_selector. Resources added directly take precedence over those added through a label selector.- Default policy. Inbound defaults to DROP when the firewall has no inbound rules; outbound defaults to ACCEPT.
- Limits: 5 firewalls per server, 50 rules and 500 effective rules per firewall.
- Names are unique per project.
- Only the
spreadtype exists: every server in a group runs on a different physical host. - At most 10 servers per group, 50 groups per project and 1 group per server.
- Placement groups are not bound to a location.
- A server must be powered off to be added to a group, or it can be set at creation.
- Targets:
server,label_selectororip(ip targets only in eu-central).use_private_iprequires the load balancer to be in the same network. - Private networking. Attach at creation (
network) or withattach_to_network(ip,ip_range).public_interface: falsemakes the load balancer internal-only. - Protocols:
tcp(passthrough, optional PROXY protocol),http,https(TLS terminated at the load balancer). - Health checks: tcp or http, with interval, timeout, retries, path and status codes.
- No source-IP allow-list and no firewall for load balancers.
- LB11: 5 services, 25 targets, 10 certificates, 10k connections and 20 TB of traffic in the EU.
- Endpoint:
http://169.254.169.254/hetzner/v1/metadatareturns a YAML summary withhostname,instance-id,public-ipv4,private-networks,availability-zone(for examplehel1-dc2) andregion(the network zone, for exampleeu-central). User data is at/hetzner/v1/userdata. private-networkslists, for each network:ip,alias_ips,interface_num,mac_address,network_id,network_name,network,subnetandgateway.- EC2-style routes (
/latest/...) were removed on 2026-08-01. - Access control. No token or hop-limit protection is documented. Assume that containers using NAT can read user
data, and block
169.254.169.254for workloads. (Medium confidence, inferred.)
- Endpoints:
https://{fsn1,nbg1,hel1}.your-objectstorage.com. EU only. - Pricing is per account: a base of €6.49 per month, billed hourly while any bucket exists. It includes 1 TB of storage and 1 TB of egress. Beyond that, storage is €0.0087 per TB-hour and egress €1 per TB. The minimum billable object size is 64 KB.
- S3 credentials can be created only in the Console. Neither the Cloud API nor hcloud-go manage buckets.
- Supported: versioning, Object Lock (enabled at bucket creation), bucket policies and lifecycle rules.
- Conditional writes. Conditional PUT and DELETE are unsupported on versioned buckets.
If-None-Match: *on unversioned buckets is undocumented and unverified, so test it before relying on it. Until E2E does, tent treats every endpoint onyour-objectstorage.comas a store without conditional writes (5.1). - Limits: 100 buckets, 200 credentials and 750 requests per second per bucket.
- DNS is part of the Cloud API (
/zones,/zones/{id}/rrsets, zone file import and export). It was in beta from 2025-10-07 and generally available from 2025-11-10. - hcloud-go added
ZoneClientin v2.27.0; it is GA since v2.30.0, withexp/zoneutil. - The old
dns.hetzner.comAPI went read-only on 2026-05-20 and was removed on 2026-05-27. Old DNS tokens do not work with the new API.
- Images are named by name and architecture, and passing the name picks the right one.
- Available:
ubuntu-22.04,ubuntu-24.04andubuntu-26.04(x86 and Arm),debian-12anddebian-13,fedora-43/44, and Alma and Rocky 8–10. debian-11is deprecated and unavailable after 2026-11-30.- Snapshots are not bound to a location, but they are bound to an architecture. The default limit is 30.
- Arm servers exist only in the EU.
- Latest release: v2.49.0 (2026-09-22).
go.modrequires Go 1.25.0. - Retries. hcloud-go retries on 409 conflict, 429, bad_gateway, timeouts, HTTP 502/504 and network timeouts.
- Backoff: exponential from 1 s, capped at 60 s, with jitter, at most 5 retries (
WithRetryOpts). - It does not read
RateLimit-Reset.
- Backoff: exponential from 1 s, capped at 60 s, with jitter, at most 5 retries (
- Polling. The default action poll is a constant 500 ms. Set
WithPollOptswith exponential backoff. - Mockable interfaces.
I*Clientinterfaces (for exampleIServerClient) make fakes straightforward. - Experimental
exp/packages: actionutil, deprecationutil, labelutil, mockutil (a scripted httptest server), zoneutil and kit. They may break in minor releases. - Recent additions:
- the Storage Box client;
- user data on rebuild;
- per-location server type availability;
- datacenter fields removed (v2.45).
- CSI driver: see 1.2 (not officially supported for Nomad, but documented and tested).
- Cloud controller manager: Kubernetes only.
- Autoscaler plugin. There is no official Nomad Autoscaler plugin for Hetzner. The community
AndrewChubatiuk/nomad-hcloud-autoscalerlooks unmaintained: its last tag was in 2024-03 and its last commit in 2024-12. The Nomad Autoscaler itself is active (v0.5.0, 2026-05). - go-discover: no Hetzner provider (see 1.2).
Vultr blocks automated access to
www.vultr.comandstatus.vultr.com, so the API spec, the pricing pages and the status history were read from Wayback snapshots (August–September 2026). Public endpoints (/v2/regions,/v2/regions/{id}/availability,/v2/plans,/v2/os) were called live without a key on 2026-09-25.
- Base and auth. Base URL
https://api.vultr.com/v2, authenticated withAuthorization: Bearer <API key>. - Rate limit.
- Counted per source IP: more than 30 requests/s may return
429with aRetry-Afterheader (in seconds). - Live responses also carry undocumented
X-RateLimit-*headers. Treat them as informational.
- Counted per source IP: more than 30 requests/s may return
- Pagination. Cursor-based:
per_page(default 100, maximum 500),cursor,meta.links.next/prev,meta.total. - Latency ⏳. In the M1 exit run of 2026-09-28 (3.16), each list call that tent made took 0.9–2 s. A node create makes 7 list calls, one after another, before its POST in a cluster with both firewall groups, so it spent 8–10 s before the POST (architecture §11.3).
- Keys and users.
- Keys belong to users. A user may have several named keys, each with an optional expiry.
- User ACLs: abuse, activity_logs, alerts, billing, dns, firewall, loadbalancer, manage_users, objstore, provisioning, subscriptions, subscriptions_view, support, upgrade.
service_usercreates an API-only user.- The IP allow-list is per user (all of the user's keys), not per key.
- The E2E service user (set up by the maintainer by 2026-10-06; its rights told on 2026-10-07): an API-only user with every right except billing, user management and one more that the maintainer did not name, and an allow-list of the maintainer's two addresses. The key works only from those addresses, so the suite runs from the maintainer's machine (ADR-0034). Vultr raised the account's instance limit from 5 to 20 at the maintainer's request (told on 2026-10-06). On 2026-10-07 the key listed instances, VPCs, firewall groups, SSH keys, regions, plans and images with 200.
- IAM (2026).
- Policies list actions such as
compute.instance.Create|Delete|List|Read|Update,network.firewall.*andnetwork.vpc.*, with Allow or Deny. - Resources are
*ortype:id. No tag conditions. - Roles, groups, role trusts with OIDC federation, assumed-role sessions, and an STS-compatible AssumeRole.
- Policies list actions such as
Facts dated 2026-09-27 were read in the v3.33.0 source.
- Release. v3.33.0 (2026-09-01), which removed VPC 2.0.
go.modrequires Go 1.23. - Retries. govultr wraps go-retryablehttp, with 3 retries and 500 ms waits by default. It retries 429, 5xx other
than 501 and connection errors for every method, POST included, and honours
Retry-After.SetRetryLimit(n)sets the retry count for every call. There is no policy per method (2026-09-27).SetRateLimit(d)only sets the minimum and maximum wait between retries. It is not a throttle, and the README'sSetRateLimit(500)means 500 ns.- An
OnRequestCompletedhook gets each response, ornilwhere the error handler below took it (2026-09-27).
- Errors are untyped.
Delete,Halt,StartandRebootreturn only an error. In detail (2026-09-27):- A 429 or a 5xx other than 501 goes through retryablehttp's error handler, even with retries at 0. The call gets
a
nilresponse and, at retries 0, the errorgave up after 1 attempts, last error: "<body>". - A transport error becomes text as well, so
errors.Is(err, context.Canceled)fails. - Any other non-2xx answer comes back as
errors.New(body), with a{"error","status"}payload.
- A 429 or a 5xx other than 501 goes through retryablehttp's error handler, even with retries at 0. The call gets
a
- Requests and answers (2026-09-27).
- govultr never sets
Authorization. Thehttp.Clientit gets must set it, as the README's oauth2 example does. - It decodes an answer only when
Content-Typeis exactlyapplication/json. For any other type it returns an empty result without an error. InstanceUpdateReqsendstagsandddos_protectioneven when they are unset, asnull, and leaves out every other empty field,firewall_group_idincluded (omitempty). What Vultr does with such a PATCH: 3.3.
- govultr never sets
- Mocking. The service fields (
InstanceService,VPCService,FirewallGroupService,LoadBalancerService, and so on) are interfaces, so fakes are easy. There are no official mocks.
-
POST /v2/instancesrequiresregionandplan, plus one ofos_id,iso_id,snapshot_id,app_idorimage_id.- Optional parameters include:
label,hostname,tags[],user_data(base64),sshkey_id[];firewall_group_id(a single group),attach_vpc[]orenable_vpc,vpc_only;enable_ipv6,disable_public_ipv4(only together with IPv6),reserved_ipv4;backups(enabled/disabled),ddos_protection,script_id,user_scheme(root/limited),activation_email,block_devices.
- It returns 202 with
instance.idand no job id. - The older fields
attach_private_network,enable_private_networkandtagare deprecated.
- Optional parameters include:
-
Status fields:
status:pending,active,suspended,resizing;power_status:running,stopped;server_status:none,locked,installingbooting,ok.
Treat
active+running+okas ready in the API. Spike 2026-09-25: that state arrived 46–73 s after the create call, in one case 7 s before the kernel started. It does not mean the OS is up; see 3.4 for the boot timeline. -
Labels are not unique, and create has no idempotency key. Vultr's own cloud controller manager handles "multiple instances found with name".
-
Tags.
- Tags are plain strings and exist on instances (and bare metal) only.
- The format rules are undocumented. Spike 2026-09-25: every tag tried was accepted and stored verbatim:
/,=,:,., spaces, upper case and non-ASCII (tent-ü). 512-character tags were accepted (longer ones were not tried). 50 tags per instance were accepted; 100 were rejected. GET /v2/instancesfilters bytag(one value),label,hostname,region,main_ipandfirewall_group_id. Spike 2026-09-25:?tag=is an exact but case-insensitive match (no prefix or suffix matches), and?label=is exact (no prefix match).- A new instance was listed by
?tag=on the first request after the create response (5 of 5 instances on 2026-09-25, 1 of 1 on 2026-09-27). On 2026-09-29 one of two was listed on the first request, and the other only on the second, about 1 s after the create response. So a search by operation tag right after a lost response can miss the instance for about a second.
-
PATCH /v2/instances/{id}returns 202 withjob_ids. It can change:tags(replaces the whole set);user_data;firewall_group_id;plan;attach_vpc/detach_vpc;label(govultr and vultr-cli send it).
hostnamechanges only through a reinstall.Spike 2026-09-27: a PATCH with
"tags": nulland"ddos_protection": null, as govultr'sInstanceUpdateReqsends it, keeps the tags. That held withuser_dataand withfirewall_group_id: "", and the user data was applied. govultr leaves out an emptyfirewall_group_id(3.2), so itsInstance.Updatecannot detach a firewall group.One PATCH with
tagsanduser_datais whatNodes.MarkJoinedsends: every tag the instance has, withtent/joined=trueadded, and the scrub stub. The spike sawtagsalone anduser_datawith"tags": null, never both fields in one call. The M2.7b cluster runs of 2026-10-06 (rugw2m,sv3vwb,rgfckj; 3.16) verified that Vultr applies both: in each run five of five instances carriedtent/joined=trueand a user data that equalled the stub byte for byte. In all three runs Vultr listed the tags sorted (tent/joined=truesecond), althoughMarkJoinedsends that tag last. -
Private IP and MAC:
GET /v2/instances/{id}/vpcsreturnsvpcs[]withid,mac_addressandip_address. The instance object also hasinternal_ipandvpcs[]. -
Power actions.
halt,startandrebootreturn 204.- There is no graceful shutdown endpoint.
- The v1 documentation described
haltas a "hard power off (basically, unplugging the machine)", and the current docs call a restart a "hard reboot". Spike 2026-09-25:haltis a hard power-off.- A systemd unit's
ExecStopmarker was not written, although the unit was active. - The journal of the halted boot ends mid-activity, with no shutdown messages.
power_statusreadstopped5–9 s after the call. M3.4 run 2026-10-10: 4 to 19 s after the call (three halts, 3.16); the machine itself stopped within a second, so the list is the late one.startreturned 204, and the instance wasrunning/ok15 s later.
- A systemd unit's
- Spike 2026-09-28: a second
haltof a stopped instance also returned 204, so halting twice is not an error. DELETEdestroys a running instance immediately.- Stopped instances are billed until they are destroyed.
- user_data.
- Base64-encoded. The size limit is not documented anywhere. Spike 2026-09-25:
- The API has no limit up to 4 MiB. Both
PATCHand create accepted 4 MiB and stored it intact. - A 65,508-byte user_data (tent's budget then, 64 KiB) works end to end: the metadata service served all of it,
and a 45 KB
write_filespayload (encoding: b64) landed on disk with the right sha256. tent's budget is now 24 KiB on every provider (ADR-0027). - Larger payloads were not tested on the instance.
- tent writes
node.jsonwithencoding: gz+b64, which cloud-init'swrite_filesaccepts. VM check 2026-09-29 (M2.5): on Ubuntu 24.04 and 26.04 the node.json on the instance had the sha256 of the payload, mode 0600 and ownerroot:root.
- The API has no limit up to 4 MiB. Both
- It can be updated through
PATCH, with no rebuild. Spike 2026-09-25:- The metadata service served the new value 4 s after the
PATCH, at both/latest/user-dataand/v1.json. - After
haltandstart, the instance-id was unchanged andruncmddid not run again. cloud-init only cached the new value in/var/lib/cloud/instance/user-data.txt. Per-boot modules would run from the new value, so a scrub stub must contain none.
- The metadata service served the new value 4 s after the
- It is readable from inside the instance without authentication, at
/v1.json(user-data) and/latest/user-data. GET /v2/instances/{id}/user-datareturns{"user_data": {"data": "<base64>"}}.
- Base64-encoded. The size limit is not documented anywhere. Spike 2026-09-25:
- cloud-init.
-
Official Linux images run cloud-init with the Vultr datasource.
-
Vultr's docs: "cloud-init updates all the system packages before it enables SSH. This takes several minutes. The directive is in Vultr's vendor-data." This is outdated (spike 2026-09-25): the vendor data now sets
package_upgrade: falseitself, and thepackage-update-upgrade-installmodule took 2 ms. -
Ordering. cloud-init runs
runcmdincloud-final.service, sotent-node installruns there. On Ubuntu, cloud-init's unit orderscloud-final.serviceaftermulti-user.target(upstreamsystemd/cloud-final.service.tmpl), so on a reboot cloud-final waits fortent-node.service, whichmulti-user.targetwants. VM check 2026-09-29 (M2.5), Ubuntu 24.04 and 26.04:- After the reboot,
After=ofmulti-user.targetlistedtent-node.service.tent-node.servicebecame active, thenmulti-user.target, thencloud-final.servicestarted: at 25.3 s, 25.8 s and 26.0 s on 24.04, and 22.2 s, 23.0 s and 23.0 s on 26.04 (monotonic). cloud-init status --wait --longwasdone, with no errors, on both boots.- The critical chain of
tent-node.servicepassed nocloud-final,cloud-configorcloud-init.target. - Both images run cloud-init 26.1, under different unit names. The critical chains pass
cloud-init-local.serviceandcloud-init.serviceon 24.04, andcloud-init-main.service,cloud-init-local.serviceandcloud-init-network.serviceon 26.04. - VM check 2026-09-30 (M2.6a), with Docker and the CNI plugins: the same order after the reboot, with
tent-node.serviceactive,multi-user.targetactive andcloud-final.servicestarted all at 28.3 s on 24.04 and 29.1 s on 26.04;cloud-init statusdonewith no errors on both boots.
- After the reboot,
-
How SSH is enabled. The image's sshd listens on
127.0.0.1only. A vendor-data script removes thatListenAddressand reloads sshd. Port 22 became public 31 s after kernel start. -
Boot timeline (spike 2026-09-25,
vc2-1c-1gb,ams, Ubuntu 24.04), counted from the create call:Step Time API active/running/ok46–73 s kernel start 63–80 s sshd public kernel + about 31 s cloud-init finished (on the instance) kernel + 32–37 s SSH login from outside 127–133 s cloud-init status: doneseen from outside129–149 s - The timings were the same with no user data and with a 64 KiB tent-like cloud-config.
- In
cloud-init analyze blameno module took more than 5 s; the largest was the Vultr datasource search. - The first run's figures (SSH after 365 s; over 900 s with the default vendor data) did not reproduce. The on-instance timestamps show no step that slow.
- VM check 2026-09-29 (M2.5), with tent-node's user data, on Ubuntu 24.04 and 26.04: API
active/running/okafter 52–55 s, SSH login after 102 s, andcloud-init status: doneat 104–105 s. After a reboot from inside, SSH answered on the new boot after 52–53 s. Bystatus.json,upran for about 0.3 s on the first boot and 1.1–1.3 s after the reboot. By the critical chain,tent-node.servicetook 0.3 s and 1.6–1.7 s. - VM check 2026-09-30 (M2.6a), with Docker and the CNI plugins, on Ubuntu 24.04 and 26.04: API
active/running/okafter 55 s and 67 s, SSH login after 102 s and 118 s,cloud-init status: doneat 155 s and 138 s. On the first bootupran for 50 s and 32.5 s: the Docker install took 43 s and 26 s, the CNI download and unpack 4 s.tent-node.service's memory peak on the first boot, apt and dpkg included, was 554 MiB and 473 MiB. After a reboot SSH answered after 53 s and 52 s, andupran for 6.3 s and 6.8 s, of which thecniphase's cache hit took 2.9 s and 3.2 s.
-
Vendor data (six MIME parts, read on the instance on 2026-09-25). User data does not replace them: they ran on instances with and without user data.
- A cloud-config: a root password,
ssh_pwauth: true,disable_root: false, alinuxuseraccount,package_upgrade: false, and a reboot if/tmp/.vultr_reboot_requiredexists. - A swap file of 100 MiB per GB of root disk (at most 8 GiB) on disks of 10 GB or more: 2.3 GiB on 25 GB.
/usr/lib/sysctl.d/90-vultr.conf, made immutable withchattr +i:fq,bbr, larger TCP buffers,net.ipv4.conf.all.arp_filter=1andaccept_ra=2per interface. It also sets NIC multi-queue. Other sysctls must go into a later file, such as/etc/sysctl.d/99-tent.conf.- The sshd
ListenAddress 127.0.0.1removal described above. - A one-shot reboot hook.
- It also shows
/var/log/cloud-init.loginlesson tty4.
- A cloud-config: a root password,
-
- Metadata service.
http://169.254.169.254/v1/and/v1.json, with no token and no hop limit.- Fields:
hostname,instanceid(legacy),instance-v2-id(the API UUID),public-keys,region(countrycode, andregioncodein upper case, for exampleAMS),bgp,nvidia-driverandinterfaces[]. - Each interface has
network-type(publicorprivate),mac, IPv4 address, netmask and gateway, andnetwork-v2-id(the VPC id). - Spike 2026-09-25:
- The private interface also carries
mtu("1450") and has no gateway. - The public interface lists a route for
169.254.169.254/32through the public gateway, so metadata traffic leaves through the public NIC. /latest/user-dataanswered HTTP 200 from inside the instance.
- The private interface also carries
/v1.jsonalso carriesuser-data,vendor-dataandstartup-script.- What tent-node reads (ADR-0028):
instance-v2-id,regioncodein lower case, and the IPv4 address of the one interface withnetwork-type: private, from one GET of/v1.jsonper run. Its tests use a document of the form an instance inamsserved on 2026-09-25, with documentation values in place of its ids and public addresses.- VM check 2026-09-29 (M2.5): on Ubuntu 24.04 and 26.04 the read succeeded at the first try, on the first
boot and after a reboot. The read and the rest of
preflighttook 145 ms and 163 ms on 24.04, and 123 ms and 136 ms on 26.04, under the 1 s that a failed try waits before the next. The instance id, zone and private IP instatus.jsonmatched the API. - VM check 2026-09-30 (M2.6a): again at the first try, in 164 ms and 204 ms on the first boot and 184 ms and 383 ms after the reboot (24.04 and 26.04), now through the marked socket.
- VM check 2026-09-29 (M2.5): on Ubuntu 24.04 and 26.04 the read succeeded at the first try, on the first
boot and after a reboot. The read and the rest of
- Who may ask it: since M2.6a only tent-node's marked socket
(ADR-0029 decision 1).
- VM check 2026-09-30 (M2.6a), Ubuntu 24.04 and 26.04: root
curlon the host, a rootbusybox:1.38container on the host network and one on Docker's bridge got no answer, each confirmed by the drop counter of its chain (output 0, 3, then 6; forward 0, then 3).tent-node upby hand exited with 0, every phase unchanged, and the output drops stayed at 6 during it. - After the reboot both drop counters stayed at 0: nothing asked the service without the mark once
uphad loaded the table. cloud-init's Vultr datasource keeps its cached data when the DMI id matches (DataSourceVultr.check_instance_id, cloud-init source, read 2026-09-29; the images run cloud-init 26.1), and cloud-final runs afterup.
- VM check 2026-09-30 (M2.6a), Ubuntu 24.04 and 26.04: root
tagsis present but was empty even though the instance had tags (both spike runs on 2026-09-25), so do not rely on it. Label and plan are not exposed.
- Fields:
- Networking at boot. The first interface uses DHCP and SLAAC. Private interfaces get a static address,
netmask, MTU and routes from metadata. So a VPC attached at creation is configured automatically, and a later
attachment probably is not.
- Spike 2026-09-25: cloud-init wrote netplan with
dhcp4: trueon the public NIC. The private NIC gotaddresses: [10.64.0.3/16]andmtu: 1450. Both were matched by MAC withset-name:enp1s0public,enp8s0private onvc2-1c-1gbinams.
- Spike 2026-09-25: cloud-init wrote netplan with
- No signed instance identity document or attestation.
- systemd and time sync on the image, as tent-node uses them.
systemctl show -p Job --value <unit>prints the id of the unit's queued or running job, or an empty line when it has none, on systemd 255 and 259 (systemd source at v255 and v259,src/systemctl/systemctl-show.candsrc/shared/bus-print-properties.c, read 2026-09-30:-pshows the property even when it is empty, and--valueprints only the value).systemctl showoutput is stable for programs (docs/PORTABILITY_AND_STABILITY.md).runtimereads it fordocker.service(ADR-0029 decision 15). VM check reruns 2026-09-30 (M2.6a): exercised on systemd 255 and 259, by the timing:runtimewaited 2.2 s and 1.5 s after the reboot and reportedunchangedon both, which a failed call or a wrong reading would not have allowed. The reports show the waits and the statuses, not the job.- A
systemctl startof a service whose automatic restart waits outRestartSec(SERVICE_AUTO_RESTART): on systemd 255service_startreturns-EAGAIN, so the start job waits for the automatic restart; on 259 it cuts the wait short and starts the service at once (src/core/service.cat v255 and v259, read 2026-09-30). - VM check 2026-09-29 (M2.5):
systemctl is-enabledof a unit without a file printsnot-foundon stdout and nothing on stderr, and exits with 4, on systemd 255 (255.4-1ubuntu8.17, Ubuntu 24.04) and 259 (259.5-0ubuntu3.4, Ubuntu 26.04). tent-node'sinstallandverifyread the state from stdout and fail when it is empty. - VM check 2026-09-29 (M2.5): Vultr's Ubuntu 24.04 and 26.04 images both run systemd-timesyncd.
/usr/lib/systemd/ntp-units.d/holds only80-systemd-timesync.list, chrony is inactive, and afteruptimedatectl showgaveCanNTP=yesandNTP=yes.NTPSynchronizedwasnoat the first check on 24.04 andyesafter the reboot; on 26.04 it wasyesboth times.- Ubuntu moved its default to chrony in 25.10, but Vultr's 26.04 image does not use it. The earlier guess here that 26.04 runs chrony was wrong for Vultr's image.
- tent-node turns NTP on through
timedatectlwhere it can, and otherwise requireschrony.serviceorsystemd-timesyncd.serviceto be active, so it also accepts an image that runs chrony.
- Reloads of PID 1.
systemctl enablewithout--no-reloadasks PID 1 to reload by itself (systemctl(1),--no-reload). The M2.5 VM check did not record the reloads.- VM check 2026-09-30 (M2.6a): on the first boot PID 1 logged reloads requested by
cloud-final.service×2,cloud-init-local.service×1 andtent-node.service×4 on 24.04, and bycloud-init-main.service×3 andtent-node.service×4 on 26.04. systemd 255 logs them as "Reloading requested from client …", 259 as "Reload requested from client …". By their times, three of tent-node.service's came whilehostfirewallran and one during the Docker install, so docker.io's install reloads PID 1 too; whether through its debhelper snippets or systemd's dpkg trigger was not checked. systemctl status tent-node.serviceshowed no "changed on disk" warning, andNeedDaemonReloadwasno.
- VM check 2026-09-30 (M2.6a): on the first boot PID 1 logged reloads requested by
- Only one VPC product remains.
- "VPC 2.0" was deprecated on 2025-03-10 and has returned 404 since at least 2026-07-29.
- govultr removed it on 2026-09-01.
/private-networksis a deprecated alias.
- Scope. A VPC is region-scoped, and a region allows at most 5. An instance may join several; the per-instance maximum is undocumented.
- CIDR. Set with
v4_subnetandv4_subnet_mask(RFC1918), or assigned automatically.- Spike 2026-09-25:
/16,/20and/24were all accepted for10.64.0.0. - Addresses are assigned in order: the first two instances got
.3and.4. - The instance's VPC address was visible through
GET /v2/instances/{id}/vpcs6–7 s after the create call. - Spike 2026-09-28: the first read of
/vpcs, 31 s after the create call, answered 200 with the address while the instance was stillpending. No 404 was seen, but the first 31 s were not sampled.
- Spike 2026-09-25:
- Attaching. At creation (
attach_vpc), or later withPOST /v2/instances/{id}/vpcs/attach {vpc_id}orPATCH. Attaching later reboots the VM. - No specific private IP can be requested. The attach call takes only
vpc_id; VPC 2.0'sip_addressis gone. - Alias IPs work. Legacy docs say "Vultr does not enforce specific IP address ranges on private networks".
Spike 2026-09-25: an address added in the OS (
ip addr add 10.64.0.250/16on the VPC interface) answered ping and HTTP from another instance, so the VPC does not bind addresses to instances. Nothing reserves such an address, though, and Vultr may later assign it to a new instance. - Traffic. Ping between instances over the VPC works with the image's default host firewall (spike 2026-09-25).
- A freed private address goes to a new machine (run
ae5dhs, 2026-10-14). After the rolls ofha, the new workers had the addresses of servers that the roll had deleted. After the servers were deleted and rebuilt, the three new servers got 10.64.0.3, .6 and .7, one of the three old addresses back (the servers before the delete had .3, .8 and .9), while the workers were at .4 and .5. - Deleting. After the instances disappeared from
GET /v2/instances,DELETE /v2/vpcs/{id}still failed for 14–20 s with400 The following servers are attached to this VPC network: <IPs>(spike 2026-09-25). Retry it. On 2026-09-28 the delete succeeded 12 s after the instance was gone, on the second request; the<IPs>in the refusal were the instance's public address, not its VPC address. On 2026-09-29 it succeeded 21 s and 25 s after the instance was gone, each time on the second request, after the same refusal. On 2026-09-30 it took 73 s and 7 requests, refused with the instance's public address until then, and 4 s and 1 request; in the reruns of that day 16 s and 2 requests, and 4 s and 1 request. - MTU and interfaces. MTU is 1450. Private interface names vary (
enp6s0,enp7s0,enp8s0,ens7), so match by MAC. - No VPC peering API. Cross-region connectivity is do-it-yourself, for example with WireGuard.
- Rules:
ip_type:v4orv6.protocol: ICMP, TCP, UDP, GRE, ESP or AH.subnet+subnet_size.port: a single port or a rangea:b.source: empty,cloudflare, or a load balancer id. Vultr lists an empty source as the rule's own subnet (see below).notes.
- Accept-only. Inbound traffic that matches no rule is dropped.
- Limits. Each group reports its
max_rule_count(50 in examples). The number of groups per account is undocumented. - One group per instance (
firewall_group_id), set at creation or withPATCH.PATCHwithfirewall_group_id: ""detaches the group (202). - Rule syntax that worked (spike 2026-09-25):
{ip_type: "v4", protocol: "tcp", subnet: "0.0.0.0", subnet_size: 0, port: "22"}, the same withv6and::, andicmpwithout a port. - How Vultr lists rules (checked 2026-09-27,
hack/vultr-spikerunaqh7ag). Rules sent in tent's form come back as sent:ip_type,protocol,subnet,subnet_sizeandportkeep their values and case, a single port stays22,::stays::, and an ICMP rule has the port"". tent also reads22:22, other cases and0:0:0:0:0:0:0:0as the same rule. The listing also has these fields, of which govultr'sFirewallRulereads onlysource:source: the rule's own subnet when the create had no source, such as"203.0.113.7/32"or"::/0". tent reads a source equal to the rule's subnet as no source.type: the same asip_type.direction:"in".loadbalancer_id:"".
- A creation date without a zone (run
w28exz, 2026-10-14). The firewall list gave a group made at 00:46:46 UTC on 2026-10-14 thedate_created2026-10-13 20:46:46: no zone, and 4 hours behind UTC, which is US Eastern time (UTC-4 in summer). Other objects gave RFC 3339 with an offset. The E2E suite's client reads a date of that form as US Eastern time; tent's own Vultr code skips a date it cannot read. - A second copy of a rule is refused (checked 2026-09-27): the same rule sent twice gets
400 {"error":"This rule is already defined ","status":400}the second time, with a trailing space in the text. tent counts it as done. - Deleting a group that an instance uses (spike 2026-09-27):
DELETE /v2/firewalls/{id}answers 204 and deletes the group. The instance'sfirewall_group_idreads""right after and 15 s later, so the instance has no firewall group. tent refuses to delete a group that nodes of the cluster use (architecture §11.5). It still retries an answer that says the group is in use (409, 423, or a 4xx whose message says "in use" or "are attached"), though Vultr gave none. instance_count(spikes 2026-09-27 and 2026-09-28): while an instance used the group, neitherGET /v2/firewalls/{id}norGET /v2/firewallshad aninstance_count(the field was missing, for 32 s after the attach). tent does not read it: the inventory counts the cluster's instances in each group itself (architecture §11.1).- Scope: "the main network interface", inbound. Spike 2026-09-25: a group that allowed only SSH and ICMP
blocked public :4646 12 s after the
PATCH, while :4646 over the VPC stayed reachable. Groups do not filter VPC traffic. - Host firewall (Ubuntu 24.04 image, spike 2026-09-25).
- ufw is active: default deny incoming, allow outgoing, routed disabled. The only rules allow 22/tcp for IPv4 and
IPv6, without
limit. - firewalld, fail2ban and sshguard are not installed. The rules live in iptables-nft (
table ip filter,table ip6 filter). - With these defaults :4646 is blocked from the internet and from the VPC. ICMP passes. With ufw disabled, both answered.
- Other images (for example with firewalld) were not checked.
- What tent-node does with it: architecture §11.5.
- VM check 2026-09-30 (M2.6a), Ubuntu 24.04.5 (
os_id2284) and 26.04.1 (os_id2760):- The images: nftables 1.0.9-1ubuntu0.1 and 1.1.6-1, iptables 1.8.10-3ubuntu2 and 1.8.11-2ubuntu3, no firewalld;
nftables.servicedisabled; the iptables alternative is iptables-nft; the apt sources listmain restricted universe multiverse. - The first boot:
unattended-upgrades.servicestarted at 26.4 s (24.04) and 24.6 s (26.04) (monotonic), but only as the "Unattended Upgrades Shutdown" helper; apt-daily and apt-daily-upgrade did not run, and no install command waited for a lock. - After
up: docker.io 29.1.3-0ubuntu3~24.04.2 and 29.1.3-0ubuntu4.1 from the updates pockets, and 65 and 62 files in/var/lib/apt/lists;ufw.confsaysENABLED=noand the unit is disabled; tent's tableinet tent, with its comment innft -j list tables, next to Docker'sip filter,ip6 filter,ip natandip6 nat; theip filter FORWARDpolicy is Docker's drop andip6 filter FORWARDaccepts; Docker 29.1.3 runs with overlayfs, the systemd cgroup driver on cgroup v2, live-restore, json-file logs and the iptables firewall backend;/opt/cni/binholds 20 files. - After a reboot, as soon as SSH answered (uptime 33 s and 37 s,
upalready done): sshd on 22 (IPv4 and IPv6), systemd-resolved on 127.0.0.53 and 127.0.0.54, the DHCP client (systemd-networkd) on udp 68 of the public address, and containerd on a random 127.0.0.1 port listened, and nothing else.
- The images: nftables 1.0.9-1ubuntu0.1 and 1.1.6-1, iptables 1.8.10-3ubuntu2 and 1.8.11-2ubuntu3, no firewalld;
- ufw is active: default deny incoming, allow outgoing, routed disabled. The only rules allow 22/tcp for IPv4 and
IPv6, without
- sshd defaults (same image).
PermitRootLogin yes,PasswordAuthentication yes,MaxAuthTries 6,MaxStartups 10:30:100. Password guessing from the internet reached a test instance within 12 minutes of boot.
- Always public (IPv4 + IPv6), with no internal-only option. The
vpcsetting makes backends reachable over the VPC. - Targets are instance IDs only; there is no tag or label selection.
- Forwarding. At most 15 rules (TCP, UDP, HTTP, HTTPS), TCP passthrough with optional PROXY protocol, and TCP, HTTP or HTTPS health checks.
- Firewall.
firewall_rulestake a port, a source CIDR orcloudflare, and anip_type. - Availability and price. Not available in
mxporsao. $10/month ($0.015/hour).
-
Regions. The API returns 33:
- Americas: atl, dfw, ewr, hnl, lax, mex, mia, ord, sao, scl, sea, sjc, yto.
- Europe: ams, cdg, fra, lhr, mad, man, mxp, sto, waw.
- Asia-Pacific: blr, bom, del, icn, itm, mel, nrt, sgp, syd.
- Africa and the Middle East: jnb, tlv.
There are no availability zones.
-
Availability.
GET /v2/regions/{id}/availability[?type=vc2]returnsavailable_plans[]andavailable_vpc_only_plans[]: the plans deployable right now, without quantities. Thelocationslist in/v2/plansdoes not mean "in stock". Checked live on 2026-09-27:- An unknown region answers
400 {"error":"Invalid region.","status":400}. typetakesall,vbm,vdc,vhp,vhf,vc2,voc,vcg,vdg,vdm,vx1,voc-g,voc-s,voc-corvoc-m. Any other value answers 400Please provide a valid type: …with that list.
- An unknown region answers
-
Images. Referenced by numeric
os_idfromGET /v2/os: Ubuntu 24.04 LTS = 2284, Ubuntu 26.04 LTS = 2760, Debian 12 = 2136, Debian 13 = 2625 (checked live). -
No arm64 Cloud Compute plans. Checked live on 2026-10-05:
GET /v2/plans?type=all&per_page=500, which answered without a key at about 12:30 UTC, returned 151 plans.typeisvoc(51),vx1(36),vhp(16),vcg(15),vc2(12),vdm(11) orvhf(10);cpu_vendoris AMD (97), Intel (53) or empty (1, avdmGPU plan);vcpu_typeisthread;gpu_brandisnone, NVIDIA or AMD. No field says arm, a plan has no architecture field, and a case-insensitive search of the whole answer forarm,ampereandaarchfound nothing. -
An unauthenticated
GET /v2/plansfailed on 2026-10-05. From about 18:11 UTC Vultr answered it without a key with HTTP 500Call to a member function request() on null, while the same call answered 200 at about 12:30 UTC that day. The failure was without a key: the preflight of the M2.7a cluster check read the plan and its price with the key at about 21:37 UTC. The spike's preflight sends the key when it has one, and goes on without the plan's price when the call fails without a key. On 2026-10-06 the call answered 200 without a key again. -
Smallest plans (checked live for
amson 2026-09-25):Plan vCPU / RAM / disk $/month Real $/hour (÷ 672) vc2-1c-1gb1 / 1 GB / 25 GB 5 0.0074 vc2-1c-2gb1 / 2 GB / 55 GB 10 0.0149 vc2-2c-4gb2 / 4 GB / 80 GB 20 0.030 vhf-1c-2gb(NVMe)1 / 2 GB / 64 GB 12 0.018 vhp-1c-2gb-amd(NVMe)1 / 2 GB / 50 GB 12 0.018 The 512 MB plans ($2.50 IPv6-only, $3.50) are too small for Nomad.
-
Billing.
- Hourly, with a minimum of 1 hour per instance, capped at 672 hours a month. Stopped instances are billed.
- The API's
hourly_costdivides by 730, about 8% below the real rate, so computemonthly_cost / 672. location_costapplies multipliers (São Paulo 1.5×).- A public IPv4 is included.
- Reserved IPs are public only, region-bound and cost $3/month.
- Managed NAT gateway, generally available since 2026-02-05.
- One per VPC, 8 Gbps, $0.03/hour.
- Egress, TCP/UDP port forwarding and its own firewall.
vpc_only: trueinstances get no public interface and egress through it.
- IPv6-only.
disable_public_ipv4together withenable_ipv6.
- Tags exist only on instances and bare metal. The NAT gateway has a single
tag. - Everything else has one free-text field:
- VPC and firewall group:
description; - load balancer, reserved IP, block storage:
label; - SSH key:
name; - snapshot:
description.
- VPC and firewall group:
- None of these is unique. Only
GET /v2/instancesfilters by tag. - Spike 2026-09-25: the VPC
description, the SSH keynameand the firewall groupdescriptionstoredtent:cluster=…;kind=…markers, including:,=and;, verbatim. - The longest text stored verbatim (spike 2026-09-27): 255 characters in a VPC or firewall group
description, 128 in an SSH keyname. Longer text is accepted (204) and cut to that length without an error. The spike set the texts with updates as govultr sends them:PUTfor a VPC or a firewall group,PATCHfor an SSH key. Withop, tent's markers for a 20-character cluster name reach 99 characters on a firewall group, 98 on an SSH key and 82 on a VPC, so they fit. - A second SSH key with the same key material is accepted (spike 2026-09-27) under another name, and the account then lists both. So two clusters can use the same operator key, and so can a cluster and a key that an operator uploaded by hand.
- Block storage.
- Types:
high_perf(NVMe, 10–10,000 GB) andstorage_opt(HDD, 40–40,000 GB). - Up to 16 volumes per instance, one instance per volume, same region.
live: trueattaches without a restart.- $1 per 10 GB per month.
- Types:
- vultr-csi v0.19.0 (2026-09-08) ships official Nomad docs and example jobs (
docs/nomad):- the controller runs as a service job and the node plugin as a system job;
- it needs
allow_privileged; - the API key goes to the controller only;
- one deployment per region.
- Endpoints are
<id>.vultrobjects.com: ewr1, ewr2, chi3, atl1, atl2, lax1, sjc1, sea1, ams1, ams2, lhr1, mxp1, sgp1, sgp2, blr1, blr2, del1, nrt1, syd1. There is no Frankfurt endpoint. - Pricing. Relaunched on 2025-03-03.
- Standard $18/month, Premium $36, Performance $50, Accelerated $100. Each includes 1 TB of storage and 1 TB of egress; extra egress is $0.01/GB.
- The $6 Archive tier archives objects and needs them restored before reading, so it cannot hold state.
- Limits: 100 buckets and 400 ops/s per subscription.
- Features. Versioning, lifecycle rules, policies, ACLs, CORS, tagging and presigned URLs. Object lock is set at bucket creation through the Vultr API.
- Keys through the API.
POST /v2/object-storagewithcluster_idandtier_idreturnss3_access_keyands3_secret_key. Keys cover the whole subscription. - Conditional writes are not documented by Vultr. The endpoints run Ceph Object Gateway "tentacle", whose source
honours
If-MatchandIf-None-Matchon PutObject. Likely supported, but untested 🔬. The spike's check needs an existing bucket and was not run on 2026-09-25. Ceph RGW 20.2.4 on RADOS honoured both in a local test on 2026-09-26 (5.1); Vultr's endpoints themselves are still untested.
- Full API coverage (
/v2/domains, records, SOA, DNSSEC), free of charge. - Documented propagation takes 6–12 hours.
-
Account limits.
- Set per account and not published: maximum instances, maximum monthly instance cost, and possibly instances created per 24 hours (anecdotal).
- Not exposed by the API. Raise them in the Console under Billing → Limits.
- Anecdote: a fresh account showed "maximum instances: 1, maximum billing fee: $1".
- A deleted instance still counts for a short time. Run
rugw2m(2026-10-06, 5 instances before the delete): the create that tent sent after the delete of an instance, in the sameupdate --yes, failed with400 Bad Request: Server add failed: You have reached the maximum number of active instances for this account.The report gives no time between the two calls: the whole run took 11 s, and the plan alone had taken 5 s, so the create came less than 10 s after the delete. In runsv3vwbthe replacement was created 51 s after the delete of the machine it replaced, where an ordinary create of that run took 50 s, so the limit held that create back for a few seconds at most. Neither run measured how long Vultr counts a deleted instance.
-
Verification. A card or PayPal account is required.
-
TOS and AUP. Nothing about minimum instance lifetimes. Circumventing limits (for example, with extra accounts) is forbidden. Crypto mining is banned.
-
Provisioning time (VPSBenchmarks, order to SSH, small samples):
Provider Average Notes Vultr 80 s median 60 s, range 30–260 s, 12 samples Hetzner 32 s 2 samples - Deploying from a snapshot takes 10–15 minutes longer.
- Creating a snapshot takes up to 30 minutes and costs $0.05/GB-month.
-
Incidents.
- Deploy delays: 2025-07-14, 2025-10-08, 2025-11-11, 2025-11-23, 2026-05-09.
- Deploy failures in the API and console: 2026-08-06.
- API outage: 2026-09-06.
- Atlanta partial outage, open since 2026-09-18.
- go-discover has no Vultr provider.
- Nomad Autoscaler has no Vultr target plugin.
- Terraform provider
vultr/vultrv2.32.0 fails on instance reads after the VPC 2.0 removal. The fix is on master but unreleased as of 2026-09-25. - Packer plugin: v2.7.0.
- Cluster API provider CAPVULTR is active: v0.5.0, 2026-09-11.
- "Clusters" API. A new API for instance pools built from templates. It is not in govultr, and its documentation is thin.
- Vultr's Nomad guide (updated 2026-04) joins servers through static private IPs in
retry_join. That breaks after servers are replaced; tent uses seed-and-refresh instead.
All runs: region ams, plan vc2-1c-1gb, Ubuntu 24.04 (os_id 2284), except one of the M2.5 VM checks, one M2.6a
VM check and its rerun, one M2.6b VM check and its rerun, and the second cluster of each E2E run, which ran Ubuntu
26.04 (os_id 2760). Runs 1 to 3 ran
on 2026-09-25, run 4 on 2026-09-27, run 5 on 2026-09-28, the M2.5 VM checks on 2026-09-29, the M2.6a VM checks and
their reruns on 2026-09-30, the M2.6b VM checks, their reruns and the M2.7a cluster check on 2026-10-05, and the
three M2.7b cluster runs below, all on 2026-10-06, the M2.8 cluster check on 2026-10-07, and the M3.3 roll check on
2026-10-08. The six E2E runs of M2.9 (2026-10-07, below) ran the smoke scenario of test/e2e on Ubuntu 24.04 and
26.04 at once. Reports are in
hack/vultr-spike/results/ (git-ignored), and the E2E runs' results in test/e2e/results/ (git-ignored). The M1 exit
run below was not a spike run.
Run 1 (tt3s1g, spike v1) verified:
- the tag syntax, limits and filter semantics;
- ownership markers in free-text fields;
- VPC masks, static private addressing and interface naming;
- metadata fields;
- no user_data limit up to 4 MiB.
Its SSH to the instances stopped working after a burst of about seven connections, so every check that needed SSH was inconclusive. Its boot timings (SSH after 365 s, over 900 s with the default vendor data) did not reproduce later.
Run 2 (hh7sgs, spike v2) ran every check except userdata (settled by run 1) and objstore (no bucket).
Spike v2 opens one multiplexed SSH connection per host, paces new connections and collects data on the instance.
It verified:
- the host firewall defaults and sshd settings of the image (3.6);
- that firewall groups do not filter VPC traffic;
- that alias IPs in the VPC are reachable (3.5);
- ping between instances over the VPC;
- user_data scrubbing, and that cloud-init does not re-run after a restart (3.4);
- that a 64 KiB user_data works end to end;
- that
haltis a hard power-off andstartworks (3.3); - the vendor data contents and where boot time goes;
- that a new instance is listable by tag at once;
- that the VPC cannot be deleted for 14–20 s after its instances are gone.
Its outside boot timings were too high: macOS nc -w does not bound the connect time, so every probe of a host that
did not answer yet blocked the poll loop for 75 s. The script now uses a bash /dev/tcp probe with a 5 s limit.
Run 3 (mqlko4, --only boot) re-measured boot with the fixed probe. Its figures are the ones in
3.4.
Why run 1 lost SSH is still unknown. The image has no SSH rate limiting (ufw allows 22 without limit, no
fail2ban or sshguard, default MaxStartups), and run 2, with one connection per host, had no SSH problems. This does
not affect tent: tent never uses SSH in the node lifecycle.
Run 4 (aqh7ag, spike v3, --only sshdup,lengths,rules,fwinuse,patchtags) checked the facts that
ADR-0023 and the node primitives rely on, with one instance. It
verified:
- that Vultr accepts a second SSH key with the same key material (3.10);
- the longest description and SSH key name stored verbatim, and that longer text is cut without an error;
- how Vultr lists firewall rules, and that it refuses a second copy of a rule (3.6);
- that Vultr deletes a firewall group that an instance uses;
GET /v2/firewalls/{id}of that group had noinstance_count; - that the instance PATCH govultr sends keeps the tags and applies the user data (3.3);
- again, that a new instance is listable by tag at once.
Run 5 (ekrnuo, spike v4, --only vpcpending,fwinuse,halttwice) ran one instance in a firewall group with no
rules, since none of these checks needs SSH. It verified:
- that an instance can be created with a firewall group, which applies from its first boot;
- that
/vpcsanswered 200 with the address at the first read, 31 s after the create call (3.5); - that neither firewall group endpoint reports
instance_count(3.6); - that a second
haltof a stopped instance answers 204 (3.3).
M1 exit run (2026-09-28) was tent itself against the API, in ams with vc2-1c-1gb: a cluster with one server
and one worker, then two workers.
tent create cluster … --allow-single-server --yesbuilt the VPC, both firewall groups and two nodes, whose VPC addresses were10.64.0.3and10.64.0.4.tent update cluster --exit-code --allow-single-serverthen printedNo changes.and exited with 0, so the firewall rules read back from Vultr without a diff.- With the workers raised to 2, an
update --yeswas interrupted with SIGINT 20 s aftercreating node …-workers-1: after the POST, while tent waited for the node to be ready. The nextupdate --yesplanned~ node …-workers-1 (ID …, wait until it is ready)(the line of that tent; since M2.7b it readswait until it joins, scrub its user data) and created no instance, and a further--exit-coderun had no changes. Vultr listed exactly three instances. tent delete cluster --yesdeleted the three nodes, both firewall groups, the VPC and the four state objects. The API then listed no instance, VPC, firewall group or SSH key with the cluster's marker.- Each list call took 0.9–2 s (3.1).
M2.5 VM checks (ppssbr and yccsoc, spike v5, --only tentnode, 2026-09-29) each booted one instance from the
user data of hack/tent-node-userdata: ppssbr on Ubuntu 24.04 (os_id 2284), yccsoc on Ubuntu 26.04
(os_id 2760). Both ran one development build of tent-node, v0.1.0-rc.2-18-g4fc8be6-dirty, which make dev-upload
put into the CI R2 bucket; the object was deleted afterwards. Both passed. They verified:
- that node.json arrives intact from the gz+b64 user data (3.4);
- that
upran on the first boot, and after a reboot changed nothing butstatus.json; - the order of
tent-node.service,multi-user.targetand cloud-final after the reboot, and that cloud-init finished with no errors on both boots; - that the metadata read succeeded at the first try on both boots;
- what
systemctl is-enabledprints for a unit without a file on systemd 255 and 259; - that both images run systemd-timesyncd, not chrony;
- that a new instance can need a second request, about 1 s after the create response, to be listed by tag (3.3);
- that the VPC delete succeeded 21–25 s after the instances were gone (3.5).
M2.6a VM checks (3ornct and yqjlcb, spike v6, --only tentnode, 2026-09-30) each booted one client instance
from the user data of hack/tent-node-userdata: 3ornct on Ubuntu 24.04.5 (os_id 2284, systemd 255.4-1ubuntu8.17),
yqjlcb on Ubuntu 26.04.1 (os_id 2760, systemd 259.5-0ubuntu3.4). Both ran one development build of tent-node,
v0.1.0-rc.2-30-ga41d6e1. Both passed but for one finding. They verified:
- the image's packages and firewalls, and that no apt timer held a lock on the first boot (3.6);
- ufw off, tent's table next to Docker's tables, Docker with
daemon.json, and the CNI plugins in/opt/cni/bin; - that root
curl, a root container on the host network and one on Docker's bridge get no answer from the metadata service, while tent-node's marked read does, and that nothing asked it unmarked after the reboot (3.4); - PID 1's reloads during
installandup, with no "changed on disk" warning; - after the reboot: tent's table loaded again with the same comment, only
status.jsonchanged among tent-node's files, cloud-init done with no errors, the boot order as designed, and only sshd, systemd-resolved, the DHCP client and containerd on loopback listening when SSH answered, afteruphad run; - that a new instance was listed by tag at the first request, and that the VPC delete took 73 s and 7 requests, then 4 s and 1 request, after the instance was gone (3.5).
The finding: after the reboot on 24.04 runtime reported done. By the timing, docker.service was still inactive
with its start job queued, and systemctl start waited 2 s for it. On 26.04 runtime reported unchanged; it took
1.9 s, so Docker was most likely still activating, which the old code counted as no change; with Docker active,
runtime takes about 30 ms (up by hand). The fix followed: runtime now counts a pending job of docker.service
as Docker starting on its own (ADR-0029 decision 15). The
reruns below confirmed it.
M2.6a VM reruns (7lhvvv and jcirel, spike v6, --only tentnode, 2026-09-30) ran the check again with the
fix: 7lhvvv on Ubuntu 24.04 (os_id 2284), jcirel on Ubuntu 26.04 (os_id 2760), both with one development
build of tent-node, v0.1.0-rc.2-30-ga41d6e1-dirty, and the spike's parser for systemd 259's reload messages. Both
passed, with no failed, unexpected, missing or unknown row. They verified:
- the fix on a real VM: after the reboot
runtimewaited about 2.2 s for Docker on 24.04, as in the first run, and reportedunchanged; on 26.04 it reportedunchangedafter 1.5 s; onlyhostfirewallwasdoneon both; - the reloads of the first boot, now parsed on both images, with the same counts as the first runs (3.4);
- everything else as in the first runs: the metadata probes blocked with their counters,
upby hand unchanged, tent's table back after the reboot with the same comment, and onlystatus.jsonchanged.
M2.6b VM checks (bxkllh and g2rl9d, spike v7, --only tentnode, 2026-10-05) each booted the combined node
of a cluster of one node from the user data of hack/tent-node-userdata (ADR-0030):
bxkllh on Ubuntu 24.04.5 (os_id 2284, systemd 255.4, docker.io 29.1.3-0ubuntu3~24.04.2), g2rl9d on Ubuntu
26.04.1 (os_id 2760, systemd 259.5, docker.io 29.1.3-0ubuntu4.1). Both ran one development build of tent-node,
v0.1.0-rc.2-30-g3b219a6-dirty, with Nomad 2.0.7; the user data took 6111 and 5959 bytes. Every row was as expected
on both images but one, the restart of Docker (below). They verified:
- Boot. cloud-init finished 248 s and 137 s after the create call.
tent-node.servicewas active 92.0 s and 83.9 s after boot, andnomad.service91.9 s and 83.8 s.systemctl start nomad.servicereturned 1.0 to 1.4 s after tent-node loggedstart Nomad, on the first boot and after the reboot (by the timing of the log lines), well within systemd's start timeout of 90 s. After the rebootnomad.servicewas active 38.2 s and 35.4 s after boot, and started afterhostfirewallhad logged its result (27.5 s, then 37.2 s; 23.5 s, then 34.2 s, monotonic). - Cost on the node. Over the first boot the cgroup of
tent-node.servicepeaked at 519.4 MB and 436.7 MB, apt's install and the page cache of whatupwrote included (systemd's memory peak). With the zip in the cache, thenomadphase took about 3 to 4 s beforestart Nomad(by the timing). - Registration. The first
Node.Registerfailed withfailed to sign node identity claims: keyring has not been initialized yetand succeeded 24 s and 21 s later. Aftersystemctl restart nomad.service,Node.RegisterandNode.GetClientAllocsfailed withPermission deniedand succeeded 23 s and 20 s later; on 24.04 the keyring replicator first loggedfailed to fetch key from any peer. After the reboot the client registered at once.verifypassed every time: a combined node's client knows its own server before it has registered. - Nomad.
nomad acl bootstrapexited with 0, and the token stayed in a root-only file. The node led its cluster of one in the regionglobalwith the datacenterams, andnomad node statusshowed it ready and eligible in the pooldefault, with the metatent_instance_id,tent_clusterandtent_nodegroup. Withenforcement = warnthe server loggednode registration without introduction token. - A job (
busybox:1.38's httpd in bridge mode with a dynamic port): its port answered on the private address, and from its container the metadata service timed out while the drop counter of tent's forward chain grew. - A restart of Nomad with the job running returned after 1.5 s and 1.7 s. The container kept its id and start time, the task was not restarted, the node stayed ready and eligible, no line named a drain, and the port answered. Nomad logged nothing at INFO about restoring or reattaching.
refresh-join. Its first run, right aftertent-node.servicefinished, asked the node's own agent over mTLS (server.global.nomad) and rewrote05-join.hclto10.64.0.3:4648(known=0 servers=1); later runs changed nothing, andpeers.jsonheld["10.64.0.3"].- The reboot.
hostfirewallandnomadwere done, every other phase unchanged, and onlystatus.jsonchanged among tent-node's files.joinloggeda server did not answerfor the node's own address (connection refused), since Nomad was not running yet. The node came back ready and eligible. The first boot's allocation ran again: the client restarted its task afterExit Code: 255, with the restart policy's delay of 17.3 s and 15.6 s. When SSH answered,uphad finished on 24.04 and Nomad listened; on 26.04upstill ran, and only sshd, systemd-resolved, the DHCP client and containerd listened. - The shutdown with the job running: Nomad's stop took 1.1 s on both and ended before Docker's stop began, and no
line named a drain. systemd logged
Unit process … (nomad) remains running after unit stoppedfor two processes, whichKillMode=processleaves to the tasks. Docker's stop took about 5 s. - docker.io came from
noble-updates/universeandnoble-security/universeon 24.04, and fromresolute-updates/universeandresolute-security/universeon 26.04 (apt-cache policy). - Preflight's metadata read took 256 ms and 148 ms on the first boot, 255 ms and 379 ms after the reboot. The VPC delete succeeded 12 s and 3 requests after the instance was gone, on both.
The finding: a restart of Docker restarted the job's task on both images. tent-node up with a changed
daemon.json restarted docker.service (runtime done, every other phase unchanged, Nomad not restarted). Nomad's
docker driver logged failed to wait for container; already terminated and log streaming ended with error: unexpected EOF; the task ended Terminated with Exit Code: 0, Exit Message: "unexpected EOF", and the client
started it again in a new container after the restart policy's delay of 17.3 s and 18.7 s. So Nomad 2.0.7 did not
reattach to its container after a restart of docker.io 29.1.3 with live-restore. What tent does about it: see
ADR-0030's follow-ups.
M2.6b VM reruns (bqpw7p and xskxx4, spike v8, --only tentnode, 2026-10-05) ran spike v8 on Ubuntu 24.04
(bqpw7p) and 26.04 (xskxx4) with a rebuild of the same version label (sha256
ed76e2b8c84d74ffce336a6df185c3d1a27fb8858d3a1b222b97c5e7fb35910e; the v7 runs had
eed8a97a23d5f7f4801fab7b347e4dc4f6f61c2614fbe8569dd72d3bca101a40), and passed every row on both. Besides what the
v7 runs showed, they verified:
- A restart of containerd with the job running (
systemctl restart containerd.service) kept the task: the same container id and start time, no task restart, watched 62 s and 63 s after containerd was active again. Neitherdocker.servicenornomad.servicebecame active again. So an upgrade of containerd does not touch Nomad's docker tasks (6.4). - A restart of Docker replaced the task again, as accepted: it ran again 17 s and 20 s after
docker.servicewas active again. - Records. needrestart is installed on Vultr's images (3.6-7ubuntu4.5 on 24.04, 3.11-1ubuntu2 on 26.04), with no
$nrconf{restart}line, the package's default./etc/apt/apt.conf.d/20auto-upgradessetsAPT::Periodic::Update-Package-Lists "1"andAPT::Periodic::Unattended-Upgrade "1"on both.debconf-show docker.iogivesdocker.io/restart: falseon both.docker.servicehasWants=andAfter=oncontainerd.service,Requires=docker.socket, noBindsTo=orPartOf=, andRestart=always. - Everything else as on the v7 runs: a restart of Nomad kept the task, the node was eligible after the reboot, and Nomad stopped in 1.1 s, before Docker.
M2.7a cluster check (qypvsk, spike v9, --only cluster, 2026-10-05) ran tent itself on Ubuntu 24.04, ams,
vc2-1c-1gb, with tent v0.1.0-rc.2-43-g58a50ff-dirty and a development tent-node, and passed every row. It built a
cluster of 3 servers and 2 clients, five instances at once, from an empty account, with tent create cluster --yes:
- The build. The command exited 0 after 453 s. The progress lines showed a Nomad leader, the bootstrap and healthy servers all at 190 s, and the clients registered 126 s and 263 s after the leader line (each client's create included). The bootstrap and the health wait with three voters answered at once, as on the local run (1.6). The longest wait of the Nomad step stayed far under its 10 minutes.
- The Nomad API, through the certificate and token of
hack/tent-operator, the stopgap thattent export nomadhas since replaced (TLS nameserver.global.nomad): 3 alive servers, autopilot healthy with 3 voters, 2 ready and eligible clients under their instance labels. A docker job in bridge mode ran on a client after 5 s and was purged. - A second run.
update cluster --exit-codeexited 0 andupdate cluster --yesprintedcluster … is up to date, each in 4 s. All 5 instances carry atent/spec-hashtag, 2 distinct values (servers and clients). - User data. All 5 instances still held
/etc/tent/node.json: M2.7a scrubbed nothing. - A client.
status.jsonhadpreflightandverifyunchanged and every other phase done;05-join.hcllisted the 3 servers on port 4647. The intro token file was 787 bytes, mode 0600,root:root, for the node namespk-qypvsk-workers-0(the plan's size check assumes up to 2048). The size matches the estimate of 4/3 bytes per name character, twice, from the 739 bytes for a two-character name (1.6). - Decision 26 on a real server.
systemctl restart nomadexited 0 and the unit was active again at once (Resultsuccess,NRestarts0). Its journal had oneFailed with result 'exit-code'line, the stop ending with status 1. Autopilot was healthy with 3 voters 7 s after the restart. - The delete.
tent delete cluster --yesexited 0 after 23 s; the VPC delete was retried four times, about 10 s, while Vultr still listed the instances as attached. Afterwards no instance, VPC, firewall group or SSH key of the cluster was left, and the state store was empty. None of the CA key, gossip key, ACL bootstrap token and operator key appeared in tent's output or the report.
M2.7b cluster check, first run (rugw2m, spike v10, --only cluster --unregistered, 2026-10-06) ran tent
v0.1.0-rc.2-53-g638ebd9-dirty with a development tent-node on Ubuntu 24.04, ams, vc2-1c-1gb. It built the cluster
of the M2.7a check, 3 servers and 2 clients, and the replacement of a client then failed (below). The three rows
after it, the replacement, its node and the final update --exit-code, did not run. It verified:
- The build.
tent create cluster --yesexited 0 after 543 s. The leader, the ACL bootstrap and the healthy servers showed at 268 s, and the clients registered 142 s and 275 s after the leader line. Fivescrubbed the user data of node …lines followed, a server's after the healthy servers and a client's after its registration. - The scrub. Five of five instances carried
tent/joined=truebesidetent/spec-hash, and their user data, read fromGET /v2/instances/{id}/user-data, equalled tent's stub byte for byte and held no/etc/tent/node.json. So one PATCH set the tags and the user data (3.3).update --exit-codeexited 0 andupdate --yesprintedis up to date, each in 4 s. - A reboot of a client left
/etc/tent/node.jsonwith its sha256. SSH answered after 53 s and Nomad listed the node ready and eligible 54 s after the reboot. - The delete guard. With one client in the specs,
updateandupdate --yeseach exited 1 in 5 s and 4 s withupdate would delete a node that joined Nomad: …-workers-1, and 5 instances stayed. With the specs restored, the plan was empty. - A client that never registered.
systemctl stop nomad.serviceleft the unitinactive, and it was still inactive 1711 s later, so nothing starts Nomad again. The purge of its node answered HTTP 200. At an age of 1946 s the plan was a delete asnot registeredand a create of the same name, exit 0 in 5 s. - The delete.
tent delete cluster --yesexited 0 after 19 s. The VPC delete was retried three times (0.9 s, 1.6 s, 3.3 s) while Vultr still said that servers were attached. Nothing was left in the Vultr API or the state store, and no secret was in the output.
It found two things, both fixed:
- cloud-init read degraded after the reboot.
cloud-init status --wait --longprintedstatus: done,extended_status: degraded doneand exit 2, with the recoverable errorFailed at merging in cloud config part from part-001: empty cloud config. The stub was a header and a comment (6.5). The stub got a line{}. The row had called this as expected, since it read onlyerrors: []. - The replacement failed at the account's limit (3.14):
update --yesexited 1 after 11 s. The Vultr provider now sends a node create again that the instance limit refuses within 2 minutes of its own delete.
M2.7b cluster check, second run (sv3vwb, spike v11, --only cluster --unregistered, 2026-10-06) ran tent
v0.1.0-rc.2-54-g7d1c6fd-dirty the same way, with the two fixes in the code. Spike v11 changed three things against
v10: the stub's bytes, the cloud-init verdict of the reboot row (it needs status: done, exit 0 and no recoverable
error), and the row of the replacement, which also gives the seconds between the delete and the create and the time
that a client's create took in the build. It verified:
- The build.
tent create cluster --yesexited 0 after 484 s. The leader, the bootstrap and the healthy servers showed at 212 s, the clients registered 140 s and 271 s after the leader line, and five of five instances carriedtent/joined=trueand the stub of three lines.update --exit-codeexited 0 in 6 s andupdate --yesprintedis up to datein 3 s. Three voters were back 1 s after a server's restart. - cloud-init after the reboot was healthy:
status: done,extended_status: done,errors: [],recoverable_errors: {}, exit 0 (6.5). The row itself readUNEXPECTED: cloud-init status ? (errors []):cloud-init status --waitprinted..status: done, and the script read the status only at the start of a line. The script is fixed, and the third run shows the row as expected; the details of this report hold the healthy status. - The delete guard exited 1 in 5 s and 4 s with 5 instances left, and
--exit-codeafter the specs were restored exited 0 in 4 s. - A client that never registered. Nomad was inactive after the stop and still inactive 1711 s later. At an age of
1944 s the plan was the delete as
not registeredand the create, exit 0 in 6 s.tent update cluster --yesthen exited 0 in 142 s: it deleted, created, registered and scrubbed the client. The new machine took the node's name and Nomad listed it ready and eligible at 10.64.0.7.update --exit-codeafter it exited 0 in 7 s. - Vultr gave the replacement the private address of the machine it replaced: 10.64.0.7 for the new instance
222dbfa9-…as for the old4b4c83f4-…. - The delete.
tent delete cluster --yesexited 0 after 18 s and left nothing; the state store was empty; no secret was in the output.
The report does not say whether Vultr refused the replacement's create: the provider logs a refusal at info level, and
the run was made without -v. created node came 51 s after deleted node, against 50 s for a client's create in the
build, so a retry cost a few seconds at most (3.14). Unit tests cover the
retry.
M2.7b cluster check, third run (rgfckj, spike v11, --only cluster, 2026-10-06) ran tent
v0.1.0-rc.2-54-g17bc737-dirty with the fixed script and without --unregistered. Every row read as expected, and
the client check was skipped. tent create cluster --yes exited 0 after 429 s; the leader and the bootstrap showed at
185 s and the healthy servers at 188 s; the clients registered 124 s and 243 s after the leader line; five of five
instances carried tent/joined=true and the stub. After the reboot of a client SSH answered after 53 s, Nomad listed
the node ready and eligible 54 s after the reboot, and the row read cloud-init status done, exit 0, no recoverable error (status: done without dots, extended_status: done, recoverable_errors: {}, exit 0). The delete guard
exited 1 in 7 s and 4 s with 5 instances left. tent delete cluster --yes exited 0 after 20 s and left nothing.
M2.8 cluster check (9pxbqn, spike v12, --only cluster --keep, 2026-10-07) ran tent
v0.1.0-rc.2-67-g57d69b6-dirty. Every row read as expected but one, where the script was wrong. tent create cluster --yes exited 0 after 490 s; the leader, the bootstrap and the healthy servers showed at 208 s; the clients registered
138 s and 281 s after the leader line. The new rows:
tent export nomadexited 0 in 1 s. The directory had mode 700 and the four files 600; stdout was the six lines with a server's public address; the token was not the bootstrap token and was in neither stream; Nomad called it a management token namedtent export nomad ...that ended 24 hours after the export;cli.pemwas forcli.global.nomad, for client authentication only, and ended with the token. With the exported files curl read three alive members, a healthy autopilot report with three voters and two ready clients, and the docker job ran after 6 s.nomad server memberswith the six lines sourced listed the three servers as alive. The row readUNEXPECTED: 3 alive of 4: the script read stdout and stderr together and counted the CLI's hint (1.2) as a fourth server. The script now reads the table from stdout alone.tent validate clusterexited 0 in 2 s withcluster spk-9pxbqn is valid: 3 servers and 2 clients run Nomad 2.0.7and the warnings about the openspec.access.apiand the one failure domain.tent ui --listen 127.0.0.1:0answered/v1/status/leaderand/ui/with 200, used a management token namedtent ui ...that was not the bootstrap token, refusedHost: example.comwith 403, ended with exit 0 one second after SIGINT, and its port then refused connections.- A client whose Nomad stops. After
systemctl stop nomad.serviceonspk-9pxbqn-workers-1Nomad listed the node down after 21 s.tent validate clusterthen exited 2 in 3 s and named the node withits Nomad client is down. Aftersystemctl start nomad.service,tent validate cluster --wait 5mexited 0 in 2 s.
The rows of M2.7a and M2.7b read as before: after the reboot of a client SSH answered after 53 s and Nomad listed the
node ready and eligible after 54 s, and the delete guard exited 1 twice with five instances left. None of the six
secrets that the run read (the CA key, the gossip key, the bootstrap token, the operator's key and token, the token of
tent ui) was in its output. The delete rows did not run, since --keep left the cluster for the steps by hand; the
maintainer deleted it with tent delete cluster --yes after them.
By hand against that cluster, through tent ui, the same day:
- The maintainer opened the UI in a browser and it worked, an exec into a task and the Logs tab included. The first
try showed nothing:
tent uiran on another machine over SSH, and its port is a loopback port of the machine that runs tent. - Headless Chrome 154 loaded
/ui/through the proxy, and the proxy's log at-vshowed 200 or 204 for every request it made. A request with aHostof another port got 403forbidden: unexpected Host, as an SSH tunnel on another local port would. - With
NOMAD_ADDRset to the proxy's address and no other variable, thenomadCLI 2.0.7 ran the job of the quickstart (nomad job run: the deployment was successful and the allocation ran on a client),nomad alloc execinto its task (the proxy logged the upgrade with status 101),nomad alloc logsandnomad job stop -purge.tent uiexited with 0 on SIGINT each time.
E2E runs of M2.9 (2026-10-07), make e2e, each with one cluster of 1 server and 1 client per image, both images
at once (ADR-0034):
0oqujb: both clusters failedcreateafter about 11 minutes withfailed to wait for a Nomad leader. On a debug cluster built the same way,e2e-dbgaa1-2404, tent-node refused to run:tent-node is v0.1.0-rc.3-2-gf15e11a, not dev, the version of the node config's tent-node asset, since the suite had built tent without the Makefile's version (1.6).make e2enow builds tent and tent-node with one version and uploads that tent-node.4bjbp8: on 26.04 the first client's intro token got Nomad's 500keyring has not been initialized yetright after1 Nomad server is healthy(1.2); tent now waits for the keyring. 24.04 passedcreatein 6m22s, and the suite'svalidatelacked--allow-single-server.b2qpe2:create,validate,exportandservicepassed on both images;metadatafailed on both with exit 12 in all three groups: the one control site,archive.ubuntu.com, timed out. From the maintainer's machine,archive.ubuntu.comandsecurity.ubuntu.comdid not answer over IPv4 at that time either, whiledeb.debian.org,detectportal.firefox.comandcaptive.apple.comdid. The probe now tries those three.r7l48w,58sglhandg57k85(the last on the final code of M2.9): every step passed on both images, in 435 s, 409 s and 348 s. Per image:create4m6s to 6m18s,validate1 to 2 s,export1 to 2 s,service5 to 10 s,metadata10 s,intro-token5 to 10 s,delete18 to 20 s. Every metadata probe, on Nomad's bridge, Docker's bridge and the host network, printedwget: download timed outafter a control site answered; each server loggednode registration without introduction token: enforcement_level=strict ... node_name=e2e-rogue. The leak check of the 24.04 cluster took 101 s, 71 s and 42 s while the other cluster was still being built. The log ofr7l48wdid not show its polls; in58sglhandg57k85no poll listed anything, and ing57k85no retry of a Vultr call was printed. The times fit one list request that waits out its 30 s timeout per failed poll (by the timing only); the suite now logs a poll whose lists fail, with the error and the time they took.
M3.3 roll check (2026-10-08), a fish script run by the maintainer's session (not a hack/ spike run; its logs are
not in the repo), tent v0.1.0-27-g5893420 with the tent-node of the same build, Nomad 2.0.7: a cluster of one server
and two workers, a job of two allocations (distinct_hosts, migrate { max_parallel = 1, health_check = "checks", min_healthy_time = "10s" }, an HTTP check every 5 s), the workers made outdated by a change of spec.nomad.meta, then
tent rolling-update cluster --yes under a poller that read the job's allocations with their checks and the cluster's
instances with a 2 s pause between polls (about every 3 s). A second roll was cut with Ctrl-C during its first drain
wait and run again. Both rolls passed every check of the plan, and the cluster was deleted with nothing left by its tag.
Times are the progress lines' and the poller's (UTC, to the second).
- The job: at each of the 233 polls of the two rolls at least one allocation ran with its check passing.
- A new machine: Vultr listed it with status
pendingat once, thenactivewith power_statusstopped3 to 7 s later; tent had its private address after 52 s; Nomad listed its node 82 to 91 s after that (three creates). - A drain of a node with one allocation took 7 s (three drains).
- A deleted instance was gone from
GET /v2/instances?tag=...at the next poll, within 2 s of the delete's answer (three deletes; the fourth fell into the API's errors below). - Private addresses: a machine whose create was sent 1 s after a delete got a fresh address (10.64.0.7, while 10.64.0.4 had been freed); machines created about 5 minutes after deletes got the addresses of the deleted machines (10.64.0.4 and 10.64.0.5).
- The node of a deleted machine read
downin Nomad 24 s after the delete's answer (one server, one measurement). - Vultr's API answered 502 and timed out from 20:22:23 to 20:24:09 UTC during the first roll (about 110 s, with one answer at 20:23:33); tent's delete in that time took 22 s, and the roll went on.
- The cut: the cut run printed
failed to wait for node e2e-m33roll-workers-2 to drain: context canceledandError: interrupted; Nomad finished the drain meanwhile, and the next run's first step deleted the drained machine. - Run times: the cluster's create 7 minutes; the first roll of two workers with
maxSurge1 429 s (with the API's errors); the run after the cut 182 s; the whole check 21 minutes.
M3.4 server roll check (2026-10-10, an early run), a fish script run by the maintainer's session (not a hack/
spike run; its logs are not in the repo), tent at d18132f with the tent-node of the same build, Nomad 2.0.7, region
ams, plan vc2-1c-1gb, ubuntu-24.04: three servers and a worker, a job of one allocation with an HTTP check, the
servers made outdated by a change of spec.nomad.extraConfig.server, then tent rolling-update cluster --yes -vv under
a poller that read the leader and the job (every 1 to 6.5 s, 422 polls). The cut that the script was to make did not
reach tent (the wrapper that fish started blocked SIGINT: a fault of the script, fixed), so this run is the uncut one.
Times are the progress lines' and the poller's.
- The roll ended by itself in 12 min 5 s with
Rolled: 3 created, 0 drained, 3 stopped, 3 deleted, 0 purged.ThenNothing to roll.,validate clusterexit 0, four instances, the servers-3,-4and-5as voters at their private addresses, autopilot healthy with failure tolerance 1, threealivemembers and no other. - Per server (
-0,-2, then the leader-1): from the create call to the machine's address 52, 52 and 42 s; from there to the vote 59 to 61 s; the window 52 to 53 s (71 s after the transfer); the halt call 2.2 s; the wait until autopilot no longer counted the stopped server 35, 35 and 37 s; the force-leave about 1 s, then healthy within 2 s; the delete 0.4 s. - Who removed the peer: autopilot for
-0(noRemovePeerby tent), tent for-2and-1. - The transfer answered in 55 ms. No unhealthy read followed it and no settle wait came. Autopilot read unhealthy,
with the stopped server
leftand failure tolerance 0, at three polls only, each right when the stopped server's peer went. - Leader and job: the poller got a leader from a server at every poll, also at the transfer; the allocation ran with its check passing at each of the 409 polls that read the job (13 reads went to a server that had just been halted and timed out; the poller now asks the next server). Every one of the roll's 261 observation lines named a leader.
- A halted machine stops at once: a probe that connected to the stopped server's port 4646 every 200 ms was
accepted for the last time 0.25 to 0.31 s after tent's
stoppingline, about 2 s before the halt call returned (three halts). Vultr listedpower_statusstopped4 to 19 s after the call. - The pace of the loop: an observation that does not list the machines took 0.17 to 0.29 s (229 polls of waits); one that lists took 2.2 to 2.9 s (the one before each stop and the one after it).
- Private addresses: the third new server got 10.64.0.3, the private address of the first old server, which was deleted 3 min 48 s before; it joined under its new name and voted in the usual time.
- ADR-0016's follow-up: the worker was rebooted through Vultr after the roll: its node read
down20 s after the call andreadyagain, under the same node ID and with its allocation running, 53 s after the call (uptime 36 s). Its05-join.hclthen named exactly the three new servers' addresses.
M3.4 server roll checks, second run (2026-10-10, 12:31 to 13:18 UTC), the same kind of script as the early run, tent
at 069f100, region ams, Nomad 2.0.7, with a poller on the leader and the job. Times are the progress lines' and the
poller's.
- Three servers and a worker, cut during the second server's wait for autopilot. The cut run ended with
Error: interrupted. The next run finished in 337 s withRolled: 1 created, 0 drained, 1 stopped, 2 deleted, 0 purged.ThenNothing to roll.,validate clusterexit 0, the servers-3to-5as voters, autopilot healthy with failure tolerance 1 and threealivemembers. A leader answered at each of 430 polls, and every observation line named one. - Halts: the call took 2.1 to 2.5 s; the last connection that the stopped server accepted began 0.25 to 0.47 s after
the call began; Vultr listed
stopped6 to 7 s after the call. - The worker's reboot through Vultr: down after 29 s, back after 61 s with its node ID, and its
05-join.hclheld the three new servers. - The job's allocation was lost once. The first old server was halted at 12:40:53. From 12:41:12 to 12:41:30 the
servers listed no running allocation: the worker's node had been marked down and its allocation
lost(alloc is lost since its node is down). A replacement was created on the same node at 12:41:31 and started at 12:41:32, and the old task was stopped by 12:41:37. The worker was healthy all along; the server it talked to had been powered off, and its heartbeats did not reach another server in time with Nomad's defaults. The lab above measured the mechanism; tent'sheartbeat_graceandrpcsettings are the fix.
M3.4 single-server rolls (2026-10-10, 12:31 to 13:18 UTC, the same session): a cluster of one server and a worker,
three rolls, each with a new server (-1, -2, -3). None of the new servers' 10-node.hcl had bootstrap_expect;
the first server's had bootstrap_expect = 1.
- All three rolls: a leader answered at every poll of the rolls (the one gap, 44 s, is the reboot at the end); the same allocation ran from the start to the end (792 polls read it); the Raft configuration never held two voters with one stopped.
- Run 1, uncut, 5 min 14 s: the transfer at 13:00:11.57; the first
RemovePeer72.5 s later; the hold 48.7 s; the poller saw the old server a nonvoter again at 13:02:11, 120 s after the transfer; tent removed it at 13:02:14.58 and sent the halt at 13:02:16.06, 4.5 s after the reconcile. - Run 2, cut right after the first
RemovePeerand left for 80 s: the leader added the old server 120 s after the transfer and autopilot promoted it 9 s later (two voters, both running). The next run removed it, held for 22 s until the reconcile at 180 s, removed it again and sent the halt 5.8 s after that reconcile; it took 39 s. - Run 3, cut in the window after the transfer: the next run's first
RemovePeercame 119.476 s after the transfer, 0.5 s before a reconcile. The leader added the server at once; tent removed it 3.5 s later, held the stop because it had not seen the server absent first, and stopped it 4.3 s after the next reconcile, 60 s later. - Halts: the call took 2.2 to 2.4 s; the last accepted connection began 0.24 to 0.30 s after the call began; Vultr
listed
stoppedabout 4 s after. The worker's05-join.hclheld the new server's address alone 1 to 40 s after each roll. The server that was rebooted through Vultr led again 54 s after the call, with the worker ready and its allocation running.
M3.4 client check (2026-10-10, 16:26 to 16:51 UTC), tent at 7c6f61d with the heartbeat settings of
ADR-0038 item 19, region ams, Nomad 2.0.7: three servers and three
workers, the job e2e-web with three allocations on distinct hosts, the servers rolled uncut.
- The roll took 757 s:
Rolled: 3 created, 0 drained, 3 stopped, 3 deleted, 0 purged.Every worker's00-tent.hclhad therpcblock. - At each of 325 polls (one every 2.1 s, the longest gap 13.1 s) a leader answered, the three nodes read ready and the three allocations of the start read running. The job had no other allocation at the end.
- The workers did lose their server: after each of the three halts the checks of one or two workers could not be read through the servers for 32 to 37 s (workers 1 and 2 after the first halt, worker 1 after the second, worker 0 after the third). So four times a worker's server was powered off and its node stayed ready. With Nomad's defaults the lab lost 19 of 24 such clients, and the second run above lost its one.
M3.4 check of the names (2026-10-10, 20:15 to 20:29 UTC), tent at 0c6363d, region ams, Nomad 2.0.7: one server
and one worker, a job with one allocation.
- The cut:
rolling-update --force --nodegroups servers --yeswas cut 3 s into the window, afterservers-1had joined (Error: interrupted; three instances ran). - The second run: the same command ran to its end in 355 s with
Rolled: 1 created, 0 drained, 2 stopped, 2 deleted, 0 purged.It removedservers-1first (the peer, a hold of 32 s for the leader's reconcile, the peer again, the stop, the member, the delete), createdservers-21.2 s after that delete, moved the leadership to it and removedservers-0the same way (a hold of 51 s). Without the remembered index, the tests of the code show that create takingservers-1again. - After it: the two creates of the two runs were
servers-1andservers-2; the store'snames/serversheld2; the server group had one instance, the one voter;validate clusterwas valid and a plainrolling-updatehad nothing to roll. - The job: at each of 275 polls a leader answered, the worker's node read ready and the allocation of the start ran with its check passing; the job had no other allocation. The check deleted its cluster with 0 instances left.
- The second run sent the first removal without a window: the window counts the voters other than the victim, and the other voter had been stable for long.
M3.5 combined roll, three nodes (2026-10-12, 11:38 to 11:59 UTC), tent v0.1.0-66-g97ecb2a, region ams, plan
vc2-1c-1gb, ubuntu-24.04, Nomad 2.0.7: three combined nodes, the job e2e-web with three allocations on distinct
hosts (distinct_hosts, so that every drain moves one) and a system job of one small task. A poller read the leader,
autopilot and the job's allocations over the operator's access. The run passed.
- Three runs: the first was cut 0.5 s after
waiting for node e2e-m35roll-nodes-0 to drain; the second found that drain complete (its plan:Next: stop node e2e-m35roll-nodes-0), sent no second drain, and was cut 3 s into the second node's wait for autopilot; the third finished in 383 s withRolled: 1 created, 1 drained, 1 stopped, 2 deleted, 2 purged.From the start of the first run to the end: 14 min 14 s. - The new nodes (3, 4 and 5): the create call took 41.1, 52.8 and 51.4 s; from its end the node read ready after 76.0, 70.5 and 93.6 s and the server voted after 93.9, 93.7 and 112.7 s; tent's wait for the join ended 95.8, 94.1 and 113.2 s after the create's end. The node half came 18 to 23 s before the vote, as the lab saw.
- Drains took 9.6 s and 8.5 s (the first was cut).
- The leader (
nodes-1) went last: drain, transfer at 11:57:11.5 (the call took 0.07 s), a settle of 3.8 s (autopilot reports the servers unhealthy (e2e-m35roll-nodes-1)), the window until 11:58:22, and the stop at 11:58:25, 73.7 s after the transfer. - Stops: the call took 2.2, 2.6 and 2.1 s; Vultr listed the machine stopped 8.7, 1.8 and 20.0 s after the call;
Nomad listed the node down 33.9, 32.9 and 20.0 s after the call, the old leader's 20.0 s; autopilot stopped counting
the server 46.3, 40.0 and 44.0 s after the stop; autopilot removed the peer twice and tent once (the old leader's);
the delete came 47.6, 43.5 and 45.6 s after the stop, and the purge about 2 s later. No
waiting for Nomad to list node ... as downappeared: each node was down before its machine's delete. - The service: every one of the 321 observation lines of the loop names a leader. The poller saw a leader at each of its 348 polls and one change of leader, at the transfer, between two polls 2 s apart. At least two of the job's three allocations ran at every poll (three at 345 polls, two at 3); their checks passed for three at 309 polls, two at 38 and one at one poll (the checks are read from the client through a server).
- The system task: at the last poll before each stop the system job's allocation on the node read
completewith the desired statusstop, and the service allocationcomplete. No task was cut at a stop in this run. - After the roll:
Nothing to roll.,validate clusterexit 0, Vultr listed nodes 3 to 5, three voters at their private addresses, autopilot healthy with failure tolerance 1, threealivemembers, three ready and eligible nodes, both jobs on each new node, and no peer, member or node of an old machine. The cluster was deleted with no instance left. - Not measured: a poll every second (the poller read every 2 s, since a poll with the checks of three allocations takes about 2 s, and 5 s while a stopped machine is still asked, once 10.6 s).
M3.5 combined roll, one node (2026-10-12, 12:01 to 12:11 UTC), the same tent, region and image,
--allow-single-server, a job of one allocation and the system job. The run passed. The script's own verdict first read
FAILED for one line: it took a poll's start for the time of its Raft read, and the poll that began 0.3 s before the
first removal read the configuration after it. The script is fixed, and its analysis of the saved data has no failure.
- The new node:
10-node.hclhas nobootstrap_expect(read over SSH), the old node's hasbootstrap_expect = 1. The create call took 51.7 s; from its end the node read ready after 81.2 s and the server voted after 98.7 s (a nonvoter at 12:07:22, a voter at 12:07:39); tent's wait for the join ended after 99.2 s. - The drain took 9.6 s (12:08:35.4 to 12:08:45.0). The job's allocation ran on the old node at the poll of 12:08:40.7, nowhere at 12:08:42.0 and on the new node from 12:08:43.7: Nomad stops the one allocation before its replacement runs. It ran on the new node 126 s before the stop call.
- The removals: the transfer at 12:08:45.05 took 0.05 s; the window ran until 12:09:55; the first
RemovePeerat 12:09:55.13 took 0.14 s (two voters before it, one after it); the hold began at 12:09:56.5 and lasted 52.0 s; the poll that began at 12:10:42.2 was the first to show the old node in the Raft configuration again, as a nonvoter (the leader's reconcile two minutes after it took the leadership was at 12:10:45.1); the secondRemovePeerat 12:10:48.53; the stop call at 12:10:49.78, 7.6 s after that poll began, took 2.4 s. The old server never read as a voter after the first removal, and the Raft configuration never held two voters with one stopped. - The old node's client read
readyandineligibleat every poll in the 54 s from the first removal to the stop: the client of a server that is out of the Raft configuration kept its heartbeats. - After the stop: force-leave at 12:10:54.0, the delete at 12:10:54.3, done at 12:10:54.6 (4.8 s after the stop
call began), the wait for the node to read down 21.8 s, and the purge at 12:11:17.2. Nomad listed the node down
27.4 s after the stop call began. The poller never saw it
down: the purge came in the same second. - The service: the poller saw a leader at each of its 202 polls and one change of leader, at the transfer; the polls
came 1.3 to 2.4 s apart, at most 5.2 s. All 142 observation lines of the loop name a leader. The system job's
allocation on the old node read
completeat the last poll before the stop. - The run took 372 s and ended with
Rolled: 1 created, 1 drained, 1 stopped, 1 deleted, 1 purged.ThenNothing to roll.,validate cluster --allow-single-serverexit 0, and Nomad listed one voter, one member and one node, all ofe2e-m35one-nodes-1, with both jobs on it. - Not measured: a poll every second (the poller needed 1.3 to 2.4 s a poll); a system task that is cut at a stop (none was, in four stops of the two runs).
M3.6 scale-down, first run (2026-10-12, 18:19 to 18:38 UTC), tent v0.1.0-78-g5b4ac01, cluster e2e-m36scale,
region ams, plan vc2-1c-1gb, ubuntu-24.04, Nomad 2.0.7: three servers and two workers, and a job of two allocations
on distinct hosts, so that each worker runs one and the drain of a worker has one to stop. With one worker left that
allocation has no other host: it read complete and was not placed again. A poller read the leader, the Raft
configuration, autopilot, the nodes and the job's allocations over the operator's access. All four steps ran. The script
ended FAILED at its last line for a wrong expectation of its own: it looked for the line cluster <name> is up to date,
which only update --yes prints, and a plan without --yes prints No changes.. It stopped before the servers' logs
were read and before the analysis. The analysis of the saved data has no failure, and the second run (below) reads the
logs.
- Step 1, workers from 2 to 1 (the plan:
- node e2e-m36scale-workers-1 (ID ..., surplus, after a drain within 1h0m0s)): the mark at 18:29:10, the drain 6.8 s, the delete at 18:29:17, where the run was cut. The plan 8 s later readNo changes.(the node still readready). The node readdown35.4 s after the delete, at a poll. The plan after that held- Nomad node e2e-m36scale-workers-1 (10.64.0.7, down, no machine)andNomad nodes: 1 to purge., andupdate --yespurged it in 14 s:Removed: 0 drained, 0 stopped, 1 purged.The drained worker's allocation readcompletebefore the delete. The other worker's allocation ran at each of 222 polls, and its node stayedreadythrough all four steps. - Step 2, servers from 3 to 1 (the plan lists
-2and-0;-1led and stays).-2: the stop call at 18:30:39 took 2.1 s, the last accepted connect came 0.3 s after the call began, Vultr listed it stopped 2.4 s after, autopilot stopped counting it 42.5 s after, tent removed its peer at 18:31:21, and the delete came 45.2 s after the stop.-0: the firstRemovePeerat 18:31:26.1 (two voters to one), the hold from 18:31:27.9, the cut at 18:31:28. In the 80 s that followed, the leader added-0again as a nonvoter (first seen at the poll of 18:32:15) and autopilot promoted it (18:32:25).- The second run removed its peer at 18:33:00.2, held from 18:33:02.4 for 14.7 s, saw the re-add (a nonvoter at the
poll of 18:33:15), removed it at 18:33:17.1, and sent the stop at 18:33:18.7, 2.8 s after that poll. The call took
2.6 s and the last accepted connect came 0.4 s after it began; the force-leave came 4.1 s and the delete 4.8 s after
the stop. That run took 36 s:
Nodes: 0 created, 0 waited for, 1 deleted. Removed: 0 drained, 1 stopped, 0 purged.The Raft configuration never held two voters with one stopped. After it: valid with--allow-single-server, two instances, one voter, onealivemember.
- Step 3: the server led again 59 s after the reboot call (uptime 41 s), with the worker ready and its allocation
running. Its
10-node.hclhasbootstrap_expect = 3. The worker's05-join.hclstill named two addresses 69 s after the shrink ended. - Step 4, servers back to 3 (the plan:
+ node e2e-m36scale-servers-3and-4): the create calls took 52.0 and 53.2 s; the servers were in the Raft configuration 53.7 and 46.3 s after their create's end and voted 74.0 and 61.1 s after it; the run took 180 s.names/serversholds4;validate clusterexits 0; the servers-1,-3and-4vote at their private addresses with a failure tolerance of 1; the next plan readsNo changes. - The service: a leader answered at every poll outside the reboot: at 259 of the run's 297 polls, the other 38 falling between 18:33:32 and 18:34:24, while the server rebooted (one leader for the whole run). The polls were 1.7 s apart in the median and at most 5.0 s; all 44 observation lines of the loop name a leader.
M3.6 scale-down, second run (2026-10-12, 18:39 to 18:59 UTC): passed, the same tent, region and image, cluster
e2e-m36scale2, the same four steps, plan lines and job as the first run. The script and the analysis report no
failure. The cluster was deleted with no instance left. What differs from the first run:
- Step 1, workers from 2 to 1: the delete at 18:49:30. The plan 7 s later read
No changes.The node readdown36.9 s after the delete, andupdate --yespurged it in 13 s. The other worker's allocation ran and its node readreadyat each of 252 polls outside the reboot. - Step 2, servers from 3 to 1 (the plan lists
-2and-1;-0led and stays).-2: the stop call at 18:51:07 took 2.7 s, Vultr listed it stopped 12.8 s after, autopilot stopped counting it 39.9 s after, tent removed its peer at 18:51:47, and the delete came 41.6 s after the stop.-1: the firstRemovePeerat 18:51:50, the cut in the hold (failed to wait for the leader's reconcile: context canceled,Error: interrupted). The leader added-1again as a nonvoter (the poll of 18:52:03) and autopilot promoted it (18:52:14).- The second run held from 18:53:26 for 41.2 s (14.7 s in the first run: the leader's reconcile comes once a minute), saw the re-add (a nonvoter at the poll of 18:54:04), removed the peer at 18:54:07 and sent the stop at 18:54:09, 4.9 s after that poll. That run took 62 s. The Raft configuration never held two voters with one stopped.
- Step 3: the server led again 52 s after the reboot call. The worker's
05-join.hclnamed the one server alone (retry_join = ["10.64.0.3:4647"]) at the first read, 60 s after the shrink ended; the first run's two addresses were a file thatrefresh-joinhad not rewritten yet. - Step 4, servers back to 3 (
Nomad: wait for 3 healthy servers.): the create calls took 53.2 and 41.9 s; the servers voted 61.2 and 60.6 s after their create's end; the run took 170 s.names/serversholds4, and the next plan readsNo changes. - The servers' logs: no line with
conflicting expect valueon any of the three servers. The agents started at 18:55:08 (-0, after its reboot), 18:57:15 (-3) and 18:57:55 (-4), 40 s apart or more. - The service: a leader answered at every poll outside the reboot: at 291 of the run's 322 polls, the other 31 falling between 18:54:25 and 18:55:08. The polls were 1.7 s apart in the median and at most 9.8 s; all 50 observation lines of the loop name a leader.
- Not measured: a poll every second; two new servers whose agents start in the same second; combined agents in a scale-down.
M3.6 cluster check (awhnve, spike v13 with the scale-down rows, --only cluster, 2026-10-12, 19:01 to 19:14
UTC) ran tent v0.1.0-78-g5b4ac01. Every row read as expected, and the client check was skipped. tent create cluster --yes exited 0 after 444 s; the leader showed at 204 s and the bootstrap, the healthy servers and the keyring
at 205 s; the clients registered 119 s and 239 s after the leader line; five of five instances carried
tent/joined=true. The rows of the scale-down, which stand where the rows of the delete guard stood: with one client
in the specs tent update cluster exited 0 in 6 s with - node spk-awhnve-workers-1 (ID ..., surplus, after a drain within 1h0m0s) and five instances listed, and tent update cluster --yes exited 0 in 38 s and left four. With the
saved specs back, update --exit-code exited 2 in 4 s with + node spk-awhnve-workers-1 (client, vc2-1c-1gb, ams),
and update --yes exited 0 in 125 s and left five. tent delete cluster --yes exited 0 after 21 s and left nothing.
M3.8 backup check (2026-10-13, 22:06 to 22:22 UTC: passed), a fish script run by the maintainer's session (not a
hack/ spike run), tent at 5d8c2f2, cluster e2e-m38backup, region ams, plan vc2-1c-1gb, ubuntu-24.04: one
server and one worker, at most 3 machines at once. A job of one allocation and one Nomad variable ran on it.
- The cluster was built in 4.5 min. The backups
N0andN1of the running cluster were 9,678 and 9,673 bytes, each taken in under 3 s.backup restorewithlatestand two current backups was refused withevery backup of cluster e2e-m38backup is of the servers that it runs now. - The loss. The server machine was deleted through the Vultr API.
update --yes --allow-single-serverbuilt a new server in 1 min 40 s, and Vultr gave it the same private address, 10.64.0.3. A backup of the empty new Nomad was 2,927 bytes. - Before the restore the new server listed 0 nodes: the old worker could not register with it under strict client
introduction. A job that the run registered on the new server made the restore refuse (
runs 1 job that was registered after its servers were built again on ...). After its purge the plan namedN1and0 nodes, andrestore --yestook 4 s. - After the restore the job and the variable were back, and the management token that
export nomadhad made before the loss worked again. The old worker's node readreadyat every poll for 7 minutes, andvalidate clusterwas valid at once (1 server, 1 client): with the server at its old private address the worker reached the restored server, and Nomad knew its node from the backup. No forced roll was needed in this run. - The repeats.
restore --yesagain printedalready restoredand exited 0.--from N0 --yeswas refused with exit 1, since the servers were restored fromN1already.delete clusterlisted the three backups andnomad/restored, deleted them with the cloud objects, and no instance was left. - The first run (18:57 to 21:50 UTC) failed on a fault of the script:
nomad job runwaits for its deployment, and with no node in the rebuilt cluster it waited until the maintainer's session stopped it. The script now uses-detach, and that cluster was deleted.
E2E runs of M3.9 (2026-10-14), ha on ubuntu-24.04 (3 servers and 2 workers) and upgrade on ubuntu-26.04 (3
combined nodes, Nomad 2.0.6 to 2.0.7) at once, at most 10 machines
(ADR-0043); w28exz and ae5dhs ran make e2e E2E_RUN='TestHA|TestUpgrade', qkmdrs and hik34s the full make e2e:
w28exz(00:46 to 01:09 UTC;haandupgrade):upgradepassed every step but the leak check. The roll of three combined nodes from 2.0.6 to 2.0.7 took 14 min 27 s and its probe passed.hapassedcreatein 7 min 56 s, which shows that autopilot's report held a version for every peer at the read before the first client (ADR-0041). Its server roll ended with exit 0 in 13 min 12 s, and the probe failed it:service unreached for 37.2 s, 495 pollsledandserved, 4ledandunreached, noleaderlesspoll, the leader moved once (10.64.0.3 to .8, at 01:06:07). The two faults were in the suite: Vultr's zoneless creation date (see 3.6) and the checks reads that fail after a hard stop of a server (see 1.6). Both are fixed.ae5dhs(about 01:19 to 01:58 UTC, at the fixed code): both passed.upgrade:create4 min 2 s, with tent's warning that 2.0.6 is untested; the roll 14 min 46 s; the probe saw 632 polls, allled, 630servedand 2unchecked(one stretch of 20.1 s at 01:27:31, a hard stop of a combined node), noleaderless,unservedorunreachedpoll and 10.1 s as the longest gap between polls; the leader moved once (10.64.0.4 to .6);delete21 s; no leftovers.ha:create7 min 43 s; the server roll 12 min 14 s with 476 polls, allled, 475servedand oneunreachedof 7.1 s (the read of the service's registrations through the server that had just stopped), the leader moved once (10.64.0.4 to .8); the restart ofworkers-0, the worker roll 5 min 45 s with 336 polls, allledandserved; the backup step 9 min 36 s (backup create 3 s, 13,876 bytes; delete of the servers 3 s;update3 min 12 s; restore 10 s);delete24 s; no leftovers. The restart and the restore are in 1.6 and 3.5.
qkmdrs(about 02:04 to 02:49 UTC, at0f16490, the fullmake e2e): every scenario passed.smokepassed on both images (create3 min 42 s and 4 min 38 s).upgrade:create4 min 7 s without a warning, since the channel now tests 2.0.6; the roll 14 min 53 s with 629 polls, allled, 628servedand oneuncheckedof 7.1 s; the leader moved once.ha:create7 min 26 s; the server roll 12 min 12 s with 478 polls, allledandserved; the restart ofworkers-0(a new boot after 2 min 18 s, the registration 16 s later, the same node ID, a join file that named the three new servers); the worker roll 5 min 44 s with 336 polls, allledandserved; the backup step 9 min 36 s (13,856 bytes;update3 min 16 s; restore 9 s; the rebuilt servers at 10.64.0.4, .6 and .7, one old address back; the workers back on their own, no forced roll); no leftovers.hik34s(about 03:25 to 04:11 UTC, the fullmake e2ewith the fixes of the final review): every scenario passed, and every poll of the three probes wasledandserved(624 inupgrade's roll of 14 min 57 s, 488 inha's server roll of 12 min 30 s, 335 in its worker roll of 5 min 44 s); the probes found a good poll at once after tent exited. One refresh of the addresses timed out after 5 s on Vultr's instance list, and the probe kept the last addresses. The restart: a new boot after 2 min 18 s, the registration 11 s later. The backup step 10 min 12 s, no forced roll; no leftovers.
Still open:
- A halt whose call gets no answer, and how late Vultr may carry one out.
- Object Storage conditional writes (3.12).
- Images other than Ubuntu 24.04 and 26.04 were not checked.
- Account limits beyond 5 concurrent instances were not tested (the M2.7a check and the three M2.7b runs ran 5).
- What
/vpcsanswers in the first 30 s after a create (3.5).
Read at kops master @ ab568ea (2026-09-25). Paths are relative to github.com/kubernetes/kops.
Hetzner support:
- Where the code lives.
- Tasks:
upup/pkg/fi/cloudup/hetznertasks/{servergroup,network,firewall,loadbalancer,sshkey,volume}.go. - Model builders:
pkg/model/hetznermodel/. - Cloud code:
upup/pkg/fi/cloudup/hetzner/cloud.go.
- Tasks:
- Labels. Ownership is by labels only:
kops.k8s.io/{cluster,instance-group,instance-role,…}. Firewalls and the API load balancer select servers by label. - ServerGroup task.
- It lists servers by label. A server needs an update if its user data hash, location, type, image or IP settings differ.
- It labels such servers
needs-updaterather than replacing them. - It creates missing servers named
<ig>-<random hex>. The count is a floor, and surplus servers are left alone.
- Rolling update. kops drains the node, then shuts it down and deletes it (polling up to 150 s). Then it re-runs
the whole
ApplyClusterCmdto create the replacement.MaxSurgedefaults to 0 outside AWS. - Pitfalls:
- random names give non-idempotent creation, and concurrent runs over-provision;
- the whole graph is re-applied per replaced node, under a limit of 3600 requests per hour;
- a crash between delete and reconcile leaves the group short;
- the Hetzner docs are outdated.
Bootstrap credentials on Hetzner:
- Control-plane nodes read the state store directly.
S3_ENDPOINT,S3_REGION,S3_ACCESS_KEY_IDandS3_SECRET_ACCESS_KEYsit in plaintext in user data. - Worker nodes get only kops-controller URLs and the CA bundle.
HCLOUD_TOKEN, the project-wide Read & Write token, is copied into the kops-controller environment, the etcd-manager manifests and a Kubernetes Secret, all stored in plaintext in the state store.- How kops-controller verifies a node:
- The node claims
x-hetzner-id <serverID>. - The controller looks the server up through the hcloud API.
- It connects to the API-reported private IP on port 3987 with a pinned certificate, and the node must answer a
one-time challenge,
sha256(secret‖nonce). - The request is rejected if a Ready Node with that name already exists.
- The controller issues certificates and the node configuration.
- The node claims
The fi task framework:
- Lifecycle:
Find→ reflection-basedBuildChanges("nil means don't care") →CheckChanges→Render<Cloud>, with the method selected by reflection. - Dependencies are discovered by walking struct fields, with deferred placeholder links.
- Executor: parallel waves with a 10-minute retry deadline per task.
- Pain points:
- contracts are checked only at runtime;
- the dependency graph is implicit;
- removing a field cannot be expressed;
- imperfect normalisation causes perpetual diffs and needless rolls;
- deletion lives in separate code (
pkg/resources) and drifts; - every task needs its own Terraform renderer;
- ServerGroup fakes its "actual" object.
Delete: list by cluster label with retries, blocking edges between resources, and parallel passes retried every 10 seconds for up to 10 minutes. Load balancers created by the cloud controller manager and volumes created by CSI carry no cluster label and leak.
State store:
- Layout:
config,cluster-completed.spec,kops-version.txt(older kops refuses),instancegroup/,igconfig/,addons/,pki/,secrets/,backups/etcd/. - No locking. Issue #5086 went stale.
Channels:
- Channels are fetched at runtime from GitHub raw. They list images per provider, Kubernetes versions and the enforced kops versions.
kops upgrade clusterrewrites the spec only.
Assets: nodeup is downloaded from mirrors with sha256 values in user data. A change of KOPS_BASE_URL changes the
user data and rolls every node.
| Project | Status (2026-09) | Notes |
|---|---|---|
vitobotta/hetzner-k3s |
active (v2.6.0, 2026-06) | Crystal CLI; direct Hetzner API; SSH install; deterministic names (re-running create repairs); in-place k3s upgrades; sleeps until RateLimit-Reset |
syself/cluster-api-provider-hetzner (CAPH) |
active (v1.1.8, 2026-08) | labels on everything; deterministic names + adopt on uniqueness_error; invalid_input/resource_unavailable treated as permanent; pauses an object 5 min on rate limit; CSR approver checks node requests against Hetzner-reported IPs/names |
jsiebens/hashi-up |
unmaintained (last commit 2023-06) | SSH installer for Nomad/Consul/Vault, no infrastructure |
| Terraform modules for Nomad on Hetzner | dead or dormant (2022–2024) | e.g. wenzel-felix/terraform-hetzner-nomad-consul-module; hetznercloud/nomad-dev-env is internal, no compatibility promise |
| Hashistack Ansible collections | configuration only | no cluster lifecycle |
| "kops for Nomad" | does not exist | the niche is open |
Copied:
- ownership by labels;
- deletion by label with explicit dependency edges and retries;
- a user-data/config hash label for drift detection;
- label-selector firewalls and load balancers;
- a version guard file in the state store;
- refusing to delete unknown state files;
- deterministic names with adopt-on-conflict (CAPH, hetzner-k3s);
- reading
RateLimit-Reset(hetzner-k3s); - an identity check through the cloud API plus a callback to the private IP (kops-controller, for the v2 bootstrap controller).
Avoided:
- reflection-driven tasks;
- random names;
- re-planning the whole cluster per replaced node;
- having no lock;
- cloud and state store credentials on nodes;
- environment-dependent node hashes.
The conditional-put lock (architecture §10.4) needs PutObject with
If-None-Match: * (create only) and If-Match: <ETag> (replace only that version), atomic under concurrent writers.
Few servers document how they behave.
Documented:
- AWS S3 supports both headers. A failed condition gets 412. A concurrent request may get 409
ConditionalRequestConflictinstead, andIf-Matchon a missing object gets 404. - Cloudflare R2 lists
If-MatchandIf-None-Matchfor PutObject (S3 API compatibility page, updated 2026-07-31), but says nothing about concurrent writers. The race subtests in CI check that against a real R2 bucket. - R2 throttling. R2 takes at most one write per second to a key and answers faster writes with 429
TooManyRequests(error 10058). It does not document whether conditional puts that fail their condition count toward that limit. - AWS S3 and Ceph RGW throttle with 503
SlowDown.
Verified on 2026-09-26 by running each server in Docker and sending it single and concurrent conditional puts through aws-sdk-go-v2:
| Server | Version | Conditional puts |
|---|---|---|
| Garage | v2.4.1 | both headers ignored: a second create-only put returns 200 |
| Scality CloudServer | 9.4.3 | both headers ignored |
| Ceph RGW on the DBStore backend | 20.2.4 | both headers ignored |
| S3Proxy | 4.1.1 | honoured one request at a time, not atomic under concurrent writers |
| Adobe S3Mock | 5.2.3 | honoured one request at a time, not atomic under concurrent writers |
| Ceph RGW on RADOS, the backend Vultr runs | 20.2.4 | honoured; the loser of a race gets 412 or 409 ConcurrentModification |
| versitygw | 1.8.0 | honoured, atomic in every race |
| RustFS | 1.0.0 | honoured, atomic in every race |
| SeaweedFS | 4.47 | honoured, atomic in every race |
| moto | 5.2.3 | honoured, atomic in every race |
| pgsty/silo, a MinIO fork | — | honoured, atomic in every race |
If-Matchon a missing key returns 404NoSuchKeyon most servers and 412 on SeaweedFS.- Every server accepts the SDK's default CRC32 request checksum.
- Ceph RGW and moto send no response checksum.
What the s3 backend does with this:
- It never sends a conditional put again after a 500 or a lost answer (architecture §10.1).
- It sends a throttled request (429,
TooManyRequestsorSlowDown) again after a random wait of 1–2 seconds, up to 30 attempts in all, conditional puts included: the server did not carry out a throttled request. The SDK does not retry R2's 429TooManyRequests, but it retries a 503SlowDownon a plain request (3 attempts, backoff up to 20 s) inside each of these attempts. - It reads 412, any 409, and a 404 on an
If-Matchput as "precondition failed", and 501 as "no conditional puts". - It validates response checksums only where the API requires them.
- A probe decides at run time whether the server enforces the headers. A server that ignores them gets the provider's lock or the best-effort one instead of a broken one. The probe cannot tell S3Proxy and S3Mock from atomic servers.
- It does not probe Hetzner Object Storage (
your-objectstorage.comand its subdomains) and treats it as a store without conditional writes until E2E proves them (ADR-0010). A Hetzner cluster then locks with the firewall mutex (M4); any other cluster that keeps its state there gets the best-effort lease with a loud warning.
MinIO. The community edition's repository has been archived since 2026-04-25, and it ships as source only: there are no binaries, and its container images can no longer be pulled. So CI runs no local S3 server: the maintainer decided on 2026-09-26 to test the s3 backend against Cloudflare R2 only (issue #22 first named MinIO). A MinIO server that someone already runs is still an S3-compatible store for tent. It was not tested here; pgsty/silo, a fork, passes every check.
What tent-node's hostfirewall and runtime phases rely on in Ubuntu 24.04 and 26.04
(ADR-0029). Read on 2026-09-29 in the packaging source,
Launchpad, packages.ubuntu.com and the cloud image manifests, unless an item says otherwise. What Vultr's images hold
is in 3.6.
- docker.io is built from the source package
docker.io-app.- 24.04 (noble-updates and -security): 29.1.3-0ubuntu3~24.04.2 (2026-05-05), with containerd 2.2.1 and runc 1.3.4. The release pocket still has 24.0.7.
- 26.04 (resolute-updates): 29.1.3-0ubuntu4.1, with containerd 2.2.2 and runc 1.4.0.
- It is in
universe, which Vultr's 24.04 and 26.04 images enable (VM check 2026-09-30, 3.6). - It depends on
iptablesandlibnftables1, and recommends git, ubuntu-fan, pigz, xz-utils, apparmor and ca-certificates, which--no-install-recommendsleaves out. Without pigz Docker unpacks layers with Go's gzip, which is slower. - Its unit (
debian/docker.io.docker.servicein the noble-updates branch of the Launchpad git, read 2026-09-29) hasType=notify,Requires=docker.socket,After=network-online.target firewalld.service containerd.serviceandTimeoutSec=0, so neither its start nor its stop times out. moby's owncontrib/init/systemd/docker.service(docker-v29.1.3) hasTimeoutStartSec=0. - Its postinst enables and starts Docker on the first install (
invoke-rc.d docker startwhen Docker is not running). It ships no files in/etc/docker, so adaemon.jsonwritten before the install is read by the first start. An upgrade does not restart Docker (the debconf default is false).
- nftables and iptables are in both cloud images: nftables 1.0.9 on 24.04 and 1.1.6 on 26.04 (manifests of 2026-09-26 and 2026-09-29). iptables-nft is the default alternative (the iptables postinst gives nft the priority 20 and legacy 10).
- firewalld is in neither manifest, and Vultr's 24.04 image lacked it (spike 2026-09-25).
- Docker 29 keeps iptables as its firewall backend. Its nftables backend is experimental and only with
"firewall-backend": "nftables"(Docker 29 release notes;selectFirewallBackendin moby docker-v29.1.3).- When Docker turns
ip_forwardon itself, it sets the policy of theipandip6filter FORWARDchains to drop;"ip-forward-no-drop": trueprevents that (Docker docs, packet filtering and firewalls). It may also set the drop whenip_forwardwas already 1 (unverified). log-driverandlog-optsare not among the settings that Docker reloads on SIGHUP, so a change needs a restart.live-restorekeeps the containers of a daemon that started with it running while it restarts (dockerd reference). Neither Docker's nor Nomad's docs mention a conflict between live-restore and Nomad (read 2026-09-29). Nomad 2.0.7 did not reattach after a restart of docker.io 29.1.3 with live-restore on the M2.6b VM checks (2026-10-05, runsbxkllhandg2rl9d): the task ended withunexpected EOFand the client started it again in a new container (3.16); why: 6.4.
- When Docker turns
- nftables (nftables wiki, "Configuring chains"):
- A drop in any base chain is final; an accept is not.
nft -fapplies a file as one transaction.table inet tent,delete table inet tent,table inet tent { … }replaces one table atomically withoutdestroy table, which needs kernel 6.3 or later.nftables.serviceis not enabled (--no-enable --no-start), and the default/etc/nftables.confstarts withflush ruleset, which would wipe Docker's and the CNI plugins' tables.- JSON: every
nft -j listputs ametainfoobject first in thenftablesarray (src/json.cof 1.0.9), sonft -j list tableson an empty ruleset prints only that object and exits with 0. 1.0.9 and 1.1.6 print a table'scomment, on Vultr's images too (VM check 2026-09-30); Debian's 1.0.6 does not (the container runs in the next item, andtable_print_jsonin Ubuntu's 1.0.9src/json.c). - tent's rulesets for the three roles loaded on real nft 1.0.9 and 1.1.6 in containers on 2026-09-29, next to an
ip filtertable as Docker leaves it, and loaded again over each other. nft refuses a set whose elements overlap, and listsip saddr { 0.0.0.0/0 }asip saddr 0.0.0.0/0. IPv6 neighbour discovery is untracked, not invalid, so an input chain that drops by default must accept it by type. socket cgroupv2 level N "<path>"(nftables 1.0.9src/datatype.c, Linux 6.8net/netfilter/nft_socket.c): nft resolves the path to the cgroup's id when it parses the rule. A missing path fails the whole batch (Error: cgroupv2 path fails: No such file or directory), and a cgroup removed and made again gets a new id, which the rule silently stops matching. It needs kernel 5.13 or later, and on 6.8 works only in prerouting, input and output. Ancestors match by level, and the first SYN matches.
SO_MARKneeds CAP_NET_ADMIN, or CAP_NET_RAW since Linux 5.17 (sk_setsockoptin v6.8net/core/sock.c; checked on a 6.10 kernel on 2026-09-29).- ufw (Ubuntu's ufw packaging source, ufw 0.36.2: 0.36.2-6 in 24.04 and 0.36.2-9build1 in 26.04, read
2026-09-29):
ufw disablealways runsufw-init force-stop: it writesENABLED=nointo/etc/ufw/ufw.conf, deletes ufw's chains and sets the policies of theipandip6filterchainsINPUT,OUTPUTandFORWARDto accept. After Docker started, that undoes Docker's drop inFORWARD.- At boot
ufw-init startdoes nothing whileENABLED=no.systemctl disable --now ufwalone removes the rules but leavesENABLED=yes. Package upgrades never restart ufw. - Removing the package takes the program and the unit and leaves
ufw.conf, a configuration file.
Read in the source of apt 2.8.3 and 3.2.0 and of dpkg 1.22, on 2026-09-29.
- Locks.
- dpkg takes its frontend and database locks without waiting (
lib/dpkg/dbmodify.c). apt-get updatenever waits for the lock of the package lists (pkgAcquire::GetLockhas no timeout).apt-get installtakes/var/cache/apt/archives/lockwithout waiting, even with-o DPkg::Lock::Timeout=<s>, which makes it wait for dpkg's lock only (private-install.cc,acquire.cc).- So while unattended-upgrades installs,
apt-get installfails on/var/lib/dpkg/lock-frontendwith exit status 100, and while apt-daily downloads, on the lock of the archives. - The errors:
apt-get updateprintsE: Could not get lock /var/lib/apt/lists/lock. It is held by process <pid> (apt-get)and exits with 100 (apt 2.8), and dpkg printsdpkg: error: dpkg frontend lock was locked by another process with pid <pid>and exits with 2 (dpkg 1.22.6). 26.04's dpkg may word it differently (unverified).
- dpkg takes its frontend and database locks without waiting (
- Package lists. With
package_update: falsecloud-init does not refresh the package lists, so the image's lists may be stale or missing (unverified). dpkg-query -W -f='${Status}' <package>prints three words: the selection, a flag and the state, such asinstall ok installed,hold ok installedordeinstall ok installed. The state isconfig-filesafter a remove andhalf-configuredafter an install that stopped. It exits with 1 for a package that dpkg never had (dpkg-query(1)). dpkg drops the=of a short option's value, so-f=${Status}works too.- Configuration files. With
--force-confdef --force-confolddpkg takes its default, where it has one, and otherwise keeps the installed file, when both the admin and the package changed it. Without them it asks, and without a terminal the question fails (dpkg(1)).
Read on 2026-10-05 in the Nomad v2.0.7 source and in Ubuntu's packages, whose postinst scripts ran in throwaway containers, unless an item says otherwise.
- A restart of Docker stops Nomad's containers. Nomad's docker driver waits on each container with
ContainerWait(run()indrivers/docker/handle.go, lines 281-353). dockerd cuts that stream when it stops; the driver logsfailed to wait for container; already terminatedand callsContainerStopwith a timeout of 0, and the task runner'sDestroyTaskremoves the container (ContainerRemove). So Nomad itself stops the container that live-restore kept.- The stop is a guard against a wait that "returned incorrectly" (
handle.go:330-341, present in v1.8.0), and no option of the driver changes it. hashicorp/nomad#24081 (merged 2024-09-30) made the wait's context endless. hashicorp/nomad#24105 asked for live-restore support and was closed in 2024-10 with a maintainer's note that Nomad picks the containers up again; 2.0.7 did not on the VM checks. #19962 (bridge-mode containers brought back with broken networks) and moby/moby#27987 (docker waitacross a live-restore restart) are related. - The task restarts under the job's
restartblock, by default after 15 s plus up to 25% of jitter (17.3 s and 18.7 s on the M2.6b VM checks, 3.16). Each such restart counts toward the block's attempts.
- The stop is a guard against a wait that "returned incorrectly" (
- An upgrade of docker.io does not restart Docker. The debconf question
docker.io/restartdefaults to false, and the postinst of 29.1.3-0ubuntu3~24.04.2 and 29.1.3-0ubuntu4.1 restarts Docker on an upgrade only when it is true (run withDEBIAN_FRONTEND=noninteractiveon both releases;debconf-show docker.iogavefalseon Vultr's images, on the M2.6b VM reruns). unattended-upgrades installs docker.io from<codename>-security/universe(Allowed-Originsof50unattended-upgrades, with an emptyPackage-Blacklist), so it upgrades the package without restarting Docker, and a security fix of Docker takes effect only at the next reboot or restart of Docker. - An upgrade of containerd restarts it. containerd 2.2.1-0ubuntu1~24.04.3 and 2.2.2-0ubuntu1.1 restart
containerd.serviceon every upgrade without asking, and unattended-upgrades installs them from-security.apt-daily-upgrade.timerruns at 06:00 withRandomizedDelaySec=60m, so a fleet takes such an upgrade within an hour. It does not touch Nomad's docker tasks: on the M2.6b VM reruns a restart of containerd kept the task, and neither Docker nor Nomad restarted (3.16).docker.servicehasWants=andAfter=oncontainerd.service, and noRequires=,BindsTo=orPartOf=on it. - needrestart, which
ubuntu-serverrecommends, restarts services after library upgrades under APT. It skipsdocker.service(qr(^docker) => 0) but notnomad.service, since the Nomad binary is dynamically linked: alibc6security upgrade restarts Nomad. The tasks survive a restart of Nomad (3.16). Vultr's images have needrestart (3.6-7ubuntu4.5 on 24.04, 3.11-1ubuntu2 on 26.04), with no$nrconf{restart}line, the package's default, and unattended-upgrades on (20auto-upgrades), on the M2.6b VM reruns of 2026-10-05.
- cloud-init refuses a cloud-config that loads to nothing. The handler (
cloudinit/handlers/cloud_config.py) raisesValueError("empty cloud config"). The stub of M2.7b first held a header and a comment, which is YAML that loads to nothing. Checked on 2026-10-06 with the handler itself, in an ubuntu:24.04 container with cloud-init 26.1-0ubuntu1~24.04.1: that stub logsFailed at merging in cloud config part from part-001: empty cloud config, and the same stub with a line{}after the comment loads as an empty mapping and merges without a warning. - A degraded status keeps
status: doneanderrors: [].cloud-init status --wait --longshows it inextended_status: degraded done, in the items underrecoverable_errors:, and in exit code 2. A healthy node printsextended_status: done,recoverable_errors: {}and exits 0. - On a real node. After the reboot of a scrubbed client, run
rugw2m(2026-10-06) showed the degraded status, with the warning above. With the stub of three lines (#cloud-config, the comment,{}), runsv3vwbshowed the healthy one. --waitprints a dot for each wait, on the line of the status (..status: donein runsv3vwb; the line had no dots inrugw2m), so a reader of the output must not expect the status at the start of a line.
Nomad:
- Releases API: https://api.releases.hashicorp.com/v1/releases/nomad
- Changelog: https://github.com/hashicorp/nomad/blob/main/CHANGELOG.md
- Configuration: https://developer.hashicorp.com/nomad/docs/configuration
- Client configuration: https://developer.hashicorp.com/nomad/docs/configuration/client
server_join: https://developer.hashicorp.com/nomad/docs/configuration/server_join- Job specification (default
datacenters): https://developer.hashicorp.com/nomad/docs/job-specification/job - Connecting nodes and client introduction: https://developer.hashicorp.com/nomad/docs/deploy/clusters/connect-nodes
- ACL tokens API: https://developer.hashicorp.com/nomad/api-docs/acl/tokens
- Autopilot API: https://developer.hashicorp.com/nomad/api-docs/operator/autopilot
- Raft API: https://developer.hashicorp.com/nomad/api-docs/operator/raft
- Node pools: https://developer.hashicorp.com/nomad/docs/architecture/cluster/node-pools
- Upgrading: https://developer.hashicorp.com/nomad/docs/upgrade
- CE licence and support: https://developer.hashicorp.com/nomad/docs/ce-license-support
- go-discover: https://github.com/hashicorp/go-discover
- Release signing key: https://www.hashicorp.com/.well-known/pgp-key.txt
- CNI plugins releases: https://github.com/containernetworking/plugins/releases
- CNI and bridge networking: https://developer.hashicorp.com/nomad/docs/networking/cni
- Source of v1.11.3: https://github.com/hashicorp/nomad/tree/v1.11.3
- Source of v2.0.7: https://github.com/hashicorp/nomad/tree/v2.0.7
consulblock: https://developer.hashicorp.com/nomad/docs/configuration/consul- Eligibility after
drain_on_shutdown(issue #17093): hashicorp/nomad#17093 - Whether a stopped server should leave (issue #7943): hashicorp/nomad#7943
nomad config validate: https://developer.hashicorp.com/nomad/commands/config/validate- The stock unit of v2.0.7: https://github.com/hashicorp/nomad/blob/v2.0.7/.release/linux/package/usr/lib/systemd/system/nomad.service
- HCL1 v1.0.0, which Nomad forks as
v1.0.1-nomad-1: https://github.com/hashicorp/hcl/tree/v1.0.0
Hetzner:
- Cloud API OpenAPI spec: https://docs.hetzner.cloud/cloud.spec.json
- Changelog: https://docs.hetzner.cloud/changelog
- Docs: https://docs.hetzner.com/cloud/ (servers, networks, firewalls, placement groups, load balancers, object storage)
- Price adjustment: https://docs.hetzner.com/general/infrastructure-and-availability/price-adjustment/
- Capacity incident: https://status.hetzner.com/incident/0a75c7ae-3377-41dc-aabe-601063724d24
- hcloud-go: https://github.com/hetznercloud/hcloud-go
- CSI driver, Nomad guide: https://github.com/hetznercloud/csi-driver/blob/main/docs/nomad/README.md
Vultr:
- API reference (Wayback copy of 2026-09-12): https://web.archive.org/web/20260912012717/https://www.vultr.com/api/
- Account limits: https://docs.vultr.com/platform/billing/manage-account-limits
- Billing: https://docs.vultr.com/support/platform/billing/how-am-i-billed-for-my-servers
- Cloud-init on Vultr: https://docs.vultr.com/products/compute/instances/cloud-compute/features/cloud-init
- Firewall groups FAQ: https://docs.vultr.com/products/network/firewall-groups/faq
- VPC FAQ: https://docs.vultr.com/products/network/vpc-networks/faq
- Object Storage S3 compatibility: https://docs.vultr.com/products/storage/object-storage/s3-compatibility-matrix
- Object Storage relaunch: https://blogs.vultr.com/object-storage-relaunch
- NAT gateways: https://blogs.vultr.com/nat-gateways
- Nomad guide: https://docs.vultr.com/how-to-deploy-a-hashicorp-nomad-cluster-on-vultr-cloud-compute-instances
- govultr: https://github.com/vultr/govultr
- vultr-csi Nomad docs: https://github.com/vultr/vultr-csi/tree/master/docs/nomad
- cloud-init Vultr datasource: https://github.com/canonical/cloud-init/blob/main/cloudinit/sources/helpers/vultr.py
- Terraform provider issue (VPC 2.0 removal): vultr/terraform-provider-vultr#753
- Provisioning benchmarks: https://www.vpsbenchmarks.com/hosters/vultr
- Incident history: https://github.com/outages/vultr-outages
Nomad status and agent API:
- https://developer.hashicorp.com/nomad/api-docs/status
- https://developer.hashicorp.com/nomad/api-docs/agent
Ubuntu on nodes:
- docker.io source package: https://launchpad.net/ubuntu/+source/docker.io-app
- docker.io packaging (unit and postinst): https://git.launchpad.net/ubuntu/+source/docker.io-app
- moby's systemd unit: https://github.com/moby/moby/blob/docker-v29.1.3/contrib/init/systemd/docker.service
- systemctl(1): https://www.freedesktop.org/software/systemd/man/latest/systemctl.html
- Ubuntu packages: https://packages.ubuntu.com/
- Ubuntu cloud images and their manifests: https://cloud-images.ubuntu.com/
- ufw source package: https://launchpad.net/ubuntu/+source/ufw
- Docker packet filtering and firewalls: https://docs.docker.com/engine/network/packet-filtering-firewalls/
- Docker Engine 29 release notes: https://docs.docker.com/engine/release-notes/29/
- dockerd reference (configuration reload): https://docs.docker.com/reference/cli/dockerd/
- Nomad's docker driver waits on a container with a context that never ends (PR #24081): hashicorp/nomad#24081
- Live-restore support in Nomad's docker driver (issue #24105): hashicorp/nomad#24105
- Bridge-mode containers brought back with broken networks (issue #19962): hashicorp/nomad#19962
docker wait, live-restore and restarting dockerd (moby issue #27987): moby/moby#27987- CNI plugins: https://github.com/containernetworking/plugins
- nftables wiki, configuring chains: https://wiki.nftables.org/wiki-nftables/index.php/Configuring_chains
- nftables source: https://git.netfilter.org/nftables/
- apt source: https://salsa.debian.org/apt-team/apt
- dpkg source: https://git.dpkg.org/cgit/dpkg/dpkg.git/
- Linux v6.8 source: https://github.com/torvalds/linux/tree/v6.8
S3-compatible object stores:
- AWS S3 conditional writes: https://docs.aws.amazon.com/AmazonS3/latest/userguide/conditional-writes.html
- Cloudflare R2 S3 API compatibility: https://developers.cloudflare.com/r2/api/s3/api/
- Cloudflare R2 limits (one write per second per key): https://developers.cloudflare.com/r2/platform/limits/
- Cloudflare R2 error codes (10058
TooManyRequests): https://developers.cloudflare.com/r2/api/error-codes/ - MinIO community edition (archived): https://github.com/minio/minio
Prior art:
- kops: https://github.com/kubernetes/kops
- CAPH: https://github.com/syself/cluster-api-provider-hetzner
- hetzner-k3s: https://github.com/vitobotta/hetzner-k3s
- hashi-up: https://github.com/jsiebens/hashi-up
- Nomad Autoscaler external plugins: https://developer.hashicorp.com/nomad/tools/autoscaling/plugins/external