Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node is lagging to sync #15

Closed
simpsoncarlos3 opened this issue Apr 11, 2023 · 4 comments
Closed

Node is lagging to sync #15

simpsoncarlos3 opened this issue Apr 11, 2023 · 4 comments
Assignees

Comments

@simpsoncarlos3
Copy link

System information

Erigon version: ./erigon --version
erigon version 2.40.0-dev

OS & Version: Windows/Linux/OSX
Linux

Commit hash:

Erigon Command (with flags/config):
erigon --chain=bsc --datadir=/srv/svc --metrics --metrics.addr=0.0.0.0 --metrics.port=6060 --private.api.addr=0.0.0.0:9090 --pprof --pprof.addr=0.0.0.0 --pprof.port=6061 --http.api=eth,erigon,web3,net,debug,trace,txpool,parity,bor --prune htrc --ws

Concensus Layer:

Concensus Layer Command (with flags/config):

Chain/Network: 56 Mainnet

Expected behaviour

it should sync to the currentblock

Actual behaviour

it is lagging a few blocks to sync

Steps to reproduce the behaviour

just download and sync

Backtrace

[backtrace]

Hello there,
My nodereal erigon build is lagging to sync for about 2 weeks now.
once in every few blocks sync it displays like this

[INFO] [04-11|03:35:14.497] [5/15 Bodies] No block bodies to write in this log period block number=27241889
[INFO] [04-11|03:35:34.498] [5/15 Bodies] No block bodies to write in this log period block number=27241889

and waits for a few seconds and catchup to the current block

and then it occurs again.

it is delaying

@blxdyx
Copy link
Collaborator

blxdyx commented Apr 11, 2023

You can try add this command:
--bodies.cache=214748364800 --batchSize=4096M --db.pagesize=16k
This will speed up the download and execute stage.

@simpsoncarlos3
Copy link
Author

tried above options but no difference. node is still lagging

@blxdyx
Copy link
Collaborator

blxdyx commented Apr 21, 2023

Try unwind some blocks and reboot again.

@calmbeing
Copy link

Suggest to use the latest mdbx snapshot for archive node: https://github.com/bnb-chain/bsc-snapshots

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants