]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: add route policy of first ordered then weighted
authorOliver Chen <oliver.chen@nokia-sbell.com>
Fri, 13 Jun 2025 11:20:48 +0000 (11:20 +0000)
committerOliver Chen <oliver.chen@nokia-sbell.com>
Fri, 13 Jun 2025 11:20:48 +0000 (11:20 +0000)
commit88a5a3958c38e291a628cbe448d85e5dfda00514
tree55da31c40125f28e10f7ac86e8e1e24b2c22282c
parentb5fdcfca6d58608ff1015ead3ab52dbba9941c12
dnsdist: add route policy of first ordered then weighted

User may require two levels of routing policy to select downstream
servers. First choose the least ordered, then distribute queries
according to weights among the same ordered servers. It also added
special filtering on selecting servers for query restart. If user
sets the required tag in the restarted query then the policy will
not select server(s) that had been tried before.
pdns/dnsdistdist/dnsdist-lbpolicies.cc
pdns/dnsdistdist/dnsdist-lbpolicies.hh
pdns/dnsdistdist/dnsdist-settings-definitions.yml
pdns/dnsdistdist/docs/guides/serverselection.rst
pdns/dnsdistdist/docs/reference/config.rst
pdns/dnsdistdist/docs/reference/yaml-settings.rst
regression-tests.dnsdist/test_Routing.py