@arturmon for now only one thread is running to handle heartbeat polling for all the nodes, if we make it for each node, it will become costly operation. We will try to figure out is there any alternative solutions for this.
@arturmon this is good idea. the current approach is working as like, sending HEARTBEAT request to all the nodes, after some time(based on interval) checking last seen.
For example HEARTBEAT interval is 30 minutes. If battery operated node sends (HEARTBEAT response) themselves within 30 minutes, will be considered as alive
if a node last received HEARTBEAT goes more than 30 minutes then it will be marked as NOT REACHABLE, so we can adjust this interval from 1 MINUTE to ANY MINUTES and we can achieve both battery operated and normal nodes.