...
To restart the node operator should place config file that corresponds this particular node back and use the following command. Substitute rchain/rnode:v0.9.2122
with required release version. After node is started - remove config file again.
Code Block |
---|
docker stop rnode && docker rm rnode # Copy config file # e.g. scp ~/node.conf root@node0.root-shard.mainnet.rchain.coop:/var/lib/rnode/rnode.conf docker run -d --name=rnode --network=host -v /var/lib/rnode:/var/lib/rnode \ -v /var/lib/rnode-diag/current:/var/lib/rnode-diag/current \ -v /var/lib/rnode-static:/var/lib/rnode-static:ro rchain/rnode:v0.9.2122 \ -XX:+HeapDumpOnOutOfMemoryError \ -XX:HeapDumpPath=/var/lib/rnode-diag/current/heapdump_OOM.hprof \ -XX:+ExitOnOutOfMemoryError -XX:ErrorFile=/var/lib/rnode-diag/current/hs_err.log \ -XX:MaxJavaStackTraceDepth=100000 -Dlogback.configurationFile=/var/lib/rnode-static/logback.xml \ -c /var/lib/rnode/rnode.conf '-J-Xms26g' '-J-Xmx26g' \ run --network mainnet --bootstrap 'rnode://2bf7856958a3b36030381d5f0465147a2a0a1547@node0.root-shard.mainnet.rchain.coop?protocol=40400&discovery=40404' # Delete config file # ssh root@node0.root-shard.mainnet.rchain.coop -c "rm /var/lib/rnode/rnode.conf" |
...