Netmap link traffic does not always show

Bug #1338388 reported by Etienne Lacombe
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Network Administration Visualized
Fix Released
Undecided
John-Magne Bredal

Bug Description

Traffic on links in Netmap does not consistently show. Sometime, I refresh and I get most of the links showing traffic (green). Sometimes, none show. The call to /netmap/api/graph/layer2/1?traffic=1 occurs every time but does not display every time. Sometimes, only a few links have the traffic indicator showing, sometimes, almost all and sometimes none.

I'm using Firefox 30, latest version of NAV on a VM. VM CPU, response time is totally fine. That specific URL call takes >1 second (2759 ms, 1988ms, 2070ms). Time for the request does not seem to be the cause for the green to show or not show as the 2070ms showed most of the links while the 1988ms showed only a few and a 2192ms showed the most.

In the WebConsole, I get

- TypeError: mutating the [[Prototype]] of an object will ause your code to run very slowly;
- Use of getPreventDefault() is deprecated.

I don't know that any of those have anything to do with this, just mentioning it.

Tags: netmap
Changed in nav:
assignee: nobody → Eivind Lysne (eivindlysne)
Revision history for this message
Eivind Lysne (eivindlysne) wrote :

This problem likely originates in the backend, between nav and graphite.

The netmap frontend has a known bug which may cause 1 or 2 links with multiple edges not to display traffic data, but not affect the whole graph.

This behavior is being looked into.

Revision history for this message
Peter Gervai (grin) wrote :

It is definitely graphite+timeout related: I see nav is pulling loads of graphite data then stops (without having traffic to show) the same time, no errors logged.

However if I reload immediately graphite pulls the data from cache (I guess) and the traffic shows, almost always. I am pretty sure a 20 second timeout is triggered.

Revision history for this message
Peter Gervai (grin) wrote :
Revision history for this message
Peter Gervai (grin) wrote :

By the way the two errors in the opening post are in d3 and jquery, respectively. They should be fixed upstream (and indeed they should).

Revision history for this message
Peter Gervai (grin) wrote :

It seems there's plenty places to timeout (like in d3), this should better take care of them all. Right now it works for me even when fetch is 40+ seconds. Well, a spinner would be nice... ;-)

Revision history for this message
Morten Brekkevold (mbrekkevold) wrote :

Re-assigning this to John-Magne, since Eivind is no longer on the team...

Changed in nav:
assignee: Eivind Lysne (eivindlysne) → John-Magne Bredal (john-m-bredal)
Revision history for this message
John-Magne Bredal (john-m-bredal) wrote :

There is a spinner, but that's for the graph, not the traffic data. Hm.

However, I have added the content of the patches to the bugfix branch. I also rewrote the backend to do a big request for all edges instead of one request per edge. This should theoretically increase speed when fetching the traffic, although I see little improvement for small datasets.

Revision history for this message
John-Magne Bredal (john-m-bredal) wrote :

I forgot to say thanks for the patches =) Thanks!

Revision history for this message
John-Magne Bredal (john-m-bredal) wrote :

I noticed that every fifth minute netmap did not display interface traffic. This corresponds with the whisper file retentions.

My guess is that the way we calculate the traffic on interfaces (we are dependent on two datapoints to get a value), lead to no data at seemingly random but actually every five minute interval.

I have upped the interval we ask for data for to 15 minutes, which should fix this problem.

Revision history for this message
John-Magne Bredal (john-m-bredal) wrote :

I also added two indicators, one for loading the graph data, and one for loading the traffic. This should make it clear if the user is waiting for something.

Changed in nav:
status: New → Fix Committed
milestone: none → 4.2.6
Revision history for this message
John-Magne Bredal (john-m-bredal) wrote :
Changed in nav:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.