[bind10-dev] sendstats or getstats
Naoki Kambe
kambe at jprs.co.jp
Thu Nov 24 05:50:12 UTC 2011
Hello,
Can I just point out a little?
From: "Jeremy C. Reed" <jreed at isc.org>
Date: Tue, 22 Nov 2011 23:05:00 -0600 (CST)
> As I was documenting bind10 boss, I see getstats. It is an internal
> command. We also have sendstats which is available to use.
>
> Why both I wondered and from quick look at code I still wonder.
>
> Then I found my old closed ticket: http://bind10.isc.org/ticket/519
> that brought up these questions.
>
> Shouldn't we have a single command?
>
> For now what should I document? (Note that I already document the
> internal commands too.)
getstats and sendstats are strictly not same. getstats is for stats to
receive statistics data like boot_time from boss when stats is
starting. sendstats is for bindctl to have boss send statistics data
to stats whenever it is requested. Actually boss handles only
boot_time in statistics data. In #519 we didn't document the use of
getstats because it's for the internal use as Likun mentioned.
Originally sendstats had been also used for the former
situation. However we added changes for the new internal command into
boss and stats in order to fix the issue in msgq in #519.
Thanks,
Naoki Kambe
More information about the bind10-dev
mailing list