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

This change creates an scheduler::limiter class which tracks and limits how many elections can be spawned. #4238

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

Conversation

clemahieu
Copy link
Contributor

The class is a facade around the active_transactions class and exposes a query scheduler::limiter::available to see if there is capacity available and a method scheduler::limiter::insert which checks for availability before inserting an election. Elections are inserted and tracked by the scheduler::limiter class. Coherency is maintained in a lazy manor by holding weak_ptrs to nano::elections and removing them if the pointer has expired or the election is no longer active as reported by active_transactions.

Previous discussion was on this branch #4133

@clemahieu clemahieu added this to the V26.0 milestone May 19, 2023
@clemahieu clemahieu marked this pull request as draft May 19, 2023 01:08
@clemahieu clemahieu force-pushed the scheduling_limiter branch 7 times, most recently from a85dd4a to ca0bfdf Compare September 6, 2023 12:27
@clemahieu clemahieu force-pushed the scheduling_limiter branch 5 times, most recently from 23482f9 to 104d9aa Compare September 12, 2023 18:37
@qwahzi qwahzi modified the milestones: V26.0, Todo Nov 20, 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.

2 participants