[dnsdist] leastOutstanding - With priority

Remi Gacogne remi.gacogne at powerdns.com
Thu Jan 5 14:15:51 UTC 2017

Hi Chris,

On 01/05/2017 09:46 AM, Chris wrote:
> - Is it possible to direct all queries to a different pool if there are
> no available servers in another pool? Keep in mind I cannot use a
> default pool as I direct queries to the appropriate pool based on the
> destination address (so that I only have to run a single instance of
> dnsdist for my various recursor/authoratative servers).

Not at the moment.

> - Is it possible to tweak the load balancing policy to take the order
> into account to do this instead?
> I had a play with the lua scripting but couldn't find a way to keep both
> the leastOutstanding policy + failover working.

You should be able to write a custom load-balancing policy in Lua quite
easily, the Lua policy function gets the list of servers in the selected
pool, and from the server object you can get its status (up or down),
order and weight. You can easily select all the available servers of
order 1 and pick one at random. If there is no such server available,
pick one of order 10.

Best regards,

Remi Gacogne
PowerDNS.COM BV - https://www.powerdns.com/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.powerdns.com/pipermail/dnsdist/attachments/20170105/edcc6281/attachment.sig>

More information about the dnsdist mailing list