[bind10-dev] using stats (branches/trac347)

Jeremy C. Reed jreed at isc.org
Wed Dec 1 13:23:27 UTC 2010


Just posting about my experience with using branches/trac347.

I did 50000 queries. It was about 1.24% performance loss compared to 
trunk.

Then ran bindctl:

> Stats status
send the command to cmd-ctrld
received reply: "I'm alive."

> Stats show
send the command to cmd-ctrld
received reply: {"report_time": "2010-12-01T13:30:06Z", 
"auth.queries.tcp": 0, "bind10.boot_time": "2010-12-01T13:25:40Z", 
"stats.start_time": "2010-12-01T13:25:41Z", "stats.timestamp": 
1291210206.411284, "auth.queries.udp": 50000, "stats.boot_time": 
"2010-12-01T13:25:41Z", "stats.lname": 
"4cf64cd5_b at bind10-testing1.lab.isc.org", "stats.last_update_time": 
"2010-12-01T13:29:41Z"}

> Stats set report_time foo
1 
Failed to connect with b10-cmdctl module, is it running?

(Bindctl exited here. This is a bug. But I didn't make ticket yet.)

Any examples of using set?

> Stats remove stats.timestamp
send the command to cmd-ctrld
received reply: {}
> Stats show
send the command to cmd-ctrld
received reply: {"report_time": "2010-12-01T13:32:17Z", 
"auth.queries.tcp": 0, "bind10.boot_time": "2010-12-01T13:25:40Z", 
"stats.start_time": "2010-12-01T13:25:41Z", "stats.timestamp": 
1291210337.862273, "auth.queries.udp": 50000, "stats.boot_time": 
"2010-12-01T13:25:41Z", "stats.lname": 
"4cf64cd5_b at bind10-testing1.lab.isc.org", "stats.last_update_time": 
"2010-12-01T13:31:41Z"}

Any examples of using remove?

> Stats reset
send the command to cmd-ctrld
received reply: {}
> Stats show
send the command to cmd-ctrld
received reply: {"report_time": "2010-12-01T13:33:24Z", 
"auth.queries.tcp": 0, "bind10.boot_time": "1970-01-01T00:00:00Z", 
"stats.start_time": "2010-12-01T13:33:22Z", "stats.timestamp": 
1291210404.772201, "auth.queries.udp": 0, "stats.boot_time": 
"2010-12-01T13:25:41Z", "stats.lname": 
"4cf64cd5_b at bind10-testing1.lab.isc.org", "stats.last_update_time": 
"2010-12-01T13:33:22Z"}

What are the "several constant names" that can't be reset? I guess I can 
answer that by looking above. Maybe these all should be documented in 
the manual page.

  Jeremy C. Reed
  ISC



More information about the bind10-dev mailing list