bsc icon indicating copy to clipboard operation
bsc copied to clipboard

Wiper / snapshots get BSC archive node out of sync

Open koen84 opened this issue 5 years ago • 7 comments

System information

Geth version: 1.0.7 OS & Version: Ubuntu 18.04 LTS

This is a dedicated server : AMD EPYC 7502P 32-Core Processor, 128 GB RAM and mirror NVMe drives

Expected behaviour

BSC node prioritises keeping synced to chainhead

Actual behaviour

After a while, with wiper and snapshot aborting / resuming, it starts lagging, by a lot even : t=2021-04-13T00:00:08+0200 lvl=info msg="Imported new chain segment" blocks=8 txs=1405 mgas=152.871 elapsed=8.669s mgasps=17.633 number=6509190 hash=0xb6f1e8d7a52198f653f4d192231c43978357b681882fc5d162943ada3a0a0d7f age=2h33m10s dirty="0.00 B"

Steps to reproduce the behaviour

Stop bsc 1.0.6 Upgrade to bsc 1.0.7 Start bsc 1.0.7 with the existing datadir

(i've seen similar behaviour when having copied the data of 1.0.6 to a different machine and starting it there under 1.0.6, but i had assumed this might have been because of ssd rather than nvme and another node running in parallel)

koen84 avatar Apr 12 '21 23:04 koen84

I have the same behavior with fullnode (not archive).

System information Geth version: 1.0.7 
OS & Version: Amazon Linux 2 Machine: AWS EC2 c5.2xlarge - 8 CPU, 16GB, EBS 16k IOPS

Actual behaviour BSC sometimes stays out of sync for few hours. No errors/warns in bsc.log. Just new blocks appears slowly. While average metrics are still ok: CPU ~35%, MEM 45%, IOPS < 10% net.peerCount = 66

kamil-maciejczek avatar Apr 13 '21 09:04 kamil-maciejczek

It would also be interesting to know what triggers these processes ? And -if they can be disabled- what the potential consequences are ?

koen84 avatar Apr 13 '21 20:04 koen84

I'm having this also. Based on my understanding, this is for geth's snapsync which was introduced some versions 1.10. However, in 1.10, they have a flag of snapshot false which disables this snapshot sync.

I can't seem to find an option in BSC 1.0.7 to disable it though.

kutysam avatar Apr 15 '21 02:04 kutysam

I'm back to a 2h lag, while that snapshot aborting / resuming is running. This is really not okay.

koen84 avatar Apr 15 '21 19:04 koen84

The snapshots of the current implement usually break when the client been force killed. I am aware of this and will add an option to close the snapshot.

unclezoro avatar Apr 16 '21 02:04 unclezoro

We have responded to the question and will proceed to close the case as we didn't get any additional question after 3days. 
Please proceed to join our Discord channel for more discussion at https://discord.com/invite/YPDsUqcwR8

BinanceG11 avatar Dec 07 '21 10:12 BinanceG11

@BinanceG11 soooo "won't fix" one of the critical performance impacts ? Sure, there's a workaround to disable the snapshotting, but for those with full nodes, it'll mean they can't prune, unless they catchup in that snapshotting process, which will take a long time if it's been off.

koen84 avatar Dec 21 '21 23:12 koen84