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:
parent
5420fa942e
commit
61d05dea58
2 changed files with 5 additions and 1 deletions
|
@ -11,6 +11,9 @@
|
||||||
#nameservers:
|
#nameservers:
|
||||||
# - 127.0.0.1
|
# - 127.0.0.1
|
||||||
|
|
||||||
|
dns_forward_max: 150
|
||||||
|
cache_size: 1000
|
||||||
|
|
||||||
# Versions
|
# Versions
|
||||||
dnsmasq_version: 2.72
|
dnsmasq_version: 2.72
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,8 @@ log-queries
|
||||||
{% endif %}
|
{% endif %}
|
||||||
bogus-priv
|
bogus-priv
|
||||||
no-negcache
|
no-negcache
|
||||||
cache-size=1000
|
cache-size={{ cache_size }}
|
||||||
|
dns-forward-max={{ dns_forward_max }}
|
||||||
max-cache-ttl=10
|
max-cache-ttl=10
|
||||||
max-ttl=20
|
max-ttl=20
|
||||||
log-facility=-
|
log-facility=-
|
||||||
|
|
Loading…
Reference in a new issue