[bind10-dev] Question about statistics incremental update

Yoshitaka Aharen aharen at jprs.co.jp
Wed Oct 10 11:32:00 UTC 2012


Hello,

On Tue, 09 Oct 2012 18:57:07 +0900 (JST)
fujiwara at jprs.co.jp wrote:
> 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.
> 
> Question 3: Do you have another options ?

I understood the question that we need a way to specify whether the item
is countable or not.

I don't think the Option 2 is a good idea. I understand the "type" is a
language-independent type for inter-module communication. We do not need
to add a new kind of integer type only to indicate the item is countable.

Instead, I think it is good to indicate the value is countable or not as
an attribute like Option 1 / Option 3. The attribute can be used not
only for integer type but also real type. Personally I prefer Option 1
for supporting co-existence of countable items and uncountable items.

By the way, I couldn't find any documentation for "named_set" type. Is
there any place which describes data format other than
http://bind10.isc.org/wiki/DataElementDesign?

Regards,

-- 
Yoshitaka Aharen <aharen at jprs.co.jp>
Japan Registry Services Co., Ltd.




More information about the bind10-dev mailing list