-
Notifications
You must be signed in to change notification settings - Fork 84
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
app/eth2wrap: deep validator cache #3114
Conversation
Implement a validator cache that caches the complete Validators endpoint request. Short-cut the duty selection for the DV validator set to the known-active, cached list instead: this will reduce the load on the beacon node drastically, since before this change we were calling the BN once every slot. Try to reduce at a minimum upstream BN requests when the VC calls for validator state. All Validators() calls to the upstream BN, if greater than 200 validators, will have an exponential timeout calculated as `(50ms * validator amount)`.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3114 +/- ##
==========================================
- Coverage 56.82% 56.68% -0.15%
==========================================
Files 208 208
Lines 29153 29234 +81
==========================================
+ Hits 16566 16570 +4
- Misses 10749 10821 +72
- Partials 1838 1843 +5 ☔ View full report in Codecov by Sentry. |
Is this done in this PR? I did not find changes implementing this logic. |
…lidators Avoid messing with caller's data.
Add comments explaining what's going on, fetch cached validator as soon as we're in the core flow.
Quality Gate passedIssues Measures |
Implement a validator cache that caches the complete Validators endpoint request. Short-cut the duty selection for the DV validator set to the known-active, cached list instead: this will reduce the load on the beacon node drastically, since before this change we were calling the BN once every slot. Try to reduce at a minimum upstream BN requests when the VC calls for validator state. All Validators() calls to the upstream BN, if greater than 200 validators, will have an exponential timeout calculated as `(50ms * validator amount)`. category: feature ticket: none
Implement a validator cache that caches the complete Validators endpoint request.
Short-cut the duty selection for the DV validator set to the known-active, cached list instead: this will reduce the load on the beacon node drastically, since before this change we were calling the BN once every slot.
Try to reduce at a minimum upstream BN requests when the VC calls for validator state.
All Validators() calls to the upstream BN, if greater than 200 validators, will have an exponential timeout calculated as
(50ms * validator amount)
.category: feature
ticket: none