Technical Field NotesBack to articles
Self-hosted mesh operations ยท Updated October 10, 2026

Headscale Peer-Map Snapshot Reuse: What Fewer Map Rebuilds Change

Headscale 0.29.4 reuses the peer map for writes that cannot change peer visibility and drops no-op map requests. What self-hosted operators should watch and test.

Short answer: Headscale 0.29.4 keys the peer map by node ID and reuses it for writes that cannot change peer visibility, and requests that only bump LastSeen or report endpoints no longer resend the whole node to every peer, with new metrics exposing dropped changes and snapshot builds. This is an independent technical field note. It separates what the project documentation and release records say from what an operator still has to test. The goal is a useful decision record, not a promise about performance, security, compatibility, or operating cost.

The redundant-work problem the release targets

Before 0.29.4, routine client chatter could trigger full peer-map rebuilds and resends even when nothing visible to peers had changed. The release notes describe three specific reductions: map requests that only bump LastSeen, endpoints, or DERP region no longer resend the whole node to every peer; health probes that change nothing no longer write; and the peer map is keyed by node ID and reused for writes that cannot change peer visibility. Two new metrics, headscale_mapper_changes_dropped_total and headscale_nodestore_snapshot_builds_total, make the new behavior observable.

Why self-hosted operators should care

On a small tailnet the savings are invisible. On a deployment with hundreds of mostly idle clients, periodic full resends translate into control-plane CPU, database reads, and long-poll churn that scale with fleet size. Dropping provably invisible updates moves that curve, and the new counters give an operator evidence instead of anecdote. The corresponding change also fixes an expired node staying online forever because expiring it updated the key deadline without ending its map session, which is a correctness fix in the same subsystem.

How to verify the change on the deployment

Record the two new counters and the existing HTTP metrics before the upgrade, upgrade in a maintenance window with a database backup in hand, then run the same client workload again and compare. A functional test matters more than the counters: bring two nodes online, confirm each appears in the other's peer list, then expire one node's key and confirm it leaves the peer list promptly. If the metrics show dropped changes climbing while peer visibility stays correct, the release is doing what the notes describe in your environment.

What stays the same

The release does not change ACL evaluation, DERP topology, or client key expiry policy. It reduces redundant map traffic inside the control plane. Capacity planning for a fleet still starts with node count, update frequency, and DERP placement, and none of those inputs are replaced by a mapper optimization.

Reading the new metrics in practice

The two counters answer different questions. headscale_mapper_changes_dropped_total counts updates the mapper chose not to propagate because they could not change what any peer sees: a LastSeen bump, an unchanged endpoint refresh, a health probe that alters nothing. A healthy deployment should see it climb steadily under normal churn; a flat line suggests the fleet is idle or the counter is not wired into your metrics scrape. headscale_nodestore_snapshot_builds_total counts full peer-map rebuilds, the expensive path the optimization avoids. After the upgrade, snapshot builds should grow much more slowly than before relative to request volume. Compare the ratio of snapshot builds to map requests across the upgrade, not the raw numbers, because fleet size and client versions shape both.

Where this fits in capacity planning

Control-plane load in a mesh has three drivers: client count, client update frequency, and peer-map fan-out, since every visible change once meant a resend to every peer. The 0.29.4 changes attack the fan-out term and the no-op term, which are the ones that grow superlinearly with fleet size. Operator time is better spent on the remaining terms: key expiry windows that force reauthentication storms, DERP region placement that shapes long-poll duration, and client versions that poll more aggressively than needed. None of those are fixed by the mapper, and all of them are visible in the same metrics endpoint this release expands.

A short runbook for the upgrade window

Write the window down before starting: back up the database and binary; record the current values of the two new counters and existing HTTP metrics; upgrade; confirm the service starts and clients reconnect; run the two-node peer visibility test including an expiry case; then let normal traffic run for an hour before comparing counter ratios. The whole sequence fits in a maintenance window, and the written record turns the upgrade into evidence rather than anecdote, which matters when the next release asks the same question.

Questions this field note answers

The questions below restate the acceptance checks an operator should be able to answer before relying on the behavior described above.

Limitations

Related infrastructure context

For the physical layer around a systems deployment, TismTek provides fiber and network infrastructure work near Aurora. The team also documents on-premises compute and private AI systems. For a site discussion, call (720) 694-1976. See the 3-2-1 backup guide for recovery planning and the private AI systems overview for the broader on-premises context.

Sources