Fantom-foundation / go-opera

Opera blockchain protocol secured by the Lachesis consensus algorithm
https://fantom.foundation/
GNU Lesser General Public License v3.0
278 stars 282 forks source link

Fullnode sync progress continues slow #525

Closed howardchang7414 closed 11 months ago

howardchang7414 commented 11 months ago

We run fullnode on mainnet, use offical specification. From 5 days ago, my fullnode lag then others. we do all the suggestion in official page. How we solve it?

Specification cpu : 8core ram : 32G disk : 2T SSD OPTS="--nousb --datadir /var/lib/ftm --http --http.api=eth,net,web3,admin,debug,txpool --http.addr 0.0.0.0 --gcmode full --db.preset legacy-ldb --cache 15792 --maxpeers 201 --syncmode snap" version : 1.1.3-rc.5

Like pic below, green line is my fullnode, blue line is others fullnode.

image
howardchang7414 commented 11 months ago

you can use ldb-1, it can be faster

gcmode full: you can use "--gcmode light", or no gcmode. It can sync faster

--cache 28000 (as you have 32GB RAM).

(it will cap to 60% of available ram).

--maxpeers: dont specify too high value. It will require extra resources to handle peers. You can adjust it somewhere 120-170, and then see if it will sync better

what is IOPS of your disk? are you using NVMe SSD (best) or SSD?