Common procedures and operations for routers are described in this document.
Routers cannot be shut down anytime they desire. They must be shut down through a procedure. This is similar to ETH2 and other validator based systems where unexpected downtime can result in loss of funds. The procedure is as follows:
- Change the router configuration to set
- Restart the router with
docker-compose downand then
docker-compose up -d.
- Monitor logs with
docker logs --tail 100 --follow routeruntil you see a log containing 0 active transactions:
"transactions":0,"msg":"Got active transactions"}.
- Now it is safe to turn off the router with
- Update the
.envfile in the root directory of the docker-compose repo with the desired version. Unless you really know what you are doing, choose releases from the releases page. The version number is the semantic version beginning with
- Update the key in the
ROUTER_VERSIONwith the desired version.
docker-compose up -dto update the router version without any downtime.