</varlistentry>
<varlistentry>
- <term>time_to_ixfr</term>
+ <term>latest_ixfr_duration</term>
<listitem><simpara>
- Elapsed time in second to do the last IXFR
+ Duration of the latest IXFR
</simpara></listitem>
</varlistentry>
<varlistentry>
- <term>time_to_axfr</term>
+ <term>latest_axfr_duration</term>
<listitem><simpara>
- Elapsed time in second to do the last AXFR
+ Duration of the latest AXFR
</simpara></listitem>
</varlistentry>
TEST_ZONE_NAME_STR, 'xfrsuccess')
self.assertRaises(isc.cc.data.DataNotFoundError,
self.conn._counters.get, 'zones',
- TEST_ZONE_NAME_STR, 'time_to_axfr')
+ TEST_ZONE_NAME_STR, 'latest_axfr_duration')
self.assertEqual(self.conn.do_xfrin(False), XFRIN_OK)
self.assertFalse(self.conn._datasrc_client._journaling_enabled)
'xfrsuccess'))
self.assertGreaterEqual(self.conn._counters.get('zones',
TEST_ZONE_NAME_STR,
- 'time_to_axfr'),
+ 'latest_axfr_duration'),
0.0)
def test_do_xfrin_with_tsig(self):
# start statistics timer
self._counters.start_timer('zones', self._zone_name.to_text(),
- 'time_to_' + req_str.lower())
+ 'latest_' + req_str.lower() + '_duration')
logger.info(XFRIN_XFR_TRANSFER_STARTED, req_str, self.zone_str())
self._send_query(self._request_type)
# count (A|X)IXFR requests for statistics
)
# stop statistics timer
self._counters.stop_timer('zones', self._zone_name.to_text(),
- 'time_to_' + req_str.lower())
+ 'latest_' + req_str.lower() + '_duration')
except XfrinZoneUptodate:
# Eventually we'll probably have to treat this case as a trigger
"ixfrreqv6": 0,
"xfrsuccess": 0,
"xfrfail": 0,
- "time_to_ixfr": 0.0,
- "time_to_axfr": 0.0
+ "latest_ixfr_duration": 0.0,
+ "latest_axfr_duration": 0.0
}
},
"item_title": "Zone names",
"item_description": "Number of zone transfer requests failed"
},
{
- "item_name": "time_to_ixfr",
+ "item_name": "latest_ixfr_duration",
"item_type": "real",
"item_optional": false,
"item_default": 0.0,
- "item_title": "Time to IXFR",
- "item_description": "Elapsed time in seconds to do the last IXFR"
+ "item_title": "Latest IXFR duration",
+ "item_description": "Duration of the latest IXFR"
},
{
- "item_name": "time_to_axfr",
+ "item_name": "latest_axfr_duration",
"item_type": "real",
"item_optional": false,
"item_default": 0.0,
- "item_title": "Time to AXFR",
- "item_description": "Elapsed time in seconds to do the last AXFR"
+ "item_title": "Latest AXFR duration",
+ "item_description": "Duration of the latest AXFR"
}
]
}
zones/example.com./ixfrreqv6
zones/example.com./xfrsuccess
zones/example.com./xfrfail
- zones/example.com./time_to_ixfr
- zones/example.com./time_to_axfr
+ zones/example.com./latest_ixfr_duration
+ zones/example.com./latest_axfr_duration
ixfr_running
axfr_running
socket/unixdomain/open
# for per-zone counters
for name in self.counters._zones_item_list:
args = (self._perzone_prefix, TEST_ZONE_NAME_STR, name)
- if name.find('time_to_') == 0:
+ if name.find('latest_') == 0 and name.endswith('_duration'):
self.counters.start_timer(*args)
self.counters.stop_timer(*args)
self.assertGreaterEqual(self.counters.get(*args), 0.0)
# setting all counters to zero
for name in self.counters._zones_item_list:
args = (self._perzone_prefix, TEST_ZONE_NAME_STR, name)
- if name.find('time_to_') == 0:
+ if name.find('latest_') == 0 and name.endswith('_duration'):
zero = 0.0
else:
zero = 0
"ixfrreqv6": 0,
"xfrsuccess": 0,
"xfrfail": 0,
- "time_to_ixfr": 0.0,
- "time_to_axfr": 0.0
+ "latest_ixfr_duration": 0.0,
+ "latest_axfr_duration": 0.0
}
},
"item_title": "Zone names",
"item_description": "Number of zone transfer requests failed"
},
{
- "item_name": "time_to_ixfr",
+ "item_name": "latest_ixfr_duration",
"item_type": "real",
"item_optional": false,
"item_default": 0.0,
- "item_title": "Time to IXFR",
- "item_description": "Elapsed time in seconds to do the last IXFR"
+ "item_title": "Latest IXFR duration",
+ "item_description": "Duration of the latest IXFR"
},
{
- "item_name": "time_to_axfr",
+ "item_name": "latest_axfr_duration",
"item_type": "real",
"item_optional": false,
"item_default": 0.0,
- "item_title": "Time to AXFR",
- "item_description": "Elapsed time in seconds to do the last AXFR"
+ "item_title": "Latest AXFR duration",
+ "item_description": "Duration of the latest AXFR"
}
]
}
Then the statistics counter ixfrreqv6 for the zone _SERVER_ should be 0
Then the statistics counter xfrsuccess for the zone _SERVER_ should be 0
Then the statistics counter xfrfail for the zone _SERVER_ should be 0
- Then the statistics counter time_to_ixfr for the zone _SERVER_ should be 0.0
- Then the statistics counter time_to_axfr for the zone _SERVER_ should be 0.0
+ Then the statistics counter latest_ixfr_duration for the zone _SERVER_ should be 0.0
+ Then the statistics counter latest_axfr_duration for the zone _SERVER_ should be 0.0
When I send bind10 with cmdctl port 47804 the command Xfrout notify example.org IN
Then wait for new master stderr message XFROUT_NOTIFY_COMMAND
Then the statistics counter xfrsuccess for the zone example.org. should be 1
Then the statistics counter xfrfail for the zone _SERVER_ should be 0
Then the statistics counter xfrfail for the zone example.org. should be 0
- Then the statistics counter time_to_ixfr for the zone _SERVER_ should be 0.0
- Then the statistics counter time_to_ixfr for the zone example.org. should be 0.0
- Then the statistics counter time_to_axfr for the zone _SERVER_ should be greater than 0.0
- Then the statistics counter time_to_axfr for the zone example.org. should be greater than 0.0
+ Then the statistics counter latest_ixfr_duration for the zone _SERVER_ should be 0.0
+ Then the statistics counter latest_ixfr_duration for the zone example.org. should be 0.0
+ Then the statistics counter latest_axfr_duration for the zone _SERVER_ should be greater than 0.0
+ Then the statistics counter latest_axfr_duration for the zone example.org. should be greater than 0.0
#
# Test for Xfr request rejected
Then the statistics counter ixfrreqv6 for the zone _SERVER_ should be 0
Then the statistics counter xfrsuccess for the zone _SERVER_ should be 0
Then the statistics counter xfrfail for the zone _SERVER_ should be 0
- Then the statistics counter time_to_ixfr for the zone _SERVER_ should be 0.0
- Then the statistics counter time_to_axfr for the zone _SERVER_ should be 0.0
+ Then the statistics counter latest_ixfr_duration for the zone _SERVER_ should be 0.0
+ Then the statistics counter latest_axfr_duration for the zone _SERVER_ should be 0.0
#
# set transfer_acl rejection
Then the statistics counter xfrsuccess for the zone example.org. should be 0
Then the statistics counter xfrfail for the zone _SERVER_ should be greater than 0
Then the statistics counter xfrfail for the zone example.org. should be greater than 0
- Then the statistics counter time_to_ixfr for the zone _SERVER_ should be 0.0
- Then the statistics counter time_to_ixfr for the zone example.org. should be 0.0
- Then the statistics counter time_to_axfr for the zone _SERVER_ should be 0.0
- Then the statistics counter time_to_axfr for the zone example.org. should be 0.0
+ Then the statistics counter latest_ixfr_duration for the zone _SERVER_ should be 0.0
+ Then the statistics counter latest_ixfr_duration for the zone example.org. should be 0.0
+ Then the statistics counter latest_axfr_duration for the zone _SERVER_ should be 0.0
+ Then the statistics counter latest_axfr_duration for the zone example.org. should be 0.0
#
# Test for unreachable slave