1
0
mirror of https://gitlab.isc.org/isc-projects/bind9.git synced 2025-04-18 09:44:09 +03:00

Reduce QPDB_VIRTUAL to 10 seconds

The *DB_VIRTUAL value was introduced to allow the clients (presumably
ns_clients) that has been running for some time to access the cached
data that was valid at the time of its inception.  The default value
of 5 minutes is way longer than longevity of the ns_client object as
the resolver will give up after 2 minutes.

Reduce the value to 10 seconds to accomodate to honour the original
more closely, but still allow some leeway for clients that started some
time in the past.

Our measurements show that even setting this value to 0 has no
statistically significant effect, thus the value of 10 seconds should be
on the safe side.
This commit is contained in:
Ondřej Surý 2025-03-21 06:17:55 +01:00
parent dfe755a5d6
commit 6ed821beb4
No known key found for this signature in database
GPG Key ID: 2820F37E873DEA41

View File

@ -122,10 +122,10 @@
#define HEADERNODE(h) ((qpcnode_t *)((h)->node))
/*
* Allow clients with a virtual time of up to 5 minutes in the past to see
* Allow clients with a virtual time of up to 10 seconds in the past to see
* records that would have otherwise have expired.
*/
#define QPDB_VIRTUAL 300
#define QPDB_VIRTUAL 10
/*
* This defines the number of headers that we try to expire each time the