Skip to content

dix: Switch over to DRR for scheduling#102

Open
notbabaisyou wants to merge 2 commits into
SpaghettiFork:masterfrom
notbabaisyou:new-dispatch-drr
Open

dix: Switch over to DRR for scheduling#102
notbabaisyou wants to merge 2 commits into
SpaghettiFork:masterfrom
notbabaisyou:new-dispatch-drr

Conversation

@notbabaisyou

Copy link
Copy Markdown
Collaborator

Draft until I'm certain I want to go with this approach.

@notbabaisyou notbabaisyou self-assigned this May 4, 2026
Replace the O(n) priority/round-robin scan in SmartScheduleClient with Deficit Round Robin (DRR). Each client accumulates a deficit counter topped up by a quantum proportional to its weight (derived from priority + smart_priority) each scheduling round, and the client with the highest deficit is always selected.
@notbabaisyou notbabaisyou marked this pull request as ready for review June 6, 2026 09:54
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.

1 participant