fix(agentic): pace snapshot warmup dispatches - #16
Open
esmeetu wants to merge 1 commit into
Open
Conversation
Signed-off-by: inf-yasong <yasong.wang@inferact.ai>
Try out this PRQuick install: pip install --upgrade --force-reinstall git+https://github.com/ai-dynamo/aiperf.git@d0824e75212968bb49b179d9102df1637877c90eRecommended with virtual environment (using uv): uv venv --python 3.12 && source .venv/bin/activate
uv pip install --upgrade --force-reinstall git+https://github.com/ai-dynamo/aiperf.git@d0824e75212968bb49b179d9102df1637877c90eLast updated for commit: |
esmeetu
marked this pull request as ready for review
July 16, 2026 02:41
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.
Summary
AIPERF_AGENTIC_SNAPSHOT_WARMUP_MIN_INTERVAL_SsettingWhy
Agentic snapshot warmup can schedule many live trajectories at the same or nearly the same timestamp. At high concurrency this creates a synchronized connection burst, which can trigger transient TCP failures and abort the entire run as a terminal warmup failure even when the serving stack is healthy.
This change applies a configurable lower bound between initial warmup dispatches. It only extends the existing ramp when adjacent trace-derived offsets are closer than the configured interval.
Recommended configuration
For high-concurrency AgentX sweeps, start with:
export AIPERF_AGENTIC_SNAPSHOT_WARMUP_MIN_INTERVAL_S=0.05The default is
0, which preserves the existing dispatch timing. Increase the value only when the warmup burst still causes connection pressure, since larger values extend warmup duration.Validation
uv run pytest tests/unit/common/test_environment.py tests/unit/timing/strategies/test_agentic_replay.py -q(100 passed)uv run pre-commit run(all hooks passed)