Commit 03be5a6b authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

Improve performance for delegation heavy answers and also general query performance (#44029)

parent 4c31eda5
......@@ -6,9 +6,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* $Id$ */
controls { /* empty */ };
......@@ -22,6 +19,7 @@ options {
listen-on { 10.53.0.2; };
listen-on-v6 { none; };
notify no;
minimal-responses no;
};
key rndc_key {
......
......@@ -6,9 +6,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* $Id$ */
/*
* Main rpz test DNS server.
......@@ -25,6 +22,7 @@ options {
listen-on { 10.53.0.3; };
listen-on-v6 { none; };
notify no;
minimal-responses no;
response-policy {
zone "bl" max-policy-ttl 100;
......
......@@ -6,8 +6,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* $Id$ */
controls { /* empty */ };
......@@ -21,6 +19,7 @@ options {
listen-on { 10.53.0.4; };
listen-on-v6 { none; };
notify no;
minimal-responses no;
};
include "../trusted.conf";
......
......@@ -6,9 +6,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* $Id$ */
/*
* Test rpz performance.
......@@ -27,6 +24,7 @@ options {
ixfr-from-differences yes;
notify-delay 1;
notify yes;
minimal-responses no;
# turn rpz on or off
include "rpz-switch";
......
......@@ -18,6 +18,7 @@ options {
listen-on-v6 { none; };
forward only;
forwarders { 10.53.0.3; };
minimal-responses no;
response-policy { zone "policy1" min-update-interval 0; };
};
......
......@@ -16,6 +16,7 @@ options {
session-keyfile "session.key";
listen-on { 10.53.0.7; };
listen-on-v6 { none; };
minimal-responses no;
response-policy { zone "policy2"; }
qname-wait-recurse no
......
......@@ -30,8 +30,6 @@ options {
min-table-size 0;
max-table-size 0;
};
additional-from-cache no;
};
key rndc_key {
......
......@@ -30,8 +30,6 @@ options {
// small enough to force a table expansion
min-table-size 75;
};
additional-from-cache no;
};
key rndc_key {
......
......@@ -31,8 +31,6 @@ options {
// small enough to force a table expansion
min-table-size 75;
};
additional-from-cache no;
};
key rndc_key {
......
......@@ -6,10 +6,8 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# $Id: clean.sh,v 1.10 2011/12/23 23:47:13 tbox Exp $
rm -f dig.out.test*
rm -f dig.out.cyclic dig.out.fixed dig.out.random
rm -f dig.out.cyclic dig.out.fixed dig.out.random dig.out.nomatch
rm -f dig.out.0 dig.out.1 dig.out.2 dig.out.3
rm -f dig.out.cyclic2
rm -f ns2/root.bk
......
......@@ -36,3 +36,8 @@ cyclic2.example. A 1.2.3.4
cyclic2.example. A 1.2.3.3
cyclic2.example. A 1.2.3.2
cyclic2.example. A 1.2.3.1
;
nomatch.example. A 1.2.3.1
nomatch.example. A 1.2.3.2
nomatch.example. A 1.2.3.3
nomatch.example. A 1.2.3.4
......@@ -19,7 +19,6 @@ options {
listen-on { 10.53.0.3; };
listen-on-v6 { none; };
recursion yes;
acache-enable yes;
notify yes;
rrset-order {
name "fixed.example" order fixed;
......
......@@ -19,7 +19,6 @@ options {
listen-on { 10.53.0.4; };
listen-on-v6 { none; };
recursion yes;
acache-enable yes;
notify yes;
rrset-order {
class IN type A name "host.example.com" order random;
......
......@@ -438,7 +438,7 @@ echo "I: Random selection return $match of 24 possible orders in 36 samples"
if [ $match -lt 8 ]; then echo ret=1; fi
if [ $ret != 0 ]; then echo "I:failed"; fi
echo "I: Checking default order no match in rrset-order (random)"
echo "I: Checking default order no match in rrset-order (no shuffling)"
ret=0
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
do
......@@ -447,11 +447,11 @@ done
for i in a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 9
do
$DIG +nosea +nocomm +nocmd +noquest +noadd +noauth +nocomm +nostat +short \
-p 5300 @10.53.0.4 random.example > dig.out.random|| ret=1
-p 5300 @10.53.0.4 nomatch.example > dig.out.nomatch|| ret=1
match=0
for j in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
do
eval "$DIFF dig.out.random dig.out.random.good$j >/dev/null && match$j=1 match=1"
eval "$DIFF dig.out.nomatch dig.out.random.good$j >/dev/null && match$j=1 match=1"
if [ $match -eq 1 ]; then break; fi
done
if [ $match -eq 0 ]; then ret=1; fi
......@@ -461,8 +461,8 @@ for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
do
eval "match=\`expr \$match + \$match$i\`"
done
echo "I: Random selection return $match of 24 possible orders in 36 samples"
if [ $match -lt 8 ]; then echo ret=1; fi
echo "I: Consistent selection return $match of 24 possible orders in 36 samples"
if [ $match -ne 1 ]; then echo ret=1; fi
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
......
......@@ -19,7 +19,6 @@ options {
listen-on { 10.53.0.5; };
listen-on-v6 { none; };
recursion yes;
acache-enable yes;
dnssec-enable yes;
dnssec-validation yes;
servfail-ttl 30;
......
......@@ -18,6 +18,7 @@ options {
listen-on-v6 { none; };
recursion no;
notify yes;
minimal-responses no;
version none; // make statistics independent of the version number
};
......
......@@ -19,7 +19,6 @@ options {
listen-on { 10.53.0.3; };
listen-on-v6 { none; };
recursion yes;
acache-enable yes;
notify yes;
};
......
......@@ -19,7 +19,6 @@ options {
listen-on { 10.53.0.4; };
listen-on-v6 { none; };
recursion yes;
acache-enable yes;
notify yes;
};
......
......@@ -6,8 +6,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* $Id: named.conf,v 1.14 2007/06/19 23:47:05 tbox Exp $ */
controls { /* empty */ };
options {
......@@ -20,6 +18,7 @@ options {
listen-on-v6 { none; };
recursion no;
notify yes;
minimal-responses no;
};
zone "." {
......
......@@ -6,8 +6,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* $Id: named.conf,v 1.14 2007/06/19 23:47:05 tbox Exp $ */
controls { /* empty */ };
options {
......@@ -20,6 +18,7 @@ options {
listen-on-v6 { none; };
recursion no;
notify yes;
minimal-responses no;
};
zone "." {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment