Improve ip updating of storage node

Where I live it is common for ISPs to change ip address every time after disconnect and force a disconnect every 24hrs.

The storagenode has no awareness of when the ip has changed. For several reasons using a ddns service is not a good option (free accounts are limited, require ongoing confirmations, service is limited, number of requests might be limited, professional accounts are not free)

Also I consider network discovery of a node as a crucial part which should not rely on "some" 3rd party.

So atm the only way would be to stop the node, change ip in config file and restart it. This however is assumed to come with a massive overhead and kills all statistics thus it is likely to harm reliability and reputation of a node.

So I propose 2 possible solutions:

1. Make the storagenode software aware of ip changes so that it can update and re-advertise to the satellite without complete restart.

2. At least implement a server command for only updating the ip without restarting the entire node so the stats, reliabilty and reputation stays intact. I have something in mind similar to the postfix command "postfix reload", which reloads a changed config without restarting Postfix.

A similar command could be something like /etc/init.d/storj -force-update-ip or simply passing the ip as argument like /etc/init.d/storj -update-ip xxx.xxx.xxx.xxx

I would prefer no.1 to be implemented and storagenode should update its by itself ip without any required interaction of node operator or requirement to restart.

However if at least no. 2 will be implemented then node operator could take care of detection of ip change an run a script to have the node update its ip.

In any case I want to repeat that in my view network discovery is crucial for the storagenode and the entire network, so it should not rely on any third party. Therfore change of ip address should be detected locally and updated without the need of restarting the node.

  • Jammer Dan
  • Jan 16 2020
  • Attach files
  • Jammer Dan commented
    02 Mar 04:47
  • Ryan Curtis commented
    02 Mar 18:09

    This would make the network more resiliant by having higher uptime and less repair due to offline nodes. Should get a pretty great benefit from not having to do excess DNS lookups, and waiting for DNS propagation when IPs change.

  • Pierre-Antoine Charrier commented
    02 Mar 23:06

    To me, point 1 is interesting. That'd be a very welcome improvement, making SNOs' life better. Would also make the deployment of a node slightly easier. Very good idea.

    On the other hand, I don't quite see how point 2 would be easier than setting up a DUC or a free DDNS account like no-ip that needs to be manually refreshed once a month.

  • Jammer Dan commented
    03 Mar 17:34

    @Pierre-Antoine Charrier

    Yes you are right. Point 2 would simply offer the option to let the SNO implement his own ip update detection and update the node without the requiremt to edit the config and restart the node manually.