I’ve not had the time to run / maintain my nodes from home over these last few months and I now would like to spin some up again. Is there anyone that has a easy install script (for ubuntu) that creates a few containers and starts a set amount of nodes (with port forwarding) per container?
I got my own script but it had some issues and I’m not sure if I’m in the right mindset to figure it out at the moment.
I use ANM from the Autonomi community GitHub page. It gets the job done, automatic starts and upgrade of nodes, you can set limits for resource usage. You only need to make sure you have good margins because it only adds or remove 1 node per minute, so it might not react fast enough if things go south.
I don’t have the link right now but could provide it later if anyone else don’t have it.
NTracking is a display dashboard for the nodes you can run with anm.
Anm works similarly to antctl in that it launches system processes. unlike antctl which does no monitoring, anm has timers and counters that you can set for different issues like memory/cpu/disk pressure.
on Ubuntu as a non root user with passwordless sudo, you run a bash command that will provide a text based menu for a few settings like reward wallet ID, max node count, starting port number and then creates a cluster configuration file which bootstraps a new cluster
then a cron that runs once a minute and if things look open for each of the limits, a node will be added. if upper limits including node count are reached, nodes are instead stopped or removed to get resources back in requested ranges.
I have it running (on Debian) and first “Start nodes” everything seems fine until it says it is about to show the logfile. I’m not sure what it should show other than those first two lines of text, but the screen remains blank below. So I hit Ctrl-C and it hasn’t done anything. No nodes started, no logfile, and no config saved so Start nodes always goes through the setup.
The logfile is empty, I saw it install things but haven’t checked specifically for antup, and yes the user can sudo.
Does the fact that running the “Start nodes” option always goes through the same setup mean it hasn’t written the config? I haven’t checked for that but remember something about it from the instructions.
What is supposed to happen in that final screen before I hit Ctrl-C?
…but I’m getting mail about the cron job which contains:
/usr/bin/anms.sh: line 537: /var/antctl/override: No such file or directory
/usr/bin/anms.sh: line 150: /home/anm/.local/share/anm-wallet: No such file or directory
sudo: ufw: command not found
rm: cannot remove '/var/antctl/block': No such file or directory
I’ve about 13 messages so far and the latest is just:
/usr/bin/anms.sh: line 537: /var/antctl/override: No such file or directory
I’ll see how it pans out but it is happily starting nodes so
from first message ufw is used to open and close ports so is best to install ufw
the anm-wallet message can be disregarded it was a file i used it for over riding the default wallet but is now redundant.
same for the over ride file it was for if something was to be over ridden from the default set up file.
the whole thing is a mess but it kind of works after a year of shoe horning extra things into it over beta a complete re write is needed to simplify it down to the basics.
which I am planing on starting when i get back to the boat and have some free time.
I am planing a rewrite on debian when i get to the boat.
most the stuff in anm is now redundant as adding or subtracting a node every minute is not responsive enough these days when we can run large node numbers it was made for the days of a few hundred nodes on a machine at best
i still use it but just use the node cap to hard set the number of nodes manualy.
if it would be possible to set number or % of nodes to remove if limits got hit then that would be good. Also if it updated every 10 second or a choosen number then that would also be good.