]> granicus.if.org Git - pdns/commitdiff
dnsdist: Fix the `firstAvailable` policy description
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 19 Dec 2016 08:58:53 +0000 (09:58 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 19 Dec 2016 08:58:53 +0000 (09:58 +0100)
It doesn't use the server's `order`, except when falling back to
`leastOutstanding`.

pdns/README-dnsdist.md

index 263914d37d17ba2c199935836fb8294567220c36..f85489a95467edc09c7e7f64273c48467b55e173 100644 (file)
@@ -705,8 +705,10 @@ 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 server with the lowest `order` that has not
-exceeded its QPS limit. For now this is the only policy using the QPS limit.
+Another policy, `firstAvailable`, picks the first server that has not
+exceeded its QPS limit. If all servers are above their QPS limit, a
+server is selected based on the `leastOutstanding` policy. 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,