nav
nav copied to clipboard
Remove needless carbon data chunking from activeipcollector
I'm looking at this code specifically because of its use of xrange()
, which won't work under Python 3.
However, I have questions regarding the assumptions made in this comment: https://github.com/UNINETT/nav/blob/6804f2336d9bf261d80767227d57feafe1341b2f/python/nav/activeipcollector/manager.py#L44-L50
The carbon-dispatching code already chunks data, so I'm not sure I support this conclusion. Opening an issue to have a discussion about it.
This is still a valid proposition. Carbon data is always chunked into packets based (more-or-less) on MTU by this function: https://github.com/Uninett/nav/blob/e6634e512c8ecf283c85a701366620e724806ab7/python/nav/metrics/carbon.py#L135-L159
I.e. activeipcollector's added chunking hasn't mattered since the RRDtool days.