Closed andreclaro closed 4 months ago
Let me know if you need more details, logs, etc. I will have the node running for more one or two days and then I will turn it down.
Using the latest release of op-node: https://github.com/ethereum-optimism/optimism/releases/tag/v1.7.7
Hi @andreclaro, it seems like the erigon node is building each block from op-node's ForkChoiceUpdate signal, which can slow down the sync speed. It might catch up to speed after a while, how's the syncing speed now?
Also, I believe you mis-linked the erigon snapshot in the issue description (it's linked to base-mainnet when it should be op-mainnet). Anyway, we also have more recent version of the erigon snapshot here, could you start from this snapshot as it would require little catchup to the chain head? https://datadirs.testinprod.io/op-mainnet-db-122131967.zst
Using the latest release of op-node: https://github.com/ethereum-optimism/optimism/releases/tag/v1.7.7
" it seems like the erigon node is building each block from op-node's ForkChoiceUpdate signal" ... What else could I do to speed up the sync?
The current speed is around 0.6 blocks per second ( (121707178-121707138)/60 )
[2024-07-02 15:37:27] Latest Block Number: 121707138
[2024-07-02 15:38:27] Latest Block Number: 121707178
Anyway, I will try using the latest snapshot (https://datadirs.testinprod.io/op-mainnet-db-122131967.zst), but it will be nice to understand what's wrong and/or how to improve the sync speed...
@mininny, using the latest snapshot is also syncing at a very very slow pace:
[2024-07-02 18:50:42] Safe L2 Number: 122138921
[2024-07-02 18:50:53] Safe L2 Number: 122138921
[2024-07-02 18:51:03] Safe L2 Number: 122138921
[2024-07-02 18:51:13] Safe L2 Number: 122138921
[2024-07-02 18:51:23] Safe L2 Number: 122139032
[2024-07-02 18:51:34] Safe L2 Number: 122139032
[2024-07-02 18:51:46] Safe L2 Number: 122139032
[2024-07-02 18:51:58] Safe L2 Number: 122139032
[2024-07-02 18:52:09] Safe L2 Number: 122139032
[2024-07-02 18:52:20] Safe L2 Number: 122139032
[2024-07-02 18:52:31] Safe L2 Number: 122139032
[2024-07-02 18:52:45] Safe L2 Number: 122139032
[2024-07-02 18:52:57] Safe L2 Number: 122139032
[2024-07-02 18:53:07] Safe L2 Number: 122139032
[2024-07-02 18:53:17] Safe L2 Number: 122139141
[2024-07-02 18:53:27] Safe L2 Number: 122139141
[2024-07-02 18:53:38] Safe L2 Number: 122139141
op-erigon:
Jul 02 18:54:24 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:24.451] RPC Daemon notified of new headers from=122139208 to=122139209 amount=1 hash=0x6de7423fe1376a6800b4a273ae90904ab634d03f4027b86973c62c8fedc158f3 header sending=22.05µs log sending=360ns
Jul 02 18:54:24 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:24.451] head updated hash=0x6de7423fe1376a6800b4a273ae90904ab634d03f4027b86973c62c8fedc158f3 number=122139209
Jul 02 18:54:24 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:24.459] [ForkChoiceUpdated] BlockBuilder added payload=7243
Jul 02 18:54:24 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:24.459] Building block...
Jul 02 18:54:24 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:24.460] Received GetPayloadV3 payloadId=7243
Jul 02 18:54:24 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:24.463] stage running - force txs, with params txs=9 notxpool=true
Jul 02 18:54:24 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:24.463] [2/7 MiningCreateBlock] Start mine block=122139210 baseFee=59312343 gasLimit=30000000
Jul 02 18:54:25 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:25.476] Built block hash=0x03acdf17c57510d65f6f04c8a3cb6010dcf288b016725712c018452e26ee8b90 height=122139210 txs=9 gas used %=91.838 time=1.016951414s
Jul 02 18:54:25 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:25.487] [NewPayload] Handling new payload height=122139210 hash=0x03acdf17c57510d65f6f04c8a3cb6010dcf288b016725712c018452e26ee8b90
Jul 02 18:54:25 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:25.905] [updateForkchoice] Fork choice update: flushing in-memory state (built by previous newPayload)
Jul 02 18:54:27 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:27.472] RPC Daemon notified of new headers from=122139209 to=122139210 amount=1 hash=0x03acdf17c57510d65f6f04c8a3cb6010dcf288b016725712c018452e26ee8b90 header sending=21.91µs log sending=380ns
Jul 02 18:54:27 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:27.472] head updated hash=0x03acdf17c57510d65f6f04c8a3cb6010dcf288b016725712c018452e26ee8b90 number=122139210
Jul 02 18:54:27 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:27.482] [ForkChoiceUpdated] BlockBuilder added payload=7244
Jul 02 18:54:27 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:27.482] Building block...
Jul 02 18:54:27 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:27.482] Received GetPayloadV3 payloadId=7244
Jul 02 18:54:27 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:27.486] stage running - force txs, with params txs=11 notxpool=true
Jul 02 18:54:27 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:27.486] [2/7 MiningCreateBlock] Start mine block=122139211 baseFee=60382397 gasLimit=30000000
Jul 02 18:54:27 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:27.669] Built block hash=0xb1f6513f7fb24682b1835f05eaeb27f8650cc7252107c1eb4bf28032e90269f9 height=122139211 txs=11 gas used %=5.904 time=186.891451ms
Jul 02 18:54:27 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:27.674] [NewPayload] Handling new payload height=122139211 hash=0xb1f6513f7fb24682b1835f05eaeb27f8650cc7252107c1eb4bf28032e90269f9
Jul 02 18:54:27 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:27.703] [updateForkchoice] Fork choice update: flushing in-memory state (built by previous newPayload)
Jul 02 18:54:28 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:28.535] RPC Daemon notified of new headers from=122139210 to=122139211 amount=1 hash=0xb1f6513f7fb24682b1835f05eaeb27f8650cc7252107c1eb4bf28032e90269f9 header sending=28.08µs log sending=390ns
Jul 02 18:54:28 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:28.535] head updated hash=0xb1f6513f7fb24682b1835f05eaeb27f8650cc7252107c1eb4bf28032e90269f9 number=122139211
Jul 02 18:54:28 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:28.542] [ForkChoiceUpdated] BlockBuilder added payload=7245
Jul 02 18:54:28 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:28.542] Building block...
Jul 02 18:54:28 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:28.542] Received GetPayloadV3 payloadId=7245
Jul 02 18:54:28 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:28.545] stage running - force txs, with params txs=4 notxpool=true
Jul 02 18:54:28 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:28.545] [2/7 MiningCreateBlock] Start mine block=122139212 baseFee=60226427 gasLimit=30000000
Jul 02 18:54:28 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:28.575] Built block hash=0xa91a8eb3fd84fc199dbadfe87588433dd34c8454e1fea9a0676aa9417c9676d0 height=122139212 txs=4 gas used %=1.287 time=33.023082ms
Jul 02 18:54:28 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:28.578] [NewPayload] Handling new payload height=122139212 hash=0xa91a8eb3fd84fc199dbadfe87588433dd34c8454e1fea9a0676aa9417c9676d0
Jul 02 18:54:28 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:28.601] [updateForkchoice] Fork choice update: flushing in-memory state (built by previous newPayload)
Jul 02 18:54:28 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:28.827] RPC Daemon notified of new headers from=122139211 to=122139212 amount=1 hash=0xa91a8eb3fd84fc199dbadfe87588433dd34c8454e1fea9a0676aa9417c9676d0 header sending=24.48µs log sending=390ns
Jul 02 18:54:28 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:28.827] head updated hash=0xa91a8eb3fd84fc199dbadfe87588433dd34c8454e1fea9a0676aa9417c9676d0 number=122139212
Jul 02 18:54:28 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:28.833] [ForkChoiceUpdated] BlockBuilder added payload=7246
Jul 02 18:54:28 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:28.833] Building block...
Jul 02 18:54:28 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:28.833] Received GetPayloadV3 payloadId=7246
Jul 02 18:54:28 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:28.836] stage running - force txs, with params txs=9 notxpool=true
Jul 02 18:54:28 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:28.836] [2/7 MiningCreateBlock] Start mine block=122139213 baseFee=60004124 gasLimit=30000000
Jul 02 18:54:28 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:28.936] Built block hash=0x5a45dd65e6341f54f1484cabc72a57618824df9d52cb809824fe5342f3865ca8 height=122139213 txs=9 gas used %=7.030 time=103.283614ms
Jul 02 18:54:28 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:28.940] [NewPayload] Handling new payload height=122139213 hash=0x5a45dd65e6341f54f1484cabc72a57618824df9d52cb809824fe5342f3865ca8
Jul 02 18:54:28 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:28.974] [updateForkchoice] Fork choice update: flushing in-memory state (built by previous newPayload)
Jul 02 18:54:29 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:29.471] RPC Daemon notified of new headers from=122139212 to=122139213 amount=1 hash=0x5a45dd65e6341f54f1484cabc72a57618824df9d52cb809824fe5342f3865ca8 header sending=86.981µs log sending=380ns
Jul 02 18:54:29 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:29.472] head updated hash=0x5a45dd65e6341f54f1484cabc72a57618824df9d52cb809824fe5342f3865ca8 number=122139213
Jul 02 18:54:29 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:29.483] [ForkChoiceUpdated] BlockBuilder added payload=7247
Jul 02 18:54:29 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:29.483] Building block...
Jul 02 18:54:29 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:29.484] Received GetPayloadV3 payloadId=7247
Jul 02 18:54:29 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:29.487] stage running - force txs, with params txs=15 notxpool=true
Jul 02 18:54:29 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:29.487] [2/7 MiningCreateBlock] Start mine block=122139214 baseFee=59865354 gasLimit=30000000
Jul 02 18:54:30 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:30.498] Built block hash=0xc28882b34616b0bd894dc079dd58b9db8ac18a448939fc99090db63fd270069a height=122139214 txs=15 gas used %=98.442 time=1.01454756s
Jul 02 18:54:30 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:30.508] [NewPayload] Handling new payload height=122139214 hash=0xc28882b34616b0bd894dc079dd58b9db8ac18a448939fc99090db63fd270069a
Jul 02 18:54:30 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:30.927] [updateForkchoice] Fork choice update: flushing in-memory state (built by previous newPayload)
Jul 02 18:54:32 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:32.437] RPC Daemon notified of new headers from=122139213 to=122139214 amount=1 hash=0xc28882b34616b0bd894dc079dd58b9db8ac18a448939fc99090db63fd270069a header sending=24.83µs log sending=470ns
Jul 02 18:54:32 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:32.437] head updated hash=0xc28882b34616b0bd894dc079dd58b9db8ac18a448939fc99090db63fd270069a number=122139214
Jul 02 18:54:32 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:32.447] [ForkChoiceUpdated] BlockBuilder added payload=7248
Jul 02 18:54:32 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:32.447] Building block...
Jul 02 18:54:32 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:32.447] Received GetPayloadV3 payloadId=7248
Jul 02 18:54:32 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:32.450] stage running - force txs, with params txs=7 notxpool=true
Jul 02 18:54:32 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:32.450] [2/7 MiningCreateBlock] Start mine block=122139215 baseFee=61040282 gasLimit=30000000
Jul 02 18:54:32 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:32.659] Built block hash=0x10c78a17e2225ab2c9be9d6fc5a78f2613defbd2fb7dac6ea9c59e56c5d2efa8 height=122139215 txs=7 gas used %=5.425 time=212.024533ms
Jul 02 18:54:32 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:32.664] [NewPayload] Handling new payload height=122139215 hash=0x10c78a17e2225ab2c9be9d6fc5a78f2613defbd2fb7dac6ea9c59e56c5d2efa8
Jul 02 18:54:32 m-optimism-03 erigon[315234]: [INFO] [07-02|18:54:32.694] [updateForkchoice] Fork choice update: flushing in-memory state (built by previous newPayload)
op-node:
Jul 02 18:54:02 m-optimism-03 op-node[315258]: t=2024-07-02T18:54:02+0000 lvl=info msg="generated attributes in payload queue" txs=9 timestamp=1719877145
Jul 02 18:54:02 m-optimism-03 op-node[315258]: t=2024-07-02T18:54:02+0000 lvl=info msg="Optimistically queueing unsafe L2 execution payload" id=0x51cd8e3c66365e0685e0d1a63c3ebbb487e1b82abd50f1b1e46770970fcb917e:122173832
Jul 02 18:54:03 m-optimism-03 op-node[315258]: t=2024-07-02T18:54:03+0000 lvl=info msg="inserted block" hash=0x3b4ec4e164333d151673b1dda31fbc70f6a0cde44753f342b1893a4593b2d849 number=122139184 state_root=0xa998cdfb6d12539523c7b3dbb697f90a794fa2eaa5d83216a80ed689e36d9864 timestamp=1719877145 parent=0x860cc01f42cac3e928708b1eb27f340c15e4cfe2367df5349811f1e2dd9a25b7 prev_randao=0x28bce79408966c315f5eb38f659a197e6f672974272ed337eba2e56053ab6d53 fee_recipient=0x4200000000000000000000000000000000000011 txs=9 update_safe=false
Jul 02 18:54:03 m-optimism-03 op-node[315258]: t=2024-07-02T18:54:03+0000 lvl=info msg="generated attributes in payload queue" txs=5 timestamp=1719877147
Jul 02 18:54:03 m-optimism-03 op-node[315258]: t=2024-07-02T18:54:03+0000 lvl=info msg="Received signed execution payload from p2p" id=0x9d87f8180a2d351a4546db984f697c30178e7c2f5e914c6db1ff094e36c9e256:122173833 peer=16Uiu2HAm7dhyfPKohuLyiZ2nUopuNUUdZhJSwxHymwbrGkuuJdZ7
Jul 02 18:54:03 m-optimism-03 op-node[315258]: t=2024-07-02T18:54:03+0000 lvl=info msg="inserted block" hash=0xd5feeb2cf6543858efa4396f3d45de6b800ba96b94326cb76c628c511c305dc7 number=122139185 state_root=0x10efc3cd623364e9f7c45f7c6a48da32d2d96cd472682826378858527ad17874 timestamp=1719877147 parent=0x3b4ec4e164333d151673b1dda31fbc70f6a0cde44753f342b1893a4593b2d849 prev_randao=0x28bce79408966c315f5eb38f659a197e6f672974272ed337eba2e56053ab6d53 fee_recipient=0x4200000000000000000000000000000000000011 txs=5 update_safe=false
Jul 02 18:54:03 m-optimism-03 op-node[315258]: t=2024-07-02T18:54:03+0000 lvl=info msg="generated attributes in payload queue" txs=5 timestamp=1719877149
Jul 02 18:54:03 m-optimism-03 op-node[315258]: t=2024-07-02T18:54:03+0000 lvl=info msg="Optimistically queueing unsafe L2 execution payload" id=0x9d87f8180a2d351a4546db984f697c30178e7c2f5e914c6db1ff094e36c9e256:122173833
Jul 02 18:54:04 m-optimism-03 op-node[315258]: t=2024-07-02T18:54:04+0000 lvl=info msg="inserted block" hash=0xa3453cf2f9d19764e060c572460a1085f7bb1d9d7d15b0814f69da92af23bf40 number=122139186 state_root=0x5edce1374d2d6b9e12a5ff6826e80864ffde268c2cfde7bd20d380c106b61cc6 timestamp=1719877149 parent=0xd5feeb2cf6543858efa4396f3d45de6b800ba96b94326cb76c628c511c305dc7 prev_randao=0x28bce79408966c315f5eb38f659a197e6f672974272ed337eba2e56053ab6d53 fee_recipient=0x4200000000000000000000000000000000000011 txs=5 update_safe=false
Jul 02 18:54:04 m-optimism-03 op-node[315258]: t=2024-07-02T18:54:04+0000 lvl=info msg="generated attributes in payload queue" txs=8 timestamp=1719877151
Jul 02 18:54:05 m-optimism-03 op-node[315258]: t=2024-07-02T18:54:05+0000 lvl=info msg="Received signed execution payload from p2p" id=0x74344fb69b720057a7fd5c1cade782c3e5633360b94fc51cfc406f31560edc60:122173834 peer=16Uiu2HAm7dhyfPKohuLyiZ2nUopuNUUdZhJSwxHymwbrGkuuJdZ7
Jul 02 18:54:05 m-optimism-03 op-node[315258]: t=2024-07-02T18:54:05+0000 lvl=info msg="inserted block" hash=0x81c577cd50bf6a17788d92ea8d75e867c9c95493a3773d91ae96decee7ef1cc2 number=122139187 state_root=0x90a31d75025d9af7341e4d3ad8c7a5392a6d4b58fb416b8ce31c67e8a03ecbcc timestamp=1719877151 parent=0xa3453cf2f9d19764e060c572460a1085f7bb1d9d7d15b0814f69da92af23bf40 prev_randao=0x28bce79408966c315f5eb38f659a197e6f672974272ed337eba2e56053ab6d53 fee_recipient=0x4200000000000000000000000000000000000011 txs=8 update_safe=false
Jul 02 18:54:05 m-optimism-03 op-node[315258]: t=2024-07-02T18:54:05+0000 lvl=info msg="generated attributes in payload queue" txs=6 timestamp=1719877153
Jul 02 18:54:06 m-optimism-03 op-node[315258]: t=2024-07-02T18:54:06+0000 lvl=info msg="inserted block" hash=0x45b47c2e8305462a1705f0b2e37ba36af77cec65d52175fc657c8e6bd78c9b33 number=122139188 state_root=0xf13b1356873f3612595b3ccb0157bea8707ee3e3c4c5977a4bea89fe597b8fe1 timestamp=1719877153 parent=0x81c577cd50bf6a17788d92ea8d75e867c9c95493a3773d91ae96decee7ef1cc2 prev_randao=0x28bce79408966c315f5eb38f659a197e6f672974272ed337eba2e56053ab6d53 fee_recipient=0x4200000000000000000000000000000000000011 txs=6 update_safe=false
Jul 02 18:54:06 m-optimism-03 op-node[315258]: t=2024-07-02T18:54:06+0000 lvl=info msg="generated attributes in payload queue" txs=3 timestamp=1719877155
Jul 02 18:54:07 m-optimism-03 op-node[315258]: t=2024-07-02T18:54:07+0000 lvl=info msg="inserted block" hash=0xa054606e6b69e684227bfc1580784c351a99b62d0734b0df51c57295ee786f6f number=122139189 state_root=0xde39dfcc0179809ee9c4d0ebe4a9cd459c37f1008b1c11e1c41d85e8f2ee65c0 timestamp=1719877155 parent=0x45b47c2e8305462a1705f0b2e37ba36af77cec65d52175fc657c8e6bd78c9b33 prev_randao=0x138df92408c66b6b8b493030d6c3c3e294b048edecd31e0842377c0c609822be fee_recipient=0x4200000000000000000000000000000000000011 txs=3 update_safe=false
Jul 02 18:54:07 m-optimism-03 op-node[315258]: t=2024-07-02T18:54:07+0000 lvl=info msg="generated attributes in payload queue" txs=10 timestamp=1719877157
Jul 02 18:54:07 m-optimism-03 op-node[315258]: t=2024-07-02T18:54:07+0000 lvl=info msg="Optimistically queueing unsafe L2 execution payload" id=0x74344fb69b720057a7fd5c1cade782c3e5633360b94fc51cfc406f31560edc60:122173834
Jul 02 18:54:07 m-optimism-03 op-node[315258]: t=2024-07-02T18:54:07+0000 lvl=info msg="Received signed execution payload from p2p" id=0xa8d81fb3a6309863b2f7fc5ab8cb14fdadefc801fb20dace29e2b20515c47946:122173835 peer=16Uiu2HAmDKnDQXmXFp5P6XoQY4dERM92B7By7U1KEBgfAx8GVbWQ
Jul 02 18:54:08 m-optimism-03 op-node[315258]: t=2024-07-02T18:54:08+0000 lvl=info msg="inserted block" hash=0x840d859dd232406d3a80b705689f29cf9e618b63c06b419b1ec154ab65d317d4 number=122139190 state_root=0x00635c39583125429f552980c00832c3d291695f2345af67a5a8a921e383585f timestamp=1719877157 parent=0xa054606e6b69e684227bfc1580784c351a99b62d0734b0df51c57295ee786f6f prev_randao=0x138df92408c66b6b8b493030d6c3c3e294b048edecd31e0842377c0c609822be fee_recipient=0x4200000000000000000000000000000000000011 txs=10 update_safe=false
Jul 02 18:54:08 m-optimism-03 op-node[315258]: t=2024-07-02T18:54:08+0000 lvl=info msg="Optimistically queueing unsafe L2 execution payload" id=0xa8d81fb3a6309863b2f7fc5ab8cb14fdadefc801fb20dace29e2b20515c47946:122173835
Jul 02 18:54:08 m-optimism-03 op-node[315258]: t=2024-07-02T18:54:08+0000 lvl=info msg="generated attributes in payload queue" txs=7 timestamp=1719877159
Jul 02 18:54:09 m-optimism-03 op-node[315258]: t=2024-07-02T18:54:09+0000 lvl=info msg="Received signed execution payload from p2p" id=0xd6097f9fd537ec5a0ed842bc960249f6f78a7bb2a255a6bdb60970c152602e65:122173836 peer=16Uiu2HAkxfLbtojJACcSDKzdG6QHd8q4TG9MtNCwEhqaneGTCvDw
Jul 02 18:54:09 m-optimism-03 op-node[315258]: t=2024-07-02T18:54:09+0000 lvl=info msg="inserted block" hash=0x1a3ba146dc7f6d2f9337450af6626fda487f91153f24c49054b4e15003fbf941 number=122139191 state_root=0xefe03d627da1e4d1faa4888db989ee1aa8078add112973d892b0bf4d6621b2c4 timestamp=1719877159 parent=0x840d859dd232406d3a80b705689f29cf9e618b63c06b419b1ec154ab65d317d4 prev_randao=0x138df92408c66b6b8b493030d6c3c3e294b048edecd31e0842377c0c609822be fee_recipient=0x4200000000000000000000000000000000000011 txs=7 update_safe=false
Jul 02 18:54:09 m-optimism-03 op-node[315258]: t=2024-07-02T18:54:09+0000 lvl=info msg="generated attributes in payload queue" txs=6 timestamp=1719877161
Jul 02 18:54:09 m-optimism-03 op-node[315258]: t=2024-07-02T18:54:09+0000 lvl=info msg="Optimistically queueing unsafe L2 execution payload" id=0xd6097f9fd537ec5a0ed842bc960249f6f78a7bb2a255a6bdb60970c152602e65:122173836
Jul 02 18:54:10 m-optimism-03 op-node[315258]: t=2024-07-02T18:54:10+0000 lvl=info msg="inserted block" hash=0xa04a7db252ea9473e3a3623799e476dd40018489e6e3f139029d3b6cc928be88 number=122139192 state_root=0xe9b4cf29dcb492079683e6b8df72f7fecccafdc3882ccd10e43d3005260df1df timestamp=1719877161 parent=0x1a3ba146dc7f6d2f9337450af6626fda487f91153f24c49054b4e15003fbf941 prev_randao=0x138df92408c66b6b8b493030d6c3c3e294b048edecd31e0842377c0c609822be fee_recipient=0x4200000000000000000000000000000000000011 txs=6 update_safe=false
Jul 02 18:54:10 m-optimism-03 op-node[315258]: t=2024-07-02T18:54:10+0000 lvl=info msg="generated attributes in payload queue" txs=3 timestamp=1719877163
Jul 02 18:54:10 m-optimism-03 op-node[315258]: t=2024-07-02T18:54:10+0000 lvl=info msg="inserted block" hash=0x8715a28a9ed3997c626720db8afe7c6e0282fccabf8c4c08ff5d45482d7409ba number=122139193 state_root=0xa3a6468372b059037b3326c5f2b416eebca114e9309277724ec2af74cc969e08 timestamp=1719877163 parent=0xa04a7db252ea9473e3a3623799e476dd40018489e6e3f139029d3b6cc928be88 prev_randao=0x138df92408c66b6b8b493030d6c3c3e294b048edecd31e0842377c0c609822be fee_recipient=0x4200000000000000000000000000000000000011 txs=3 update_safe=false
OP mainnet node has been syncing from the latest snapshot since yesterday afternoon (UTC timezone) and it is still 16 hours behind and not catching up. Block height every 60 seconds:
[2024-07-03 08:02:24] Latest Block Number: 122167512
[2024-07-03 08:03:24] Latest Block Number: 122167565
[2024-07-03 08:04:24] Latest Block Number: 122167610
[2024-07-03 08:05:24] Latest Block Number: 122167657
[2024-07-03 08:06:24] Latest Block Number: 122167701
[2024-07-03 08:07:24] Latest Block Number: 122167751
[2024-07-03 08:08:24] Latest Block Number: 122167797
[2024-07-03 08:09:24] Latest Block Number: 122167843
[2024-07-03 08:10:24] Latest Block Number: 122167893
[2024-07-03 08:11:24] Latest Block Number: 122167938
[2024-07-03 08:12:24] Latest Block Number: 122167988
[2024-07-03 08:13:24] Latest Block Number: 122168036
[2024-07-03 08:14:24] Latest Block Number: 122168086
@andreclaro that's weird. I'll launch up a new ec2 instance with the configurations same as yours, and see how the node syncs. I'll update you on the results afterwards.
it is now 8 hrs behind... on block 122197699: https://optimistic.etherscan.io/block/122197699
I will keep the node running for more a few days... what ebs volume do you use? gp3 or io2? and iops?
Thanks
@mininny , The node is now in sync. We used io2 ebs volume with 30k iops, however I would like to know if gp3 with 16k iops is enough?!?!? Thanks
@mininny , The node is now in sync. We used io2 ebs volume with 30k iops, however I would like to know if gp3 with 16k iops is enough?!?!? Thanks
@andreclaro That's great to hear. :)
Erigon does require low disk latency, and gp3 isn't fast enough which is why it struggles in the initial sync phase. Once it catches up to the head, it might be able to sync, but I think it would be better to use io-type ebs volume or something like i3 ec2 instances if you want fast syncing.
You can also find related discussion about disk types and required iops in the upstream erigon issues: https://github.com/ledgerwatch/erigon
Description
I started a optimism mainnet node with op-erigon and op-node using the latest snapshot (op-mainnet-db-121527384.zst), however the node is very slowly syncing.
We are using an ec2 instance m6a.4xlarge (16 cpu cores and 64 gb memory) with io2 ebs volume with 30k iops.
I don't see any errors in the logs.
Syncing speed: < 1 block per second
System information
Erigon version: v2.60.1-0.6.4
OS & Version: Ubuntu (Linux)
Erigon Command (with flags/config):
Op-node:
Chain/Network: Optimism Mainnet
Expected behaviour
Sync quickly to the latest block.
Actual behaviour
It is not catching up with the public network.
Logs
op-erigon:
op-node: