Measure failover at the authority, at a recursive resolver and at a client making an application request. In the worked example below, the authority returns the standby after 35 seconds. The client completes its first request there 39 seconds later.
Make the standby serve a real request first
Check the standby’s TLS certificate, hostname handling and access to the application state it needs. A backup can pass a TCP probe and still reject the customer’s hostname or return a maintenance page. Run a representative, read-only application request against the standby before testing the trigger.
Keep four timestamps
Use a staging hostname to withdraw one endpoint under controlled conditions. Query the authoritative service and a normal recursive resolver separately. Record when each changes its answer and when a client next succeeds. A client with an open connection can keep using the old peer until its retry policy opens another connection.
Observations in a failover rehearsal
- 110:00:00The primary stops serving the test request.
- 210:00:35A direct authoritative query first returns the standby.
- 310:01:10The test resolver refreshes its previously cached address.
- 410:01:14A new client connection completes the request at the standby.
Recover without oscillating
Watch for a region briefly passing probes while it is still rebuilding capacity. Plan the conditions for returning it to service and exercise the all-endpoints-unhealthy case separately. During a real incident keep tracking success at the application, including clients that retained a connection or a stale DNS answer.
Sources & further reading
Reader questions
Does a new DNS answer move an existing session?
Existing connections retain their peer. The client must reconnect, and the application may also need to restore session state.
Is the record TTL the recovery time?
Probe detection, policy updates, cache refreshes and client retries each contribute to observed recovery.
Which endpoint should a probe check?
Use a target that reflects readiness for this application and that can be tested independently for each region.
