-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature idea: trigger load of nodeinfo for single node #38
Comments
So when exactly is the server supposed to get nodeinfo? It doesn't even know the node's ip yet.. |
I was thinking of some kind of trigger API. Of course hopglass does not know the IP of a node before it knows the node, but that's not necessarily the case for all other components of the system. e.g. you can know the IP through batman (via mac address->ipv6 address calculation). Or the node could actually trigger the update itself by notifying the server. |
I understand the idea, but I don't get why you would want that. |
Faster map updates. Currently the situation is much worse than at the beginning of hopglass-server, because we are no longer requesting for nodeinfo on unknown nodes. This leads to unresolved nodes being shown in the graph and in prometheus, which could be resolved at that moment. I guess we should really bring the feature back which triggers nodeinfo request on devices that sent neighbours or statistics (independent from this issue). This would solve some of the problems of delayed map updates. Nonetheless I still think it would be awesome to have live map updates, including the possibility to push updates to the hopglass web client via websockets. Just imagine you are plugging in a router and it pop ups on the map only seconds after configuration ;) |
I don't understand how just adding a trigger feature will improve anything.
we can change that again, now that you mention it I agree about the push part and I have tried to implement that into respondd, but my C skills are very limited. |
It would be awesome if there was a way to trigger the hopglass-server to load a nodeinfo update "out-of-order". This could be used by gateway server once a node connected, allowing "live update" of the map.
Although the delay usually is less than a minute, some people are eagerly refreshing the hopglass after connecting the node. As hopglass-server creates a new json for each request anyway, creating them "out-of-order" is not a deal (but was back in times of ffmap-backend).
This can also be used if nodeinfo is updated when the node is "old", so that it won't take 5 minutes (default settings) to update.
The text was updated successfully, but these errors were encountered: