-
Notifications
You must be signed in to change notification settings - Fork 185
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
chore(engine): revert rpc-timeout to 2 secs #2366
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2366 +/- ##
=======================================
Coverage 31.20% 31.20%
=======================================
Files 346 346
Lines 15416 15416
Branches 20 20
=======================================
Hits 4810 4810
Misses 10267 10267
Partials 339 339
|
@@ -29,7 +29,7 @@ import ( | |||
const ( | |||
defaultDialURL = "http://localhost:8551" | |||
defaultRPCRetries = 3 | |||
defaultRPCTimeout = 900 * time.Millisecond |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is what we have in Bartio configs
@@ -122,7 +122,7 @@ rpc-dial-url = "http://devnet-blob-eth-val-1:8551" | |||
rpc-retries = "3" | |||
|
|||
# RPC timeout for execution client requests. | |||
rpc-timeout = "900ms" | |||
rpc-timeout = "2s" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this value gets updated in the file following the new default
@@ -29,7 +29,7 @@ import ( | |||
const ( | |||
defaultDialURL = "http://localhost:8551" | |||
defaultRPCRetries = 3 | |||
defaultRPCTimeout = 900 * time.Millisecond | |||
defaultRPCTimeout = 2 * time.Second |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the previous default, see https://github.com/berachain/beacon-kit/pull/2362/files#r1921088464
Looked at the loki logs from the stress test yesterday and we had this timeout happen only once on a single validator. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
healthy timeout, LGTM
This PR proposes to revert the timeout for rpc calls to 2 seconds default.
We adopted the 900ms internal following Bartio configuration but I believe we have no penalties extending this to 2 seconds.
Note that currently CometBFT does not properly clear context in requests (has been long standing request, always de-prioritized in the face of features in higher demand from community)