Open maurerle opened 2 months ago
The Idea is good, I will take it on the roadmap.
But I did not like the name prune_after. Because it associate to easy with deletion (but the data are still there instate). So maybe maxAge, before-filter or so are better naming.
Proposal
We would not like to prune the whole state.json but only old nodes from the output (e.g.
meshviewer.json
) - currently, I can only setprune_after
on the state.json settings, but not per output.It would be handy to have it per output, so that one can still see, that a node was seen before 30 days, even if it was offline for more than 14 days in between.
Alternatives
An alternative approach would be to increase
prune_after
to90d
in the yanic.conf and add the option to only show younger nodes than7d
on the map inmeshviewer.json
. Currently, meshviewer shows all nodes and does only limitmaxAge
for the new Node and old Nodes view. This could be adjusted, so that meshviewer does not show nodes which are longer offline thanmaxAge