-
Notifications
You must be signed in to change notification settings - Fork 804
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
Drop overflow cache #5891
Drop overflow cache #5891
Conversation
beacon_node/store/src/lib.rs
Outdated
#[strum(serialize = "olc")] | ||
OverflowLRUCache, |
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.
What's the policy to deprecate DBColumns?
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.
We've never done it before
We could keep it around in DBColumn
so it can be used with lighthouse db inspect
, and then delete it once the release that removes it is buried under a hard fork
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.
added it back here 8366504
/// immediately. Because this cache only holds fully valid data, its capacity is bounded to 1 block | ||
/// per slot and fork: before inserting into this cache we check proposer signature and correct | ||
/// proposer. Having a capacity > 1 is an optimization to prevent sync lookup from having re-fetch | ||
/// data during moments of unstable network conditions. |
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.
great docs!
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.
LGTM!
@mergify queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at 880523d |
Issue Addressed
Overflow cache is designed to never forget un-finalized not-yet-available blocks.
I believe this is not necessary, and we can drop the complexity to handle that case. Rationale:
Proposed Changes
Allow
DataAvailabilityChecker
internal LRUCache to drop the least used entry if it exceeds capacity.This PR does not change the
DataAvailabilityChecker
state cache. I think its approach is good as is.