Performance and policy tuning
This guide documents additional tuning options in:
docker-mysql.confdocker-bitcoind.confdocker-indexer.confdocker-node.conf
All commands are to be copy and pasted into the terminal of your Dojo, then press ENTER.
MySQL memory profile
Section titled “MySQL memory profile”Open MySQL config:
cd ~/dojo-app/docker/my-dojo/conf/nano docker-mysql.confDefault profile:
MYSQL_CONF_PROFILE=defaultLower-memory profile:
MYSQL_CONF_PROFILE=low_memThen apply changes:
cd ~/dojo-app/docker/my-dojo./dojo.sh upgradeBitcoind resource tuning
Section titled “Bitcoind resource tuning”Open bitcoind config:
cd ~/dojo-app/docker/my-dojo/conf/nano docker-bitcoind.confThese settings apply when BITCOIND_INSTALL=on.
Useful values to tune:
BITCOIND_DB_CACHE=1024BITCOIND_MAX_CONNECTIONS=16BITCOIND_MAX_MEMPOOL=1024BITCOIND_RPC_THREADS=16BITCOIND_RPC_WORK_QUEUE=128BITCOIND_MEMPOOL_EXPIRY=72BITCOIND_MIN_RELAY_TX_FEE=0.000001Then apply changes:
cd ~/dojo-app/docker/my-dojo./dojo.sh upgradeBitcoind behavior toggles
Section titled “Bitcoind behavior toggles”In docker-bitcoind.conf, you can also set:
BITCOIND_LISTEN_MODE=onBITCOIND_PERSIST_MEMPOOL=onBITCOIND_BAN_KNOTS=onNotes:
BITCOIND_LISTEN_MODE=onallows incoming P2P connections.BITCOIND_PERSIST_MEMPOOL=offclears mempool on restart.BITCOIND_BAN_KNOTS=onenables the bundled knots ban script.
Then apply changes:
cd ~/dojo-app/docker/my-dojo./dojo.sh upgradeIndexer expert tuning
Section titled “Indexer expert tuning”Open indexer config:
cd ~/dojo-app/docker/my-dojo/conf/nano docker-indexer.confThese settings apply when INDEXER_INSTALL=on.
Tune electrs batch behavior:
INDEXER_BATCH_SIZE=10INDEXER_TXID_LIMIT=501Then apply changes:
cd ~/dojo-app/docker/my-dojo./dojo.sh upgradeFee estimation policy
Section titled “Fee estimation policy”Open node config:
cd ~/dojo-app/docker/my-dojo/conf/nano docker-node.confChoose fee type used for bitcoind fee estimation:
NODE_FEE_TYPE=ECONOMICALor:
NODE_FEE_TYPE=CONSERVATIVEThen apply changes:
cd ~/dojo-app/docker/my-dojo./dojo.sh upgrade