Choose resource requests, limits and operating objectives from measured record sizes, peer counts, update frequency and query traffic. The example DaemonSet's budgets are starting values. Memory includes indexes, cloned snapshots, transfer history and transient encoding/decoding in addition to active records.
Bounds
| Resource | Default / bound | Operational consequence |
|---|---|---|
| Source records | MAX_RECORDS=100000 across local and peer contributions |
Duplicate source contributions can consume capacity before effective-answer deduplication. |
| Configuration input | 2 MiB for management PUT bodies and file reads/final saves | Kubernetes reads instead use a 32 MiB API-response envelope cap and the API's own object-size limit. |
| Encoded peer transfer | 16 MiB, code-level | Failed oversized updates leave the prior snapshot active. |
| Transfer journal | Four revisions and at most twice the transfer limit in encoded bytes | Old bases fall back to a full transfer. |
| Prepared immutable payload cache | Eight tokens and independently at most twice the transfer limit | Evicted page tokens require a fresh attempt. |
| Site catalogue | No fixed site-count ceiling; 256 endpoints/site; paginated under the 16 MiB transfer-byte bound | Metadata persists in CR status; no remote DNS records or keys are re-exported. |
| Transfer page | 24 KiB | Many pages share a persistent TCP connection. |
| DNS admission | MAX_CONCURRENT=256 |
Bounds query work and accepted TCP connections. |
| Per-source rate | QUERY_RATE=100/s, QUERY_BURST=200 |
Observed IP may represent many clients after SNAT. |
| Rate-bucket table | 4096 LRU entries | Eviction admits new sources; a returning evicted source starts with a fresh burst. |
| TCP connection queries | 1024 by default | Includes peer pages; the code option is capped at 4096. |
| TCP I/O | 10s idle, 5s read/write | Slow clients cannot retain a connection indefinitely. |
| UDP response | EDNS size capped at 1232 bytes | Complete-RRset truncation signals clients to retry over TCP. |
| TCP DNS response | 65,535 bytes after compression | Oversized replies become explicit SERVFAIL. |
| Validation diagnostic | Four concurrent requests per pod, eight seconds per request | Separate bounded diagnostic workload; fixed public resolvers. |
See configuration for supported runtime knobs and peer protocol for retention/transfer details. Changing code-level bounds requires a new memory budget and relevant tests. Per-pod caches and encoded history multiply with replicas and peers; imported data is never re-exported, so full source coverage requires direct connectivity and destination credentials, even when sites are discovered transitively.
Peer count is not a DNS protocol constraint or an admission threshold. The earlier 256-peer guard was a defensive count limit; it could be crossed by concurrent pod discovery and then prevent valid configuration refreshes. The application now accepts the resulting configuration instead of rejecting the whole mesh. Encoded catalogue size still bounds each transfer, and oversized metadata cannot replace accepted discovery state. Removing the count ceiling does not establish a tested operating capacity: measure memory, sequential peer polling time, cold-cache readiness time and PeerSite status write traffic at the intended size. A full mesh also increases direct connections and replicated source data across the participating sites.
Measure
Use the commands in testing for cache/listener benchmarks, race checks, container smoke and the opt-in listener soak. Automated loopback and mocked-source tests verify implementation properties. They do not establish production network throughput or Kubernetes/CNI behaviour.
Measure a representative mixture of positive, negative, alias, delegation, large-RRset and mixed A/AAAA queries over UDP and TCP. Include the actual number of zones, source contributions, duplicate addresses, peer clusters and updates. Record QPS, p50/p95/p99 latency, rejection/error rates, heap/RSS, goroutines, source convergence and full/delta transfer duration. Include client-observed latency: the server histogram measures a narrower completed-handler interval.
Exercise updates and failures during load: Kubernetes list/change-detector recovery, resource churn, peer endpoint failover, delayed/stale replicas, transfer retries, rolling restart and simultaneous restart. Assess both fresh data convergence and continued serving of retained data. Set alert durations from measured recovery and the endpoint-attempt budget rather than assuming one poll interval suffices.
Target-environment acceptance
Before production release, complete the checks tracked in TODO.md:
- Validate manifests on the actual Kubernetes/CNI version, including every node address and a node without a local DNS pod over UDP and TCP.
- Exercise real multi-cluster shared names, address/CNAME conflicts, source/zone deletion, ordered endpoint failure/recovery and full cache warming.
- Verify parent delegation, required glue, management TLS/authentication and application reachability independently of DNS answer correctness.
- Run a multi-hour workload/soak with source changes, peer outages and replica churn; investigate memory/goroutine growth and monitoring behaviour.
- Rehearse image/configuration upgrade and rollback using the actual registry, deployment owner and monitoring platform.
Publish workload and results alongside the deployment's chosen SLOs and budgets. Leave checks open until executed successfully; a short automated soak or an offline manifest test does not complete operational acceptance.
Oversized RRsets and response allocation
Ordinary DNS serving checks the compressed wire budget while materializing cached RRsets. Oversized direct or alias-target sets therefore do not cause full-set copies per query. UDP sets TC and drops the overflowing RRset in full; TCP returns a small SERVFAIL when the complete response cannot fit its framing limit. This bounds response construction independently of the configured source record count. Source indexes, updates, administrative views, transfer histories and concurrent bounded responses still consume heap; use the deployment acceptance workload to size the pod rather than assuming packet size equals total process memory. Allocation regressions cover large sets, alias targets and parallel queries.
Discovery status write load
A newly accepted ordered topology advances the per-origin floor on every existing PeerSite, including unchanged routes, blank objects and retained withdrawal tombstones. These optimistic writes prevent an older in-flight pod from changing a route after a newer catalogue has finished. Configuration fingerprints ignore freshness-only status changes, so these writes do not immediately wake local DNS source rebuilds. Periodic read watermarks can nevertheless advance on unrelated Kubernetes activity and cause later status writes. Every catalogue reconciliation also changes its origin object operation claim, even when retrying identical ordering metadata, so that Kubernetes cannot optimize away the concurrency barrier.
Budget API traffic for the number of origins, persisted PeerSites and DNS pods that persist discovery. Validate multi-pod conflict retries and API throttling with the intended mesh size and intervals. The application does not elect a single metadata writer or claim a whole-catalogue Kubernetes transaction; per-object conflicts surface as discovery errors and retry without undoing an accepted DNS record transfer.
