Skip to content

mesh-dns: exec readiness probe re-launches the whole daemon every 15s (~3–4% of mesh-dns CPU) — #673 redux #683

Closed

Description

@bpalermo

Summary

mesh-dns has the same readiness-probe anti-pattern #673 just removed from the proxy: an exec probe that re-launches the full mesh-dns binary to stat a marker file.

readinessProbe:
  exec:
    command: ["/mesh-dns", "--readiness-check", "--ready-marker=/run/aether/mesh-dns.ready"]
  periodSeconds: 15

Measured (Pyroscope, {service_name="aether-mesh-dns"}, 2026-09-05 07:08–07:33Z, steady state, cutoff 0.70%)

frame core-seconds / 25 min fleet share
runc!0x1a35e3 (container exec) 10.05 3.26%
libcontainer.(*linuxSetnsInit).Init 8.35 2.71%
libcontainer.Init 7.30 2.37%
runtime.main (a second process's main, not the daemon's) 11.10 3.60%
runtime.doInit1 1.70 0.55%

Roughly 10 core-seconds per 25 minutes fleet-wide ≈ 0.0067 fleet cores of pure process-launch cost — about 4× smaller than #673 was (the period is 15s, not 2s, and the binary is 16.9 MB not 67 MB), but the same shape and, at ~3–4% of mesh-dns CPU, not negligible for a daemon on every managed pod's :53 path.

Fix

Not httpGet/tcpSocket. This is the DaemonSet #582 was closed for: hostNetwork + maxSurge: 1 means predecessor and successor share the host netns during every roll, so a port-based probe cannot be proven pod-local (see agent/cmd/mesh-dns/main.go header and #582's closing note). The proxy went through the same analysis in #673.

Do what #677 did: a stdlib-only mesh-dns-ready binary (or reuse common/readymarker + agent/cmd/proxy-ready with a different default marker path — it is the same predicate), shipped in the mesh-dns image as a tars_layer, with the same linkage-guard test. Probe timings unchanged.

Found by the 2026-09-05 soak profiling pass. Related: #673 / #677 (the proxy fix, the template), #582, #583 (why mesh-dns is its own binary).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions