summaryrefslogtreecommitdiffstats
path: root/modules/detect_time_jump/README.rst
blob: 240907f37993cf95049fce64e36cd256358141fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.. _mod-detect_time_jump:

Detect discontinuous jumps in the system time
---------------------------------------------

This module detect discontinuous jumps in the system time when resolver
is running.  It clears cache when a significant backward time jumps occurs.

Time jumps are usually created by NTP time change or by admin intervention.
These change can affect cache records as they store timestamp and TTL in real
time.

If you want to preserve cache during time travel you should disable
this module by ``modules.unload('detect_time_jump')``.

Due to the way monotonic system time works on typical systems,
suspend-resume cycles will be perceived as forward time jumps,
but this direction of shift does not have the risk of using records
beyond their intended TTL, so forward jumps do not cause erasing the cache.