Skip to content

fix(agentic): pace snapshot warmup dispatches - #16

Open
esmeetu wants to merge 1 commit into
SemiAnalysisAI:cquil11/aiperf-agentx-v1.0from
esmeetu:esmeetu/agentic-warmup-throttle
Open

fix(agentic): pace snapshot warmup dispatches#16
esmeetu wants to merge 1 commit into
SemiAnalysisAI:cquil11/aiperf-agentx-v1.0from
esmeetu:esmeetu/agentic-warmup-throttle

Conversation

@esmeetu

@esmeetu esmeetu commented Jul 16, 2026

Copy link
Copy Markdown

Summary

  • add a validated AIPERF_AGENTIC_SNAPSHOT_WARMUP_MIN_INTERVAL_S setting
  • pace snapshot warmup dispatches in chronological order while preserving trace-derived offsets
  • keep the feature disabled by default and document/test the behavior

Why

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.05

The 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)

Signed-off-by: inf-yasong <yasong.wang@inferact.ai>
@github-actions

Copy link
Copy Markdown

Try out this PR

Quick install:

pip install --upgrade --force-reinstall git+https://github.com/ai-dynamo/aiperf.git@d0824e75212968bb49b179d9102df1637877c90e

Recommended 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@d0824e75212968bb49b179d9102df1637877c90e

Last updated for commit: d0824e7Browse code

@esmeetu
esmeetu marked this pull request as ready for review July 16, 2026 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant