We are going to use what's known as a SHIP node. This node will expose the state history web socket to monitor on chain activity and it will not produce blocks.
For nodeos's documentation head over to b1's dev docs
If you prefer Kubernetes, checkout our dapp dsp k8s repo:
Minimum requirements for nodeos:
7GB of RAM -
5GB of DISK -
Though you will want more than this to run a testnet nodeos instance, and significantly more to handle the EOS mainnet or other mainnets.
Chain resource analysis for Mainnet/Kylin:
This may also provide some context for resource requirements:
Prerequisites
jq
wget
curl
Get EOSIO binary
# nodeos versions 1.8+ and 2.0+ are supported
VERSION=3.1.2
URL="https://s3.eu-central-1.wasabisys.com/eosnodetools/snapshots/snap_2019-12-15-13-00.tar.gz"
P2P_FILE=https://eosnodes.privex.io/?config=1
GENESIS=https://raw.githubusercontent.com/CryptoLions/EOS-MainNet/master/genesis.json
CHAIN_STATE_SIZE=16384
cd $HOME/.local/share/eosio/nodeos/data
wget $URL -O - | tar xvz
SNAPFILE=`ls snapshots/*.bin | head -n 1 | xargs -n 1 basename`
mv snapshots/$SNAPFILE snapshots/boot.bin
Configuration
Please note that it is crucial that all of the following configuration flags are set. If any are missing, it will likely cause issues with running the DSP software.
If you would like to run Firehose be sure to comment in the flag below
The state history plugin provides the entire current state of the blockchain through a web socket connection which is not ideal as the DSP does not care about the overwhelming majority of the information it is being fed.
If your node isn't syncing, comment out the other peers and just put p2p-peer-address = kylin.seed.eosnation.io:9876 assuming a kylin install
Please note the following about some config.ini settings:
it is recommended to whitelist all staked contracts for subjective CPU billing so that assertion errors from services do not consumer CPU time, add for each contract
disable-subjective-account-billing=jouleappcont
or add disable-subjective-billing = true to disable all subjective billing
Nodeos is now only available for Ubuntu, if you want to run docker you can build the Dockerfile or use
If you would like an up to date snapshot, please visit: and find the latest snapshot for the chain you are using. You will want to unpack the file and store it here with the following file name: $HOME/.local/share/eosio/nodeos/data/snapshots/boot.bin.
You can find more Jungle peers here:
Firehose is a service provided through the deep mind option that enables the DSP to listen for very specific information from the blockchain. This service also requires running a few more services detailed in the section.
read-mode = head (default is: read-more = speculative and does not need to be specified in the config.ini) must not be used to prevent duplicate xwarmup actions |
if supporting the Hyperion API , must add the chain-state-history = true, note this will significantly increase storage requirements
regarding http-threads, net-threads, chain-threads and eos-vm-oc-compile-threads read Kevin's thoughts here
You will know that the node is fully synced once you see blocks being produced every half second at the head block. You can match the block number you are seeing in the nodeos logs to what is indicating as the head block on the chain you are syncing (mainnet, Kylin etc). Once you have confirmed that it is synced press CTRL+C once, wait for the node to shutdown and proceed to the next step.
If you would like to run Firehose, continue to section.