Allow to specify number of concurrent DNS queries

ndots creates overhead as every pod creates 5 concurrent connections
that are forwarded to sky dns. Under some circumstances dnsmasq may
prevent forwarding traffic with "Maximum number of concurrent DNS
queries reached" in the logs.

This patch allows to configure the number of concurrent forwarded DNS
queries "dns-forward-max" as well as "cache-size" leaving the default
values as they were before.

Signed-off-by: Sergii Golovatiuk <sgolovatiuk@mirantis.com>
This commit is contained in:
Sergii Golovatiuk 2017-01-19 10:07:37 +01:00
parent 5420fa942e
commit 61d05dea58
2 changed files with 5 additions and 1 deletions

View file

@ -11,6 +11,9 @@
#nameservers:
# - 127.0.0.1
dns_forward_max: 150
cache_size: 1000
# Versions
dnsmasq_version: 2.72

View file

@ -27,7 +27,8 @@ log-queries
{% endif %}
bogus-priv
no-negcache
cache-size=1000
cache-size={{ cache_size }}
dns-forward-max={{ dns_forward_max }}
max-cache-ttl=10
max-ttl=20
log-facility=-