]> git.ipfire.org Git - thirdparty/pdns.git/commit - regression-tests.api/runtests.py
rec: make response stats a tcounter object 12323/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 13 Dec 2022 11:25:12 +0000 (12:25 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 14 Dec 2022 09:38:10 +0000 (10:38 +0100)
commit6ab8d5eaf0a9535904e603b59a6bfe25a42b3943
treecbbae7fa8b5bbb610567b2d3e9a63b05ad418ae2
parentf14e593aa622afb8263f42a92c7df18ac2763ac5
rec: make response stats a tcounter object

This allows for the packet cache hit path to record response stats without performance impact.

The qtype and rcode counters are capped, as i ran into trouble with
the thread stack sizes on macOS and OpenBSD. See the source comment
for explanation.

Closes #11534
13 files changed:
pdns/recursordist/Makefile.am
pdns/recursordist/docs/upgrade.rst
pdns/recursordist/pdns_recursor.cc
pdns/recursordist/rec-responsestats.cc [new file with mode: 0644]
pdns/recursordist/rec-responsestats.hh [new file with mode: 0644]
pdns/recursordist/rec-tcounters.cc
pdns/recursordist/rec-tcounters.hh
pdns/recursordist/rec_channel_rec.cc
pdns/recursordist/responsestats.cc [deleted symlink]
pdns/recursordist/responsestats.hh [deleted symlink]
pdns/tcounters.hh
pdns/ws-api.cc
regression-tests.api/runtests.py