pdns_server 3.0-svn recurs-answers counter wraps into negative values #179

Closed
Habbie opened this Issue Apr 26, 2013 · 1 comment

Projects

None yet

1 participant

@Habbie
Member
Habbie commented Apr 26, 2013

my rrd update script does a simple pdns_control --socket-dir=$SOCKETDIR SHOW $var just like the one for the recursor and after several weeks uptime my 3.0-svn bind backend pdns_server as of Sep 3 13:19 produced negative output values for the recurs-answers counter.

Example output taken shortly before server restart:
corrupt-packets:defd-cache-inserts:defd-cache-lookup:latency:packetcache-hit:packetcache-miss:packetcache-size:qsize-q:query-cache-hit:query-cache-miss:recurs-answers:recurs-questions:servfail-packets:tcp-answers:tcp-queries:timedout-packets:udp-answers:udp-queries:udp4-answers:udp4-queries:udp6-answers:udp6-queries
1204039937:1072879:0:0:0:251689430:677449484:3961:0:0:-2146813031:0:0:4:52119:55632:0:929124081:930198412:921081356:921090800:8042726:8042935
A restart fixed the problem for now off course.
recurs-answers increases at a rate of around 300 per second. udp query rate is ~150qps.

Interestingly enough rrdtool seems to have saved "0.0000000000e+00" as a value before things went the wrong way but the raw value looks different:

update script executed each 60s (after server restart):
-t corrupt-packets:defd-cache-inserts:defd-cache-lookup:latency:packetcache-hit:packetcache-miss:packetcache-size:qsize-q:query-cache-hit:query-cache-miss:recurs-answers:recurs-questions:servfail-packets:tcp-answers:tcp-queries:timedout-packets:udp-answers:udp-queries:udp4-answers:udp4-queries:udp6-answers:udp6-queries 1204042427:163:0:0:0:59849:191392:2505:0:0:691632:0:0:0:1669:1673:0:249810:249994:246451:246471:3366:3367
-t corrupt-packets:defd-cache-inserts:defd-cache-lookup:latency:packetcache-hit:packetcache-miss:packetcache-size:qsize-q:query-cache-hit:query-cache-miss:recurs-answers:recurs-questions:servfail-packets:tcp-answers:tcp-queries:timedout-packets:udp-answers:udp-queries:udp4-answers:udp4-queries:udp6-answers:udp6-queries 1204042488:165:0:0:0:61731:196831:3589:0:0:710907:0:0:0:1669:1673:0:257151:257337:253597:253619:3556:3556
-t corrupt-packets:defd-cache-inserts:defd-cache-lookup:latency:packetcache-hit:packetcache-miss:packetcache-size:qsize-q:query-cache-hit:query-cache-miss:recurs-answers:recurs-questions:servfail-packets:tcp-answers:tcp-queries:timedout-packets:udp-answers:udp-queries:udp4-answers:udp4-queries:udp6-answers:udp6-queries 1204042548:177:0:0:0:63408:202893:3001:0:0:732805:0:0:0:1669:1673:0:264874:265071:261272:261296:3602:3602

best wishes,

        Stefan Schmidt
@Habbie Habbie was assigned Apr 26, 2013
@Habbie Habbie closed this Apr 26, 2013
@Habbie
Member
Habbie commented Apr 26, 2013

Author: ahu
Fixed in commit 1284, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment