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

Specific timeouts per validator duties http request #6914

Open
nflaig opened this issue Jun 27, 2024 · 0 comments
Open

Specific timeouts per validator duties http request #6914

nflaig opened this issue Jun 27, 2024 · 0 comments

Comments

@nflaig
Copy link
Member

nflaig commented Jun 27, 2024

It's now possible to configure a timeout per request, and we might wanna reduce timeouts for some requests as there is generally no value it keeping request open after certain time as it would be too late anyways.

Right now, all http requests have a timeout of SECONDS_PER_SLOT (12s on mainnet) which is globally configured

// Validator would need the beacon to respond within the slot
// See https://github.com/ChainSafe/lodestar/issues/5315 for rationale
globalInit: {timeoutMs: config.SECONDS_PER_SLOT * 1000, signal: controller.signal, ...globalInit},

More strict timeouts can improve fallback behavior as well, Lighthouse already uses this approach, see validator_client/src/lib.rs#L74-L86.

Related sigp/lighthouse#2313

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