Repository navigation
Pacer: a lone overload backs off its own call; clustered overloads close the pool - #262
Conversation
…ose the pool An overload that names no delay closed the model's pool for a second or more, so with 5 % of calls refused 64 bots fell from 290 to 20 turns/s. Codex and the providers' SDKs retry an overload per request. Now a lone overload backs off its own call from half a second; the pool closes only when overloads cluster (three in two seconds, a quarter or more of the answers) or the provider names a delay. Rate limits still close it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGGx6KWd2rVq3RoYuXt
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review The code review has shown as running since 02:20Z. Generated by Claude Code |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 669233a36c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGGx6KWd2rVq3RoYuXt
|
@codex review Generated by Claude Code |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
#271) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGErsjQZRay4MEvYNpr
This is the first of five pacer changes George approved ("All five, overload first").
Before this change, an overload that named no delay (a 529, or an
overloaded_errororserver_is_overloadedmid-stream) closed the model's pool for a second, and longer while refusals kept coming. Every bot on that model waited for one refused call. With 64 bots and 5% of calls refused, throughput fell from 290 to 20 turns/s.Changes
Pace::overloaded(after):rate_limit_exceeded,slow_down) still close the pool as before.refused()helper. A socket failure with status 429 stays a rate limit.How it keeps the principles
Measurements
Linux x86_64 container, synthetic fixture: 64 bots resubmitting as each turn ends, 200 ms replies, a random fraction of calls refused with 529 and no
Retry-After. 15 s measured, one run each. #257's head against this change:No turn failed in any run. At 50% the clusters still close the pool: the fixture saw 97 requests in 18 s, not a retry storm. The table is also recorded in docs/DAEMON_MEASUREMENTS.md.
Tests
a_lone_overload_leaves_the_pool_open_and_clustered_ones_close_it.test_an_overload_mid_stream_closes_the_pool_and_is_retried_when_it_reopensbecomestest_a_lone_overload_mid_stream_backs_off_its_own_call: the call is not parked and retries after 400–600 ms.cargo test, clippy, fmt and the full runtime suite (tests/run.py) pass.No visible change, so no screenshots.