In this lesson · topic 3 of 7
Topic 3
Fail an endpoint and time the failover
8 min read
What the lab runs
Twenty clients a second ask one of 50 resolvers for the service name. A resolver answers from its cache while the entry is fresh. Otherwise it asks the authoritative server and caches the reply for the TTL.
Endpoint A goes down at second 100 and returns at second 350. A health check changes the record 10 seconds after each change. A request sent to a dead endpoint fails. The lab reports the failover delay, the seconds from the start of the outage to the last failed request.
Some resolvers ignore the TTL and keep every answer for at least two minutes. You choose how many.
Predict before you press play
Things to try
- Set the TTL to 300 and read the failover delay.
- Set the TTL to 20 with no resolver ignoring it.
- Keep the TTL at 20 and raise ignoring resolvers to 30 percent.
- Choose weighted answers with the outage off and the weight on A at 80 percent.
- Keep weighted answers and raise the TTL to 300.
The full-page lab has a guided experiment for each of these.