Uptime is one of few main criteria to be considered good node both by Lightning Terminal and BOS score.
As myNode have quite frequent updates and they take quite a bit of time, to keep your uptime above 99,9% is indeed a challenge.
Two ways I improved my uptime quite significantly are.
1. Turn off tor stream isolation.
Stream isolation creates separate circuit for each connection improving privacy, but with hundred or more channels it keep having issues, disconnecting and loosing both peers and channels. Also after the node is restarted it may take up to hour before all channels come back online. All of this will reduce your uptime. By turning off isolation all your channels will connect immediately and I haven't experience any downtime at all from my side. That being said I don't understand how big is the trade off for the privacy and I will update this guide once I learn more about this.
To turn off stream isolation go to your lnd.conf and change the setting to false/0. Restart will be required.
Code: Select all
tor.streamisolation=0
If you setup crontab to run reconnect every hour, it will make sure to re-establish connections as soon as possible thus increasing your channel uptime!
First make sure your BOS is installed properly and see the location system is using
Code: Select all
which bos
Open crontab as your current user (probably admin, sudo is not needed):
Code: Select all
crontab -e
Code: Select all
0 */1 * * * /usr/bin/bos reconnect
If you want to monitor it is working properly you can make the output to be written to the file, if that is the case just add redirect to file at the end. This will create file reconnect.log in your /home/admin and every hour writes latest reconnect output and or error.
Code: Select all
0 */1 * * * /usr/bin/bos reconnect > /home/admin/reconnect.log 2>&1
With this two settings your node will increase its uptime even when running solely on TOR!
Please let me know if I have any mistakes, something is not working or if you have any more questions.
Happy routing.