feat(mesh): pull/lease streaming scheduler — Pando StreamLender/Limiter (move 2) - #27
Merged
Conversation
…er (move 2)
Continues the volunteer-mesh march. Turns synchronous place->dispatch into an opportunistic,
async, churn-tolerant pull model — the thing that actually scales to 400k flaky nodes.
tools/lease_scheduler.py:
- workers LEASE Work Units when idle (pull) -> faster/idler devices pull more (adaptive, no
speed estimation), slow ones pull less (automatic backpressure).
- conservative single-copy: one WU to at most one worker at a time (maximize distinct units in
flight); redundant-quorum is an optional overlay, not the default.
- crash-stop work-stealing: a worker that misses its lease deadline has its unit RE-LENT by
index; a late result from the crashed worker is dropped (re-lent copy is authoritative).
- ordered re-merge (results_in_order); per-worker Limiter (max_in_flight); heartbeat extends a
lease's deadline.
Distilled from Pando (Personal Volunteer Computing in Browsers). Tests: +7 = 129 tools tests green.
docs/VOLUNTEER_MESH.md move 2 -> shipped; work_unit verification is now explicitly the optional
overlay on top of pull/lease dispatch. Makefile `lease`; CapD scheduler link.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Continues the volunteer-mesh march — turns synchronous
place→dispatchinto an opportunistic, async, churn-tolerant pull model, the thing that actually scales to 400k flaky nodes.tools/lease_scheduler.py:Distilled from Pando. 129 tools tests green.
docs/VOLUNTEER_MESH.mdmove 2 → shipped; verification (#25) is now explicitly the overlay on top of pull/lease dispatch.