fix(core): stop rejecting requests based on global wait estimates - #5666
fix(core): stop rejecting requests based on global wait estimates#5666poroh wants to merge 1 commit into
Conversation
Signed-off-by: Dmitry Porokh <dporokh@nvidia.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. Summary by CodeRabbit
WalkthroughThe admission engine no longer rejects requests from global queue-delay estimates. Per-client FIFO estimates still reject requests that exceed the pending timeout. Tests verify admission for an independent client despite unrelated backlog. ChangesAdmission queue-delay evaluation
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to The change limits predictive queue-delay rejection to the requesting client while preserving global capacity limits, timeouts, and retry behavior. No actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Linked Issues checkExplanation The changes satisfy issue ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Admission control schedules separate per-client queues using round-robin, but the global wait estimator treated all pending requests as one flat FIFO. As a result, non-runnable backlog from one client could cause EstimatedQueueDelay(Global) for an unrelated client whose actual wait did not depend on that backlog.
Predictive rejection now uses only the incoming client’s FIFO queue. Global concurrency and pending limits, the actual pending timeout, and global EWMA-based retry advice remain unchanged. A regression test covers the issue under global saturation.
Related issues
Introduced by #4562
Fixes: #5662
Type of Change
Breaking Changes
Testing
Additional Notes