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

Redesign the priority scheduler to maintain a 1-to-1 link with running elections #4593

Draft
wants to merge 14 commits into
base: develop
Choose a base branch
from

Conversation

clemahieu
Copy link
Contributor

This change appropriately prioritises elections by bucket and then by LRU account. Overfilled buckets have the lowest priority block election cancelled and rolled back.

@clemahieu clemahieu force-pushed the priority_limiter branch 3 times, most recently from aad626f to 456acf9 Compare April 30, 2024 16:22
@qwahzi qwahzi added this to the V27 milestone Apr 30, 2024
@clemahieu clemahieu force-pushed the priority_limiter branch 3 times, most recently from 0f7d29c to 733ec4f Compare April 30, 2024 22:10
@clemahieu clemahieu force-pushed the priority_limiter branch 4 times, most recently from ecdbcdd to a3ea5fa Compare May 6, 2024 14:49
Each scheduler checks its own limits with calls to active_elections::vacancy.
Trim is problematic as it indiscriminately cancels elections without consideration to why it was scheduled or its priority.
…en rather than using vacancy()

Remove election_scheduler.no_vacancy
Schedulers only get notifications when an election is closed i.e. vacancy has increased.
Convert vacancy_update to election_stopped observer.

Reworking buckets.

Fixing bucket

WIP

WIP

Commenting removal selection

Scheduler logging.

Increase timestamp precision.

Formatting.

Removing completed elections.
@qwahzi
Copy link
Collaborator

qwahzi commented Jul 2, 2024

Removing from V27 milestone due to: #4626

@qwahzi qwahzi removed this from the V27 milestone Jul 2, 2024
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

Successfully merging this pull request may close these issues.

2 participants