meshtastic / protobufs

Protobuf definitions for the Meshtastic project
https://meshtastic.org
GNU General Public License v3.0
83 stars 118 forks source link

TTL on NodeDB[Feature Request]: #445

Open N1obu opened 8 months ago

N1obu commented 8 months ago

Platform

ESP32

Description

Currently MQTT nodes lock-up with large node databases. Work around is to soft reset the node and quickly reset NodeDB.

Request to set a TTL on the NodeDB to about 60 minutes (RF and MQTT nodes). If nodes aren't heard within the 60 minutes - They're dropped from the DB.

GUVWAF commented 7 months ago

Currently when the NodeDB is full the oldest gets removed already. If there are more nodes than fit in the NodeDB, it will always remain full when traffic from other nodes keep coming; this will not be solved with a TTL.

Besides, 60 min. would be way too fast for most usage. I do not want to loose my nodes at home when I take my node to work, where I cannot reach them. Also, nodes in Router role have a default periodic broadcast rate as low as 12 hours.