]> git.ipfire.org Git - thirdparty/squid.git/commit - src/cf.data.pre
paranoid_hit_validation directive (#559)
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Mon, 9 Mar 2020 19:29:04 +0000 (19:29 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sat, 14 Mar 2020 19:48:44 +0000 (19:48 +0000)
commitb2aca62a222cafc8cffd4b1d09a5e1fd104d7612
treeb55a51e98174718be3c11c3b5904384b7aef7bde
parent5106d639a6d12abc6fb60746c07141b24abe34c2
paranoid_hit_validation directive (#559)

This directive controls whether Squid should perform paranoid validation
of cache entry metadata integrity every time a cache entry is hit. The
client transaction experiences a cache miss instead.

This feature does not protect from the corruption that happens while the
hit is being delivered because the validation runs once per client
request when that client request discovers a cache hit. Future versions
may add more checkpoints.

The paranoid hit validation statistics are available by means of several
new cache manager counters, available by mgr:counters, mgr:5min and
mgr:60min requests. The statistics are reported only when
paranoid_hit_validation is enabled.
15 files changed:
src/SquidConfig.h
src/StatCounters.h
src/Transients.cc
src/cache_cf.cc
src/cf.data.depend
src/cf.data.pre
src/ipc/ReadWriteLock.cc
src/ipc/ReadWriteLock.h
src/ipc/StoreMap.cc
src/ipc/StoreMap.h
src/mgr/CountersAction.cc
src/mgr/CountersAction.h
src/mgr/IntervalAction.cc
src/mgr/IntervalAction.h
src/stat.cc