freifunk-berlin / hopglass.berlin.freifunk.net

Hopglass node map configuration files and converter for OWM data
0 stars 1 forks source link

Decrease time for considering node online #15

Closed Akira25 closed 3 years ago

Akira25 commented 3 years ago

Currently hopglass considers a node sent it''s last hello-message more than 20 hours ago as online. I agree that this is a point of how we define online, but I think that we should decrease that time to maybe two hours.

Here's a picture of the situation in that I got known of this issue. The link between fffw-schloss and fffw-wr1043-test already deceased, but fffw-schoss is still considered online. That's somehow confusing.

image

Akira25 commented 3 years ago

In addition, we deliver the statistics via HTTP over TCP. So we could safely assume, that a node isn't online anymore, if we didn't hear from it for 2 hours.

sarumpaet commented 3 years ago

I just tested this - reducing the time to two hours marks 21 additional nodes as offline currently. Apparently quite a few nodes are somewhat unstable. 🙈 Done in c7c3fa2

Akira25 commented 3 years ago

Thank you a lot for that qick fix! :)