[Pdns-users] Acheiving 40,000 QPS

bert hubert bert.hubert at netherlabs.nl
Mon May 17 06:30:45 UTC 2010


Hi Lee,

In the past few months, quite some CNS servers have been replaced by the
PowerDNS Recursor, so you are not alone!

The 40,000 number has been reproduced by a number of separate parties, 
sample output is below.

First, please read http://doc.powerdns.com/recursor-performance.html
especially the bit about firewalls. PowerDNS does aggressive source port
randomization, and may stress out intervening firewalls.

Second, try: dnsperf -q 1000 -l 100 < queryfile-example-3million 

I just did, and the output is:
  Parse input file:     multiple times
  Run time limit:       100 seconds
  Ran through file:     0 times

  Queries sent:         2995336 queries
  Queries completed:    2991690 queries
  Queries lost:         3646 queries

  Avg request size:     41 bytes
  Avg response size:    80 bytes

  Percentage completed:  99.88%
  Percentage lost:        0.12%

  Started at:           Mon May 17 08:23:12 2010
  Finished at:          Mon May 17 08:24:57 2010
  Ran for:              104.828020 seconds

  Queries per second:   28539.029927 qps

This is on a server with a firewall in place, and the first run. Second run
with firewall state tracking disabled as per the instructions on
doc.powerdns.com:

Statistics:

  Parse input file:     multiple times
  Run time limit:       100 seconds
  Ran through file:     1 times

  Queries sent:         5700362 queries
  Queries completed:    5694333 queries
  Queries lost:         6029 queries

  Avg request size:     41 bytes
  Avg response size:    80 bytes

  Percentage completed:  99.89%
  Percentage lost:        0.11%

  Started at:           Mon May 17 08:26:33 2010
  Finished at:          Mon May 17 08:28:18 2010
  Ran for:              104.711111 seconds

  Queries per second:   54381.363598 qps

I hope this helps answer your question. The main trick is to have enough
queries operating in parallel, which incidentally is a close match to 'real
life' heavy use operation.

The operating system of the numbers above is Ubuntu Karmic Koala.

Let me know if you have further questions.

Kind regards,

Bert Hubert

On Mon, May 17, 2010 at 01:45:46PM +0800, Lee Standen wrote:
> Hi All,
> 
> We're looking to trial PowerDNS as an option to replace our Nominum CNS servers in the next few months, and we're impressed by the performance claimed by PowerDNS.
> 
> I've deployed a recursive server and have attempted to replay some captured traffic, but based on my initial testing, I'm only able to pull about 2500 requests per second.
> 
> Does any documentation exist which describes which settings must be changed to achieve the claimed 40,000 requests per second?
> 
> The server is currently deployed on an IBM HS-21XM blade, which is an 8 core Xeon system.
> 
> Thanks
> 
> 
> 

> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> http://mailman.powerdns.com/mailman/listinfo/pdns-users




More information about the Pdns-users mailing list