Knowledge Base ISC Main Website Ask a Question/Contact ISC
How to determine BIND query rates (qps)
Author: Peter Losher Reference Number: AA-00559 Views: 2730 Created: 2011-12-01 18:42 Last Updated: 2014-12-24 17:28 0 Rating/ Voters

Question:

How can I find out what query rate my BIND nameserver is handling?

Answer:

BIND produces some basic statistics that can be output to a file.

First you need to enable the statistics by specifying the output file in named.conf in the options section:

statistics-file "/var/named/named.stats";

The example above shows the default file name and location - you can name and place it anywhere that the named daemon will be able to write to it.

You also need to make sure that you can control the named daemon using rndc.  You can refer to the BIND9 Administrator Reference Manual for more details on how to do this.

Restart named (which resets the statistics counters. 

For a quick estimate of query rate over 24 hours, run named for this period and then use rndc to dump the statistics that have been collected over this period:

rndc stats

Add together the first two entries in the output and then divide by the number of seconds that named has been running for.  The entries in the file will look something like this:

++ Incoming Requests ++
             402314 QUERY
               2809 UPDATE

You might only see a QUERY counter

Not all servers receive dynamic updates - in which case just use the query count when calculating qps

For more sophisticated monitoring of query rates, you can schedule rndc stats to run more frequently (every hour or every 5 minutes or less) and then use scripting techniques or import the statistical data into an analysis tool so that you can see fluctuating query rates over time - and in particular to observe your peak query rates.


© 2001-2016 Internet Systems Consortium

Please help us to improve the content of our knowledge base by letting us know below how we can improve this article.

If you have a technical question or problem on which you'd like help, please don't submit it here as article feedback.

For assistance with problems and questions for which you have not been able to find an answer in our Knowledge Base, we recommend searching our community mailing list archives and/or posting your question there (you will need to register there first for your posts to be accepted). The bind-users and the dhcp-users lists particularly have a long-standing and active membership.

ISC relies on the financial support of the community to fund the development of its open source software products. If you would like to support future product evolution and maintenance as well having peace of mind knowing that our team of experts are poised to provide you with individual technical assistance whenever you call upon them, then please consider our Professional Subscription Support services - details can be found on our main website.

Feedback
  • There is no feedback for this article
Info Submit Feedback on this Article
Nickname: Your Email: Subject: Comment:
Enter the code below:
Quick Jump Menu