Skip to content

Latest commit

 

History

History
48 lines (38 loc) · 1.68 KB

readme_decker.md

File metadata and controls

48 lines (38 loc) · 1.68 KB

Consider this file as developer's notes, nothing more. It should be removed from the repository at the release stage.

Useful links

System parameters

/usr/sbin/sysctl net.ipv4.tcp_tw_reuse
/usr/sbin/sysctl net.core.rmem_max
/usr/sbin/sysctl net.core.wmem_max
/usr/sbin/sysctl net.ipv4.tcp_max_syn_backlog
/usr/sbin/sysctl net.core.somaxconn

net.ipv4.tcp_tw_reuse = 2
net.core.rmem_max = 212992
net.core.wmem_max = 212992
net.ipv4.tcp_max_syn_backlog = 4096
net.core.somaxconn = 4096

sudo sysctl -w net.ipv4.tcp_tw_reuse=1
sudo sysctl -w net.core.rmem_max=16777216
sudo sysctl -w net.core.wmem_max=16777216
sudo sysctl -w net.ipv4.tcp_max_syn_backlog=10000
sudo sysctl -w net.core.somaxconn=10000

Train ZSTD

sudo apt install zstd
# install rosetta-cli
go install github.com/coinbase/rosetta-cli@latest
zstd-train.sh mainnet transaction /data
# or
$(go env GOPATH)/bin/rosetta-cli utils:train-zstd transaction /data/indexer assets/mainnet-transaction.zstd 150000 assets/mainnet-transaction.zstd