]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Merge pull request #16668 from rgacogne/ddist-health-check-latency-bucket
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 12 Jan 2026 09:01:42 +0000 (10:01 +0100)
committerGitHub <noreply@github.com>
Mon, 12 Jan 2026 09:01:42 +0000 (10:01 +0100)
dnsdist: Add an histogram of health-check latencies for backends

1  2 
pdns/dnsdistdist/dnsdist-tcp.cc
pdns/dnsdistdist/dnsdist.cc

Simple merge
index e7155b94fc0e86b6c9399e615563d9e5fc0679a2,92174423fd037df47f7f781bd9efe0b3bfcf1f8b..a4bebd84e4ab7b345fff1a4d34a3e10a0e4a94c2
@@@ -642,12 -621,13 +624,12 @@@ bool sendUDPResponse(int origFD, const 
    return true;
  }
  
- void handleResponseSent(const InternalQueryState& ids, double udiff, const ComboAddress& client, const ComboAddress& backend, unsigned int size, const dnsheader& cleartextDH, dnsdist::Protocol outgoingProtocol, bool fromBackend)
+ void handleResponseSent(const InternalQueryState& ids, int udiff, const ComboAddress& client, const ComboAddress& backend, unsigned int size, const dnsheader& cleartextDH, dnsdist::Protocol outgoingProtocol, bool fromBackend)
  {
    handleResponseSent(ids.qname, ids.qtype, udiff, client, backend, size, cleartextDH, outgoingProtocol, ids.protocol, fromBackend);
 -  ids.sendDelayedProtobufMessages();
  }
  
- void handleResponseSent(const DNSName& qname, const QType& qtype, double udiff, const ComboAddress& client, const ComboAddress& backend, unsigned int size, const dnsheader& cleartextDH, dnsdist::Protocol outgoingProtocol, dnsdist::Protocol incomingProtocol, bool fromBackend)
+ void handleResponseSent(const DNSName& qname, const QType& qtype, int udiff, const ComboAddress& client, const ComboAddress& backend, unsigned int size, const dnsheader& cleartextDH, dnsdist::Protocol outgoingProtocol, dnsdist::Protocol incomingProtocol, bool fromBackend)
  {
    if (g_rings.shouldRecordResponses()) {
      timespec now{};