News

Tailscale netmap caching can keep home AI servers reachable through some control-plane outages

Email

Tailscale has added a disk-backed cache that can help a home server reconnect to existing peers even when the company’s coordination service is temporarily unreachable. For anyone who reaches a local AI machine over a tailnet, that is a useful resilience upgrade. It is also opt-in, requires Tailscale 1.104 or later, and cannot turn Tailscale into a network that runs indefinitely without Tailscale.[1][2]

The practical recommendation is simple: enable it on ordinary, persistent home servers and the laptops or desktops that need to reach them, then test your own outage case. Skip ephemeral nodes, which cannot use it, and think twice before enabling it on a storage-constrained appliance or an always-on connector that rarely restarts.[2]

What the cache changes

A Tailscale client normally learns how to find its peers from the control plane. That network map includes peer keys, endpoints, routes, DNS settings and other state tailored to the node’s access policy. A running client keeps the map in memory, so a brief control-plane interruption does not automatically kill established connections. The old weak spot was a restart: without the control plane, the newly started client had no map to load.[1]

Netmap caching saves that state to local storage. On startup or a profile switch, the client can load the saved map immediately while it keeps trying to contact the control plane. Tailscale says this can reduce startup time and can let the node resume communication with some or all existing peers during a temporary outage.[1][2]

The clever part is how direct connections recover. A restarted client creates a new short-lived DISCO key, which peers normally learn through the coordination service. Tailscale says cached clients can first make an encrypted WireGuard connection through a DERP relay, exchange the new DISCO public key inside that tunnel, and then try to establish a direct path. That avoids making every cached connection live permanently through a relay.[1]

HighVRAM has not tested that sequence or measured the startup gain. The available evidence is Tailscale’s engineering post and documentation, not an independent outage benchmark. The public GitHub release list does show current 1.104 builds, including 1.104.7 as the latest release when checked, so the required client family is available now.[2][3]

How to enable it

The feature currently lives in the tailnet policy file. Grant the cache-network-maps node attribute to the devices that should cache their maps. Tailscale’s broad example targets both member-managed and tagged nodes with "nodeAttrs": [{"target": ["autogroup:member", "autogroup:tagged"], "attr": ["cache-network-maps"]}].[2]

That example is convenient, but a narrower target is easier to reason about. A home lab could apply the attribute only to a tag used by its AI server and to the durable client machines that need emergency access. Verify the capability on each machine with Tailscale’s documented command, tailscale status --json | jq '.Self.CapMap|has("cache-network-maps")'.[2]

The command should return true. Enabling the policy is only the first step: the client must contact the control plane at least once to initialize its cache.[2]

What still breaks

A cached map is a snapshot, and snapshots age.

A disconnected client cannot learn about a new peer added after the cache was created. It also misses removed nodes, changed endpoints, DNS changes, routes and policy updates until it reconnects to the control plane. If at least one endpoint has current control-plane access, Tailscale says that endpoint enforces the new policy. The cache still does not provide fresh state to a pair of nodes that both remain cut off.[1][2]

Keys impose a harder stop. If a cached peer’s node key expires, the client can no longer communicate with it. If the disconnected machine’s own node key expires, it loses access to the tailnet even when the peer keys in its cache remain valid. Only a control-plane refresh can repair expired keys.[2]

There are also explicit exclusions. Android and iOS clients are not supported yet, and ephemeral nodes never get the feature regardless of policy. Deleting the local user profile or logging out clears the cache.[1][2]

Disk writes deserve proportionate concern, not panic. Tailscale says the client splits the map into chunks and writes only changed data to limit write time and storage wear. Its documentation nevertheless suggests considering cache disablement on app connectors, exit nodes and subnet routers that rarely restart, as well as on small devices with limited or expensive storage. Tailscale publishes no cache-size or write-volume measurement, so the wear cost cannot yet be quantified.[1][2]

The home-AI verdict

For a persistent Linux, Windows or macOS box serving a local model, netmap caching is worth enabling if remote reachability matters. It does not change the GPU or memory needed to run the model; the operational requirements are current Tailscale software, a policy edit and some local storage activity. The benefit is narrower but more useful than a vague promise of “offline Tailscale”: a restarted machine has a chance to find the peers it already knew while coordination access is broken.

Do not treat the cache as a substitute for an independent access path. If the control plane stays down long enough, keys expire and the saved network state drifts away from reality. Keep local-console or LAN access for a server you cannot afford to lose, and test a restart with control-plane traffic blocked before relying on the cache. Resilience is the right word for this feature. Independence is not.

Sources

  1. Netmap caching: keeping Tailscale up on iffy connections
  2. Client-side netmap caching
  3. tailscale/tailscale releases

Share this article

Email