[Pdns-users] Performance of LUABackend

fredrik danerklint fredan-pdns at fredan.org
Thu May 12 13:58:15 UTC 2011


This is just a test to see how fast it can be with only two records in lua:

records["host.test.com"] = {domain_id = 11, name = "host.test.com", type = 
"A", ttl = 120, content = "10.11.12.13"}
records["www.test.com"] = {domain_id = 11, name = "www.test.com", type = 
"CNAME", ttl = 120, content = "host.test.com"}

PowerDNS was running with only one thread and all cache-values set to zero!

$ dig a www.test.com @127.0.0.1 -p5300 +multiline

; <<>> DiG 9.7.1-P2 <<>> a www.test.com @127.0.0.1 -p5300 +multiline
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63792
;; flags: qr aa rd; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;www.test.com.          IN A

;; ANSWER SECTION:
www.test.com.           120 IN CNAME host.test.com.
host.test.com.          120 IN A 10.11.12.13

;; Query time: 0 msec
;; SERVER: 127.0.0.1#5300(127.0.0.1)
;; WHEN: Thu May 12 15:56:26 2011
;; MSG SIZE  rcvd: 65



dnsperf is asking for www.test.com

$ ./dnsperf

DNS Performance Testing Tool

Nominum Version 1.0.1.0

[Status] Processing input data
[Status] Sending queries (to 127.0.0.1)
[Status] Testing complete

Statistics:

  Parse input file:     multiple times
  Run time limit:       60 seconds
  Ran through file:     1398285 times

  Queries sent:         1398285 queries
  Queries completed:    1398285 queries
  Queries lost:         0 queries

  Avg request size:     30 bytes
  Avg response size:    65 bytes

  Percentage completed: 100.00%
  Percentage lost:        0.00%

  Started at:           Thu May 12 15:49:24 2011
  Finished at:          Thu May 12 15:50:24 2011
  Ran for:              60.000003 seconds

  Queries per second:   23304.748835 qps

Latency: Min: 0.000000 s; Max: 0.022691 s; Avg: 0.000043 s; StdDev: 0.000041

Response latency distribution (total 1398285 responses):

Latency   Success  Fail |
<    0.100s1398285     0 |
############################################################
<    0.200s     0     0 |
<    0.300s     0     0 |
<    0.400s     0     0 |
<    0.500s     0     0 |
<    0.600s     0     0 |
<    0.700s     0     0 |
<    0.800s     0     0 |
<    0.900s     0     0 |
<    1.000s     0     0 |
>=   1.000s     0     0 |

Legend:

##### = success responses (RCODE was NOERROR or NXDOMAIN)
----- = failure responses (any other RCODE)

-- 
//fredan



More information about the Pdns-users mailing list