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

chore(engine): revert rpc-timeout to 2 secs #2366

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

abi87
Copy link
Collaborator

@abi87 abi87 commented Jan 18, 2025

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)

@abi87 abi87 requested a review from a team as a code owner January 18, 2025 15:02
@abi87 abi87 self-assigned this Jan 18, 2025
Copy link

codecov bot commented Jan 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 31.20%. Comparing base (1d3cc46) to head (8d6b187).
Report is 9 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           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           
Files with missing lines Coverage Δ
execution/client/config.go 0.00% <ø> (ø)

@@ -29,7 +29,7 @@ import (
const (
defaultDialURL = "http://localhost:8551"
defaultRPCRetries = 3
defaultRPCTimeout = 900 * time.Millisecond
Copy link
Collaborator Author

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"
Copy link
Collaborator Author

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
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fridrik01
Copy link
Contributor

fridrik01 commented Jan 18, 2025

Looked at the loki logs from the stress test yesterday and we had this timeout happen only once on a single validator.

Copy link
Contributor

@calbera calbera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

healthy timeout, LGTM

@calbera calbera added the not breaking For tests or non-critical code path modifications label Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not breaking For tests or non-critical code path modifications
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants