Skip to content

Commit

Permalink
Document that rules are not for creating by the thousands
Browse files Browse the repository at this point in the history
This addresses #5433, which featured a user attempting to create 30k rules.
  • Loading branch information
ahupowerdns authored Jun 20, 2017
1 parent 98356ba commit 5f13d87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pdns/README-dnsdist.md
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ single operation with `setRules()`:
> setRules( { newRuleAction(TCPRule(), AllowAction()), newRuleAction(AllRule(), DropAction()) } )
```

NOTE: Adding large numbers of rules (200+) is slow, and will also impact performance significantly. Instead of creating numerous rules, consider using smaller numbers of individual rules that match large numbers of domains or IP addresses, for example using a `SuffixMatchNodeRule` or a `NetmaskGroupRule`. These rules are optimized for hosting thousands or millions of domain names or IP addresses.

More power
----------
Expand Down

0 comments on commit 5f13d87

Please sign in to comment.