alastria / alastria-node-besu

How to install a node in Alastria Red-B (Besu Technology) and tips to deploy and use it
Apache License 2.0
7 stars 6 forks source link

Automatic check4updates #8

Closed irzinfante closed 2 years ago

irzinfante commented 2 years ago

We use the checkForUpdates.sh scripts to compare the md5 checksum of the data files in alastria-node-besu-directory with those currently in the node. If any changes are detected the node is updated and restarted.

The script kills the java process, making the container to end. Therefore we configure the container to restart in case of failure to automatically bringing it up after the java process is terminated. That way the static-nodes.json and allowed-nodes.toml files are updated.

The cron job is scheduled like "m ", where m is the exact minute when the job is scheduled. This way we introduce some factor of randomness, so the nodes do not restart all at the same moment.

We also update the installation instructions to reflect the supported installation methods.