]> granicus.if.org Git - pdns/commitdiff
dnsdist: Fix the documentation for MaxQPSRule()
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 22 Feb 2018 13:08:20 +0000 (14:08 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 22 Feb 2018 13:08:20 +0000 (14:08 +0100)
Contrary to MaxQPSIPRule(), MaxQPSRule() matches the traffic below
the QPS limit, not above.

pdns/dnsdistdist/docs/rules-actions.rst

index b69185ea159073721c199557d72a7640d17eb854..33da71a9e349328943b172532c4bb54cc36a80e8 100644 (file)
@@ -495,10 +495,10 @@ These ``DNSRule``\ s be one of the following items:
 
 .. function:: MaxQPSRule(qps)
 
-  Matches traffic exceeding this qps limit. If e.g. this is set to 50, starting at the 51st query of the current second traffic is matched.
+  Matches traffic **not** exceeding this qps limit. If e.g. this is set to 50, starting at the 51st query of the current second traffic stops being matched.
   This can be used to enforce a global QPS limit.
 
-  :param int qps: The number of queries per second allowed, above this number traffic is matched
+  :param int qps: The number of queries per second allowed, above this number the traffic is **not** matched anymore
 
 .. function:: NetmaskGroupRule(nmg[, src])