Follow a six-step method for setting TTLs from observed behaviour.
This is a forecasting and policy procedure, not a model. That is deliberate. It demonstrates the Module 3 principle that you should not model what you can simply compute.
|
# |
Step |
What you compute |
The rule it produces |
|
1 |
Measure change frequency |
For each record, how often its value really changed over 12 months |
Records that never changed do not need agility |
|
2 |
Measure query distribution |
Requests per hour per name, and how many distinct resolvers ask |
High-volume names gain most from longer TTLs |
|
3 |
Classify by purpose |
Steering-critical, application, static, infrastructure |
Puts each name in a portfolio band |
|
4 |
Forecast the change calendar |
Known migrations, launches and seasonal events in the next quarter |
Schedules temporary TTL reductions instead of permanent ones |
|
5 |
Set and stage |
Raise TTLs gradually; old values persist in caches for the old TTL duration |
Prevents a surprise when both values are live at once |
|
6 |
Verify and hold |
Re-measure hit ratio, authoritative load and p95 after two weeks |
Confirms the gain and builds evidence for the next change |
Step 1 usually settles the argument by itself. Pulling twelve months of change history typically shows that the large majority of records never changed at all, which makes their short TTL hard to defend. Step 4 is where forecasting enters, and in a modest way: you are anticipating planned events, not predicting traffic. A change calendar plus a seasonal traffic profile is enough to schedule temporary reductions in advance. Step 6 closes the loop, and funds the next change, because a measured before-and-after on hit ratio and p95 is the evidence you need when you propose touching the infrastructure records.
Raising a TTL is not instant. When you raise a TTL, caches still hold the old answer under the old TTL. It is like announcing a new office address: people who already wrote down the old one will keep using it until their note expires. The new value takes full effect only after the previous TTL has run out everywhere, so plan your change window accordingly.
TRY IT YOURSELF Run steps 1 to 3 for the ten busiest names in your zone and write down a proposed TTL for each, with a one-line justification. That table is your Module 5 artefact.
