Created
September 6, 2023 11:51
-
-
Save novy4/3d21191b3fb99e24b4315d1e950b80c3 to your computer and use it in GitHub Desktop.
erigon.service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Erigon Polygon Service | |
After=network.target | |
StartLimitIntervalSec=60 | |
StartLimitBurst=3 | |
[Service] | |
Type=simple | |
Restart=on-failure | |
RestartSec=5 | |
TimeoutSec=900 | |
User=polygon | |
Nice=0 | |
LimitNOFILE=200000 | |
ExecStart=/home/polygon/erigon/build/bin/erigon \ | |
--chain="bor-mainnet" \ | |
--port=32303 \ | |
--datadir="/home/polygon/.local/share/erigon" \ | |
--ethash.dagdir="/home/polygon/.local/share/erigon/ethash" \ | |
--db.pagesize=16KB \ | |
--snapshots=false \ | |
--bor.heimdall="http://127.0.0.1:1317" \ | |
--torrent.download.rate=100mb \ | |
--torrent.port=40069 \ | |
--http \ | |
--http.addr="0.0.0.0" \ | |
--http.port="8545" \ | |
--http.compression \ | |
--http.vhosts="*" \ | |
--http.corsdomain="*" \ | |
--http.api="eth,debug,net,trace,web3,erigon,bor" \ | |
--ws --ws.compression \ | |
--rpc.gascap="300000000" \ | |
--metrics \ | |
--metrics.addr="0.0.0.0" \ | |
--metrics.port="6069" \ | |
--p2p.allowed-ports="32303,32304,32305,32206,32307" \ | |
--private.api.addr="127.0.0.1:9290" \ | |
--authrpc.port=28551 \ | |
--rpc.batch.limit=200000 \ | |
--rpc.returndata.limit=200000 \ | |
--db.size.limit=12TB \ | |
--db.pagesize=16kb | |
KillSignal=SIGHUP | |
CPUWeight=90 | |
IOWeight=90 | |
MemoryMax=90G | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment