Skip to content

Commit

Permalink
Merge pull request #3731 from rgacogne/dnsdist-policies-doc
Browse files Browse the repository at this point in the history
dnsdist: Clarify a bit the documentation of load-balancing policies
  • Loading branch information
rgacogne committed Apr 19, 2016
2 parents df9d365 + 5efb31d commit 05ac86e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions pdns/README-dnsdist.md
Expand Up @@ -603,14 +603,15 @@ inspected or edited using showRule(), rmRule(), topRule(), mvRule() etc.

Dynamic load balancing
----------------------
The default load balancing policy is called 'leastOutstanding', which means
we pick the server with the least queries 'in the air' (and within those, the one with the lowest 'order', and within those, the one with the lowest latency).
The default load balancing policy is called `leastOutstanding`, which means
we pick the server with the least queries 'in the air' (and within those,
the one with the lowest `order`, and within those, the one with the lowest latency).

Another policy, 'firstAvailable', picks the first server that has not
exceeded its QPS limit gets the traffic.
Another policy, `firstAvailable`, picks the server with the lowest `order` that has not
exceeded its QPS limit. For now this is the only policy using the QPS limit.

A further policy, 'wrandom' assigns queries randomly, but based on the
'weight' parameter passed to `newServer`. `whashed` is a similar weighted policy,
A further policy, `wrandom` assigns queries randomly, but based on the
`weight` parameter passed to `newServer`. `whashed` is a similar weighted policy,
but assigns questions with identical hash to identical servers, allowing for
better cache concentration ('sticky queries').

Expand Down

0 comments on commit 05ac86e

Please sign in to comment.