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

Unstable synchronization #10

Open
johnny-vu opened this issue Apr 30, 2024 · 2 comments
Open

Unstable synchronization #10

johnny-vu opened this issue Apr 30, 2024 · 2 comments

Comments

@johnny-vu
Copy link

I have problems with data synchronization, sometimes it stops for a few seconds then resumes. And the block always syncs slowly with high latency.

I am using: GCP 24 CPUs 24GB ram 1TB SSD, region us-central1-c & quicknode endpoint for L1

Here is the logs:

INFO [04-30|15:03:17.971] Chain head was updated                   number=2,839,791 hash=e5ea86..653453 root=5956e2..1013b2 elapsed=3.871777ms
INFO [04-30|15:03:20.335] Imported new potential chain segment     number=2,839,792 hash=fbd3ee..586f71 blocks=1       txs=19        mgas=2.872  elapsed=449.112ms  mgasps=6.394  snapdiffs=1.74MiB triedirty=36.80MiB
INFO [04-30|15:03:20.343] Chain head was updated                   number=2,839,792 hash=fbd3ee..586f71 root=89b8e7..06e452 elapsed=4.769188ms
INFO [04-30|15:03:25.407] Imported new potential chain segment     number=2,839,793 hash=455778..fd8c38 blocks=1       txs=22        mgas=8.478  elapsed=3.095s     mgasps=2.739  snapdiffs=1.74MiB triedirty=37.16MiB
INFO [04-30|15:03:25.418] Chain head was updated                   number=2,839,793 hash=455778..fd8c38 root=3ff8b8..5a2302 elapsed=6.164349ms
INFO [04-30|15:03:26.425] Imported new potential chain segment     number=2,839,794 hash=c20c77..4283a6 blocks=1       txs=14        mgas=3.737  elapsed=995.006ms  mgasps=3.756  snapdiffs=1.74MiB triedirty=37.46MiB
INFO [04-30|15:03:26.431] Chain head was updated                   number=2,839,794 hash=c20c77..4283a6 root=e962d6..bae71d elapsed=4.239748ms
INFO [04-30|15:03:26.476] Imported new potential chain segment     number=2,839,795 hash=d298fb..b41903 blocks=1       txs=6         mgas=0.625  elapsed=37.149ms   mgasps=16.834 snapdiffs=1.74MiB triedirty=37.42MiB
INFO [04-30|15:03:26.481] Chain head was updated                   number=2,839,795 hash=d298fb..b41903 root=f3923a..ba69bd elapsed=3.32476ms
INFO [04-30|15:03:28.399] Imported new potential chain segment     number=2,839,796 hash=ba8a32..0e258d blocks=1       txs=10        mgas=1.956  elapsed=211.774ms  mgasps=9.238  snapdiffs=1.74MiB triedirty=37.55MiB
INFO [04-30|15:03:28.405] Chain head was updated                   number=2,839,796 hash=ba8a32..0e258d root=a890c9..5930be elapsed=3.686709ms
INFO [04-30|15:03:29.925] Imported new potential chain segment     number=2,839,797 hash=8e264e..b1e173 blocks=1       txs=7         mgas=2.053  elapsed=119.556ms  mgasps=17.174 snapdiffs=1.74MiB triedirty=37.60MiB
INFO [04-30|15:03:29.931] Chain head was updated                   number=2,839,797 hash=8e264e..b1e173 root=1f96bb..cd76fc elapsed=4.121763ms
INFO [04-30|15:03:32.038] Imported new potential chain segment     number=2,839,798 hash=9718df..264f58 blocks=1       txs=8         mgas=2.147  elapsed=255.680ms  mgasps=8.398  snapdiffs=1.74MiB triedirty=37.74MiB
INFO [04-30|15:03:32.043] Chain head was updated                   number=2,839,798 hash=9718df..264f58 root=e40cba..99d8f8 elapsed=4.170602ms

Is there any way to make the synchronization more stable and faster?

@johnny-vu
Copy link
Author

And I realized that it actually stopped when I made a few rpc calls (like get block receipts, eth_calls)

@johnny-vu
Copy link
Author

Got this error: failed to read result part of response: stream reset

More logs here:

t=2024-04-30T18:32:59+0000 lvl=info msg="Sync progress"                          reason="unsafe payload from sequencer"        l2_finalized=0xcaa57fe66f2c7c6410af188b0ac8b9095bc69be978591fe8bd4e6f8a06f9b2c5:2845619 l2_safe=0x566a0c1be17072dd86797bdd1edcb6ec0b71fc5114d4d7b02a07c6147ef68a78:2846064 l2_unsafe=0x7963ff550e31fd16a9e71f62be2dce9edb4502e85fca707a884b651b3d5157da:2846082 l2_engineSyncTarget=0x7963ff550e31fd16a9e71f62be2dce9edb4502e85fca707a884b651b3d5157da:2846082 l2_time=1,714,501,979 l1_derived=0xcc326b000263ed08cd56cdd435be548292bd9a0de505cc2e4ff7fe9db6b5431e:19769937
t=2024-04-30T18:33:00+0000 lvl=info msg="attempting connection"                  peer=16Uiu2HAmJH7w8VYw7Xvpm6nE7wuuW6Z97h8g1dAiZjkBjkNDBgkJ
t=2024-04-30T18:33:00+0000 lvl=info msg="attempting connection"                  peer=16Uiu2HAm1c3djDgJDctn4qBFq3piG4mkrQEXQtwW4Kftrr11MbA8
t=2024-04-30T18:33:00+0000 lvl=info msg="attempting connection"                  peer=16Uiu2HAmEZqf9bXaj7Mu2oRYxiLrcJs9LBHwf7vpJQ4E4mWvUfJp
t=2024-04-30T18:33:00+0000 lvl=info msg="connected to peer"                      peer=16Uiu2HAmEZqf9bXaj7Mu2oRYxiLrcJs9LBHwf7vpJQ4E4mWvUfJp addr=/ip4/91.237.140.20/tcp/9222
t=2024-04-30T18:33:00+0000 lvl=info msg="Starting P2P sync client event loop"    peer=16Uiu2HAmEZqf9bXaj7Mu2oRYxiLrcJs9LBHwf7vpJQ4E4mWvUfJp
t=2024-04-30T18:33:00+0000 lvl=info msg="attempting connection"                  peer=16Uiu2HAmES7Q2ykGhCQAbsRvvJ9UiqkNCCmUZXDVLzaneFVQGak7
t=2024-04-30T18:33:00+0000 lvl=info msg="attempting connection"                  peer=16Uiu2HAm4H9nTgMftfsrr91Qs8VejyJjBPTf6rvbDKTobt8MWCsn
t=2024-04-30T18:33:00+0000 lvl=info msg="connected to peer"                      peer=16Uiu2HAm4H9nTgMftfsrr91Qs8VejyJjBPTf6rvbDKTobt8MWCsn addr=/ip4/3.98.205.228/tcp/30305
t=2024-04-30T18:33:00+0000 lvl=info msg="Starting P2P sync client event loop"    peer=16Uiu2HAm4H9nTgMftfsrr91Qs8VejyJjBPTf6rvbDKTobt8MWCsn
t=2024-04-30T18:33:00+0000 lvl=info msg="attempting connection"                  peer=16Uiu2HAky4QBsmUbcXX9UotipkwRtqb6bNTogg1YBL8QY6fXcXM3
t=2024-04-30T18:33:01+0000 lvl=info msg="attempting connection"                  peer=16Uiu2HAm65eaqQFrwmkEM3dGk8njxcvXimpdMS7m824DWqiUs8Ru
t=2024-04-30T18:33:01+0000 lvl=info msg="attempting connection"                  peer=16Uiu2HAmUT3JYrHJg3XvhRDmindmPQDhUZsEsCFyTqj3UzoZsPJr
t=2024-04-30T18:33:04+0000 lvl=info msg="Received signed execution payload from p2p" id=0x07032f6f0a3aefbb3eec014d35549291f0d64fafbca667fb5acf1dd5483c6ae9:2846084 peer=16Uiu2HAmEZqf9bXaj7Mu2oRYxiLrcJs9LBHwf7vpJQ4E4mWvUfJp
t=2024-04-30T18:33:04+0000 lvl=info msg="Optimistically queueing unsafe L2 execution payload" id=0x07032f6f0a3aefbb3eec014d35549291f0d64fafbca667fb5acf1dd5483c6ae9:2846084
t=2024-04-30T18:33:04+0000 lvl=info msg="Advancing bq origin"                    origin=0x7837809f28d354c55f913f437617ccdbda40c993cb50c8fa454f11399fbbf8af:19769938 originBehind=false
t=2024-04-30T18:33:06+0000 lvl=info msg="attempting connection"                  peer=16Uiu2HAkyvK74Ybh7Ffi74pA6ZQrVBmQZ12JLy1cQD9QfeixC12y
t=2024-04-30T18:33:06+0000 lvl=info msg="Received signed execution payload from p2p" id=0x1f231dee358ee68d8c7c06775f2b34eba313af7b907eb7248b6c97c2a2c73391:2846085 peer=16Uiu2HAkzdstPZTfMQX7F6HuVz17XmTPDBM2SZtqqyr8sNWjQ791
t=2024-04-30T18:33:06+0000 lvl=info msg="Optimistically queueing unsafe L2 execution payload" id=0x1f231dee358ee68d8c7c06775f2b34eba313af7b907eb7248b6c97c2a2c73391:2846085
t=2024-04-30T18:33:07+0000 lvl=info msg="Received signed execution payload from p2p" id=0xb33a1a2cf6ab731461169619c11c3dd050de72e2fb5f651b90a5cb115f9740db:2846086 peer=16Uiu2HAkzdstPZTfMQX7F6HuVz17XmTPDBM2SZtqqyr8sNWjQ791
t=2024-04-30T18:33:07+0000 lvl=info msg="Optimistically queueing unsafe L2 execution payload" id=0xb33a1a2cf6ab731461169619c11c3dd050de72e2fb5f651b90a5cb115f9740db:2846086
t=2024-04-30T18:33:07+0000 lvl=warn msg="failed p2p sync request"                peer=16Uiu2HAkzdstPZTfMQX7F6HuVz17XmTPDBM2SZtqqyr8sNWjQ791 num=2,846,083 err="failed to read result part of response: stream reset"
t=2024-04-30T18:33:08+0000 lvl=info msg="attempting connection"                  peer=16Uiu2HAmK1CNUGcM1ikwxY4ymLaL7uS5BDHPVBPppthiWtGBYjtf
t=2024-04-30T18:33:09+0000 lvl=info msg="attempting connection"                  peer=16Uiu2HAm5UZjsg1XMGo4PgW6xF8yrVBKDxYkwNsSC54cttmU7hxJ
t=2024-04-30T18:33:10+0000 lvl=info msg="Received signed execution payload from p2p" id=0x0c9c4d19a617166ffc4f344454826b3490efbee99451bfd27feac28b783944f6:2846087 peer=16Uiu2HAmEZqf9bXaj7Mu2oRYxiLrcJs9LBHwf7vpJQ4E4mWvUfJp

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

No branches or pull requests

1 participant