How we halved DNS build delay and cut memory use by 85%
92.95% of Cloudflare's DNS builds now skip a full-zone rebuild. The team proved the new builder matched the old one byte for byte, against a mirror fed by production traffic.
Every DNS record or zone-setting change at Cloudflare becomes a build that writes the changed keys to Quicksilver, and zone-setting changes used to rebuild the whole zone. A new planner sorts each event into one of five build types, a single scheduler merges queued work per zone, and anything it cannot prove safe still gets a full build. Before release, equivalence tests compared targeted and full builds byte for byte, a full build ran beside every targeted one, and a mirror builder fed by production Kafka was diffed on a 20% sample of zones; the rollout went by a hash of the zone name, free zones before paid. Over 24 hours, 92.95% of builds skipped a full rebuild, the worst p99 delay fell from 14.6 to 1.21 minutes, and average memory from 49 to 7 GiB. The mirror and comparer are the part to copy when you replace a pipeline you cannot pause.
Comments
Loading comments…