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

Backlog population is done by a linear scan separated by a 5 minute w… #3648

Closed
wants to merge 1 commit into from

Conversation

clemahieu
Copy link
Contributor

…ait period. In this wait period and even while still scanning it's possible for the election scheduler to empty due to everything being confirmed faster than the scan can operate.

This should be rewritten to not scan at all and instead, a new database table can store the bucket/time as a key and when buckets are emptyied, it can be refilled directly from disk without scanning.

…ait period. In this wait period and even while still scanning it's possible for the election scheduler to empty due to everything being confirmed faster than the scan can operate.

This should be rewritten to not scan at all and instead, a new database table can store the bucket/time as a key and when buckets are emptyied, it can be refilled directly from disk without scanning.
@clemahieu clemahieu added this to the V24.0 milestone Jan 4, 2022
{
std::cerr << "<---------------Populating...\n";
Copy link
Contributor

Choose a reason for hiding this comment

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

Is a direct print to console needed here?

Copy link
Contributor

Choose a reason for hiding this comment

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

I've done some testing on this PR and it looks really good
This is the baseline test (v23 RC3 branch)
BaselineV23
Cycling is obvious

This V23 RC3 bu with included cherry pick of this PR:
V23+3648
No cycling and average CPS is approx three times higher

@qwahzi qwahzi modified the milestones: V24.0, Prioritised Dec 29, 2022
@dsiganos
Copy link
Contributor

Duplicate of #3999

@dsiganos dsiganos marked this as a duplicate of #3999 Jan 10, 2023
@dsiganos
Copy link
Contributor

This just does the continuous backlog propagation in a a tight loop.
The new newer version does it better.

@dsiganos dsiganos closed this Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants