]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: add pooling support for RemoteLoggerInterface
authorEnsar Sarajčić <dev@ensarsarajcic.com>
Wed, 5 Feb 2025 14:58:05 +0000 (15:58 +0100)
committerEnsar Sarajčić <dev@ensarsarajcic.com>
Wed, 5 Feb 2025 14:58:05 +0000 (15:58 +0100)
commit965f0bb3be062cc04cc9c922e0407a91944dc789
tree61a92242f37a4dfe730f295b321fde771a663331
parent0612c17db5cdaf76a1a03ef191cdfd8810f4fb3f
dnsdist: add pooling support for RemoteLoggerInterface

This adds a new kind of `RemoteLoggerInterface`: `RemoteLoggerPool`.
It can take multiple other `RemoteLoggerInterface`s and pass data to
them in round-robin order by default.

This also adds additional option to `newRemoteLogger`, `newFrameStreamTcpLogger`
and `newFrameStreamUnixLogger`: `connectionCount`, which can be used to
generate a pool with multiple connections.

Closes: #14861
pdns/dnsdistdist/Makefile.am
pdns/dnsdistdist/dnsdist-lua-bindings-protobuf.cc
pdns/dnsdistdist/remote_logger_pool.cc [new symlink]
pdns/dnsdistdist/remote_logger_pool.hh [new symlink]
pdns/remote_logger_pool.cc [new file with mode: 0644]
pdns/remote_logger_pool.hh [new file with mode: 0644]