Deployment
Introduce system management configs。
Hardware
Minimum
4core
8g
ssd iops>5k
Recommended
8core
16g
ssd iops>5k
Network & Port
External IP Address
Port TCP/UDP 32668
Automatic Restarts and Monitoring
Install supervisor on ubuntu
$ apt-get install supervisor
Finally we have to add a configuration file to supervisor to let it know that it should run geth, Create /etc/supervisor/conf.d/geth.conf and fill it with:
[program:geth]
command=/path/to/koisan-chain/build/bin/geth --fast --http --http.addr 127.0.0.1 --http.port 8545 --http.corsdomain * --http.api admin,db,eth,debug,miner,net,shh,txpool,personal,web3
autostart=true
autorestart=true
stderr_logfile=/var/log/supervisor/koisan.err.log
stdout_logfile=/var/log/supervisor/koisan.out.log
Now just restart supervisor to startup geth:
$ supervisorctl reload
Boom! You can now attach a console to your running geth instance by typing geth attach. You can then query it using the standard commands.
Last updated