Skip to content

Keep private name lookups working during DNS server upgrades #269

Closed as not planned

Description

@scotwells

Summary

Provide independent DNS servers and restart recovery so replacing one server does not leave workloads without a usable resolver.

Why it matters

Routine upgrades, configuration changes, and restarts should not appear to customers as unexplained lookup failures.

Acceptance criteria

  • Workloads can use two independently configured DNS servers on each host, and their restarts are staggered.
  • The servers have separate identities, credentials, stored state, and listening addresses so they do not interfere with each other.
  • A restarted server can use its last verified configuration while reconnecting, subject to its existing safety checks.
  • Measure lookup interruptions during upgrades and alert when they exceed the agreed limit; document the deployment arrangement.

Related work

Parent: Keep Private DNS working through updates and failures.

Original report and engineering evidence are preserved in the discussion.

Activity

  1. scotwells commented on Oct 24, 2026

    @scotwells
    ContributorAuthor

    First measurement: during one node resolver rollout, a probe that looks up a private name saw about 75 seconds of SERVFAILs and timeouts from the first resolver address.

    A second resolver on its own address doesn't prevent this. Many clients send almost every lookup to the first address and try the second only after a timeout.

    A fix needs two parts:

    Some of the failures were SERVFAILs, which suggests a restarted resolver answers before it is ready. The health check would keep traffic away from it until it passes.

  2. added theissue type on Oct 29, 2026
  3. scotwells commented on Oct 29, 2026

    @scotwells
    ContributorAuthor

    The description now explains the problem and expected outcome in plain language. The original report is preserved below for the observations, diagnostics, and implementation details behind this work. It describes the situation when the issue was reported; later comments and the issue state record subsequent progress.

    Original report and engineering evidence

    What happens

    Each node has exactly one private DNS resolver, and an update replaces it by stopping the old one before starting the new one. Until the new resolver is serving, workloads on that node get failed lookups. In the us-central-1 staging lab this showed up as 691 failed lookups after the 21:13 UTC rollout on 2026-10-22 and 227 after the one before it.

    This is separate from Private DNS briefly fails during zone updates. That issue covers failures while a zone switches versions on running resolvers. This one covers the resolver itself restarting.

    Why it matters

    Every operator upgrade, config change or node restart briefly breaks name resolution for every instance on the node. Workloads see this as random lookup failures.

    Proposed fix

    • Run two independent resolvers per node, the same way the regional CoreDNS pair already works: separate identities, credentials, volumes and listen addresses. Give instances both addresses as nameservers, so a lookup that fails on one moves to the other. Keep the two from restarting at the same moment (for example with Flux dependsOn).
    • Serve immediately after a restart. A restarted resolver should answer from the last configuration it verified while it reconnects, instead of failing until every update and acknowledgement has arrived again. This shortens the gap even with a single resolver.
    • Measure how long the gap lasts per rollout and alert if it grows.

    A plain start-before-stop rollout doesn't work today. A second pod would share the first one's identity, message consumer, volumes and listen address, so the two copies would collide.

    Notes

    • Datum's own manifests live in the deployment repository. This repository owns serving after a restart and documenting the two-resolver layout.
  4. changed the title [-]Private DNS on a node drops out during every node resolver rollout[/-] [+]Keep private name lookups working during DNS server upgrades[/+] on Oct 29, 2026
  5. scotwells commented on Oct 29, 2026

    @scotwells
    ContributorAuthor

    Support for giving workloads more than one DNS server and resuming service after a restart has merged. These provide the redundancy and recovery foundation needed for safer upgrades.

    However, the recorded rollout test still saw about 75 seconds of failed lookups from the first server address. Some applications continue trying that address before switching to another. Galactic's traffic sharing across healthy servers has since merged, but Private DNS still needs to use several healthy servers behind one address, move traffic away before a server stops, and verify the resulting upgrade behavior. Keeping this open until rollout testing meets the agreed interruption limit.

  6. scotwells commented on Oct 29, 2026

    @scotwells
    ContributorAuthor

    29 October staging validation: an explicitly approved, one-time replacement of the secondary central node resolver produced 8 one-second transport timeouts among 608 sampled private/public UDP/TCP queries. All failures were on its fd53::54 address; the surviving fd53::53 answered 304/304. The replaced address first answered correctly about 14 seconds after deletion, with 13 seconds between the first failed sample and first correct sample. These are sampled intervals, not a precise continuous outage measurement.

    The unchanged Deployment, image/configuration and PVC restored successfully. Both addresses then returned correct answers for more than two minutes; revoked network access stayed denied. No other shared service was restarted. This does not validate primary-resolver loss, application resolver fallback, software upgrades, or host failure. No agreed interruption threshold was found, so recovery is verified but availability acceptance remains unresolved.

    Both node resolvers and regional members still share one compute host per location. Staging remains mixed: most members run serving digest 215158266038990698fb55956624f3bc1c4a342d38df7d9908a12026f9f84427 with regional forwarding; east node-b runs 762e20b66d453db65c28259b8b0e45850fc86abd2c68d069d557d157a5f44062 with local private answers. Healthy-server traffic sharing, draining and an agreed interruption/recovery budget still need verification. Keep this issue open.

  7. self-assigned this
    on Oct 29, 2026
  8. scotwells commented on Nov 11, 2026

    @scotwells
    ContributorAuthor

    Superseded by #471. Instead of two independently addressed servers per host, several healthy servers now share one address, and each server drains before it stops (#472, live in production with v0.14.0). The remaining production work, a second server per host in us-east-1 and us-west-1, is tracked in #471 and datum-cloud/infra#8524.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions