Skip to content

docs(design): adaptive BufferPool sizing with EMA throughput feedback (#1834) - #4216

Merged
oferchen merged 1 commit into
masterfrom
docs/adaptive-buffer-ema-design-1834
May 17, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/adaptive-buffer-ema-design-1834

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Records the design and defer recommendation for an EMA-throughput
    feedback loop over BufferPool soft capacity.
  • Cites the current sizing knobs in crates/engine/src/local_copy/buffer_pool/
    with file:line references (default queue cap at pool.rs:34,
    miss-rate resizer in pressure.rs, byte budget from Prune stale fallback cache entries #2245 in
    byte_budget.rs).
  • Reuses the existing ThroughputTracker (alpha = 0.1,
    throughput.rs:24) rather than introducing a second EMA, and notes
    the parallel PID controller (AdaptiveBufferController) that already
    consumes the same signal.
  • Lists the bench thresholds in crates/engine/benches/buffer_pool_benchmark.rs
    and crates/engine/benches/buffer_pool_contention.rs that must be
    met before the loop ships.

Recommendation

Defer until a bytes/sec baseline is recorded on the contention
bench. The count-cap loop (#1640/#1641) and byte budget (#2245)
already cover most of the failure modes; the remaining gap is narrow
and a second loop overlaps surface with the existing PID controller
(#2095). Concrete next step recorded in the doc.

Test plan

  • cargo fmt --all clean.
  • Pure docs change; no code touched.
  • All file:line citations verified against the worktree.

…#1834)

Records the design and explicit defer recommendation for an EMA-throughput
feedback loop over BufferPool soft capacity. Cites current sizing knobs in
crates/engine/src/local_copy/buffer_pool/, leverages the existing
ThroughputTracker (alpha=0.1) and AdaptiveBufferController instead of
introducing parallel state, and lists the bench thresholds prerequisite to
shipping the loop.
@oferchen
oferchen merged commit f1dbfe0 into master May 17, 2026
8 checks passed
@oferchen
oferchen deleted the docs/adaptive-buffer-ema-design-1834 branch May 17, 2026 19:09
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 17, 2026
oferchen added a commit that referenced this pull request May 18, 2026
…#1834) (#4216)

Records the design and explicit defer recommendation for an EMA-throughput
feedback loop over BufferPool soft capacity. Cites current sizing knobs in
crates/engine/src/local_copy/buffer_pool/, leverages the existing
ThroughputTracker (alpha=0.1) and AdaptiveBufferController instead of
introducing parallel state, and lists the bench thresholds prerequisite to
shipping the loop.
oferchen added a commit that referenced this pull request May 18, 2026
…#1834) (#4216)

Records the design and explicit defer recommendation for an EMA-throughput
feedback loop over BufferPool soft capacity. Cites current sizing knobs in
crates/engine/src/local_copy/buffer_pool/, leverages the existing
ThroughputTracker (alpha=0.1) and AdaptiveBufferController instead of
introducing parallel state, and lists the bench thresholds prerequisite to
shipping the loop.
oferchen added a commit that referenced this pull request Aug 24, 2026
…#1834) (#4216)

Records the design and explicit defer recommendation for an EMA-throughput
feedback loop over BufferPool soft capacity. Cites current sizing knobs in
crates/engine/src/local_copy/buffer_pool/, leverages the existing
ThroughputTracker (alpha=0.1) and AdaptiveBufferController instead of
introducing parallel state, and lists the bench thresholds prerequisite to
shipping the loop.
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