[bind10-dev] Question about statistics incremental update

Naoki Kambe kambe at jprs.co.jp
Wed Oct 10 06:31:32 UTC 2012


From: fujiwara at jprs.co.jp
Date: Tue, 09 Oct 2012 18:57:07 +0900 (JST)
> (If Option 1 is selected at Question 1)
> Question 2: How to distinct increment or counter ?
> 
> * Option 1: add "item_subtype" in module spec.
>             its value is "none" or "incremental". the default is "none".
> 
> * Option 2: add "integer_incremental" to values of "item_type".
>             pros: It does not increase type names and easy to implement.
>             cons: It can be used anywhere and it is useless.
> 
> * Option 3: add a special message "incremental_mode: true" in statistics data.
>             pros: very easy to implement.
>             cons: It cannot support co-existence of
> 	          incremental and non-incremental.

I propose another option at this question. What's about introducing
"counter" type like data type in SNMP into "item_type"?

"Counter" type is defined in SNMP SMIv1 :
http://tools.ietf.org/html/rfc1155#section-3.2.3.3

For example, it might be used in a spec file of auth as the following:
      ...
      {
        "item_name": "queries.udp",
        "item_type": "counter",
        "item_optional": false,
        "item_default": 0,
        "item_title": "Queries UDP",
        "item_description": "A number of incremental query counts
          which an auth server has received over UDP since it sent to
          the stats daemon"
      },
      ...

"counter" type might be treated as a non-negative integer in BIND 10.
Any values of this type might be summable even if multiple instances
of a same module which has a item of that type send different values.

Regards,

Naoki Kambe


More information about the bind10-dev mailing list