You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When vc and bn stay on different machine, publishBlockV2 may take a long time - normally it takes <0.5s but could be up to >3s randomly. This is the log of 5 longest requests
This does 2 things: wait for body stream from vc to bn and JSON.parse
I guess JSON.parse() is not an issue because it only happen randomly when vc stay on a different machine than bn, so could be a network thing. I think we can reduce the bandwidth of this api by either:
Run bn and vc in 2 diferent 2 hosts with this branch: tuyen/produce_block_interop_key which use interop key to produce and publish block at every slot (but bn does not spread block to the network)
Additional context
No response
Operating system
Linux
Lodestar version or commit hash
v1.12.0
The text was updated successfully, but these errors were encountered:
I guess JSON.parse() is not an issue because it only happen randomly when vc stay on a different machine than bn
Are you sure about that? Based on preParsing docs you can modify the request payload stream in that hook which means it should be already streamed, or at least that's what I would expect.
Are you sure about that? Based on preParsing docs you can modify the request payload stream in that hook which means it should be already streamed, or at least that's what I would expect.
@nflaig yes, based on the log and the way it's implemented in the code I linked in the issue. I'm not sure about the example, but modifying the request payload stream doesn't mean the whole payload is flushed from vc to bn
Describe the bug
When
vc
andbn
stay on different machine,publishBlockV2
may take a long time - normally it takes <0.5s but could be up to >3s randomly. This is the log of 5 longest requestsin the worse case it could cause missed or orphaned blocks
Expected behavior
Looking at the log we can see that it always take time after "preParsing" and before "preValidation" hook, likely happens at this phase https://github.com/fastify/fastify/blob/bc8743a2f225c92ad68cf2ad11bcd6930249fb69/lib/handleRequest.js#L41
This does 2 things: wait for body stream from
vc
tobn
andJSON.parse
I guess
JSON.parse()
is not an issue because it only happen randomly whenvc
stay on a different machine thanbn
, so could be a network thing. I think we can reduce the bandwidth of this api by either:vc
cc @g11techSteps to reproduce
Run
bn
andvc
in 2 diferent 2 hosts with this branch:tuyen/produce_block_interop_key
which use interop key to produce and publish block at every slot (butbn
does not spread block to the network)Additional context
No response
Operating system
Linux
Lodestar version or commit hash
v1.12.0
The text was updated successfully, but these errors were encountered: