Skip to content

docs(design): AIMD adaptive-concurrency limiter RFC - #3947

Merged
oferchen merged 1 commit into
masterfrom
docs/aimd-concurrency-limiter-2090
May 7, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/aimd-concurrency-limiter-2090

Conversation

@oferchen

@oferchen oferchen commented May 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds docs/design/aimd-concurrency-limiter.md proposing an AIMD-based adaptive-concurrency limiter for the transfer pipeline (Use branded constants in daemon wrapper tests #2090).
  • Documents motivation against the current static knobs (DEFAULT_PARALLEL_THRESHOLD = 64 in crates/transfer/src/delta_pipeline.rs:42, CAPACITY_MULTIPLIER = 2 in crates/engine/src/concurrent_delta/work_queue/capacity.rs:8).
  • Specifies state machine, AIMD rules (alpha=1, beta=0.5), overload detection (RTT spike, queue saturation, error rate, disk-commit pressure), and integration points across the engine, transfer, and CLI crates.
  • Compares AIMD against Vegas, BBR, and Gradient2; justifies a native Rust implementation over the Netflix concurrency-limits library.
  • Maps implementation to follow-on tasks Collapse workspace to a single oc-rsync entrypoint #2091 (impl), Remove legacy daemon wrappers #2092 (convergence tests), Brand version banners around oc-rsync #2093 (--adaptive-concurrency flag).
  • Lists open questions on per-pipeline scope, --bwlimit interaction, and feedback-signal quality on local-only transfers.

Test plan

  • N/A (documentation only)

Proposes an AIMD (Additive-Increase / Multiplicative-Decrease) controller
that replaces the static CAPACITY_MULTIPLIER and PARALLEL_THRESHOLD knobs
with a feedback-driven concurrency limiter. Covers placement, state
machine, overload detection, integration points in the engine, transfer,
and CLI crates, trade-offs vs Vegas/BBR/Gradient2, implementation phases
mapped to tasks #2091-#2093, and open questions on per-pipeline scope,
--bwlimit interaction, and local-only feedback signal quality.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 7, 2026
@oferchen
oferchen merged commit 5f4ef74 into master May 7, 2026
8 checks passed
@oferchen
oferchen deleted the docs/aimd-concurrency-limiter-2090 branch May 8, 2026 03:46
oferchen added a commit that referenced this pull request May 18, 2026
Proposes an AIMD (Additive-Increase / Multiplicative-Decrease) controller
that replaces the static CAPACITY_MULTIPLIER and PARALLEL_THRESHOLD knobs
with a feedback-driven concurrency limiter. Covers placement, state
machine, overload detection, integration points in the engine, transfer,
and CLI crates, trade-offs vs Vegas/BBR/Gradient2, implementation phases
mapped to tasks #2091-#2093, and open questions on per-pipeline scope,
--bwlimit interaction, and local-only feedback signal quality.
oferchen added a commit that referenced this pull request Aug 24, 2026
Proposes an AIMD (Additive-Increase / Multiplicative-Decrease) controller
that replaces the static CAPACITY_MULTIPLIER and PARALLEL_THRESHOLD knobs
with a feedback-driven concurrency limiter. Covers placement, state
machine, overload detection, integration points in the engine, transfer,
and CLI crates, trade-offs vs Vegas/BBR/Gradient2, implementation phases
mapped to tasks #2091-#2093, and open questions on per-pipeline scope,
--bwlimit interaction, and local-only feedback signal quality.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant