summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Cameron <pcameron@redhat.com>2017-10-27 16:00:26 -0400
committerPhil Cameron <pcameron@redhat.com>2017-10-30 17:05:03 -0400
commit90b0ab18f62e362052868d89cba6fb0e0f3f142b (patch)
treed49300033572527308b8c08101f4e7d64c0240ff
parentef0b6ee84abbd83738f3e4465f05c3261114086e (diff)
downloadopenshift-90b0ab18f62e362052868d89cba6fb0e0f3f142b.tar.gz
openshift-90b0ab18f62e362052868d89cba6fb0e0f3f142b.tar.bz2
openshift-90b0ab18f62e362052868d89cba6fb0e0f3f142b.tar.xz
openshift-90b0ab18f62e362052868d89cba6fb0e0f3f142b.zip
dnsmasq cache-size dns-forward-max change
On very large clusters dnsmasq performance suffers due to limited cache-size and dns-forward-max values. bug: 1482847 https://bugzilla.redhat.com/show_bug.cgi?id=1482847
-rwxr-xr-xroles/openshift_node_dnsmasq/files/networkmanager/99-origin-dns.sh2
-rw-r--r--roles/openshift_node_dnsmasq/templates/origin-dns.conf.j22
2 files changed, 4 insertions, 0 deletions
diff --git a/roles/openshift_node_dnsmasq/files/networkmanager/99-origin-dns.sh b/roles/openshift_node_dnsmasq/files/networkmanager/99-origin-dns.sh
index 230f0a28c..f4e48b5b7 100755
--- a/roles/openshift_node_dnsmasq/files/networkmanager/99-origin-dns.sh
+++ b/roles/openshift_node_dnsmasq/files/networkmanager/99-origin-dns.sh
@@ -54,6 +54,8 @@ domain-needed
server=/cluster.local/172.30.0.1
server=/30.172.in-addr.arpa/172.30.0.1
enable-dbus
+dns-forward-max=5000
+cache-size=5000
EOF
# New config file, must restart
NEEDS_RESTART=1
diff --git a/roles/openshift_node_dnsmasq/templates/origin-dns.conf.j2 b/roles/openshift_node_dnsmasq/templates/origin-dns.conf.j2
index 5c9601277..4b55a0be4 100644
--- a/roles/openshift_node_dnsmasq/templates/origin-dns.conf.j2
+++ b/roles/openshift_node_dnsmasq/templates/origin-dns.conf.j2
@@ -3,6 +3,8 @@ domain-needed
no-negcache
max-cache-ttl=1
enable-dbus
+dns-forward-max=5000
+cache-size=5000
bind-interfaces
{% for interface in openshift_node_dnsmasq_except_interfaces %}
except-interface={{ interface }}