Request recording and playback

Updated at:

InferX request recording and playback captures live traffic over a specified period and replays it at an adjustable speed. Use this feature to validate service behavior after deployments, configuration changes, or performance tuning.

Overview

Request recording and playback is useful in the following scenarios:

  • Post-deployment validation: Record live traffic before a deployment, then replay and compare performance metrics after the release.

  • Configuration change regression: After you modify scheduling policies, throttling rules, or other configurations, replay real traffic to verify the effect.

  • Performance optimization benchmarking: After optimizing the inference engine or model, replay the same traffic to compare performance before and after.

The workflow has three steps: Record → Replay → Observe.

Important

Recording and playback data is stored on the local temporary disk of the service node. All data is cleared when the service restarts. Back up important data promptly. Monitor disk usage — recording is blocked when the disk is nearly full.

Record

Online recording

  1. In the left-side navigation pane of InferX, click Request Playback.

  2. Click Start Recording and configure the following parameters:

    • Name (optional): A name for the recording task, such as production-baseline-2026-07.

    • Description (optional): Notes about the recording task, such as v2.3 pre-release testing.

    • Maximum recording duration (seconds, 0 = unlimited): Maximum recording duration. Default: 300 seconds.

    • Maximum requests (0 = unlimited): The maximum number of requests to record. Default: 0 (unlimited).

    Recording stops automatically when the duration or request limit is reached.

  3. Click Start to begin recording.

Import a recording

Upload an existing recording file. In the upper-right corner of the Recording tab, click Upload Recording and select a local file.

Replay

  1. On the Request Playback page, click Start Replay and configure the following parameters:

    • Recording (required): Select a recording task from the drop-down list.

    • Name (optional): A name for this replay task.

    • Description (optional): Notes about this replay task.

    • Playback speed (required): Drag the slider to set the replay speed, from 0.1x to 2x. Default: 1.0x (original speed). 0.1x slows down to one-tenth of the original speed. 2x doubles the original speed.

  2. After the replay finishes, check the replay list for the task status and results.

Compare results

After a replay finishes, click Compare in the replay list to open the comparison page. The page displays the full performance metrics of the recording and the replay side by side, so you can determine whether service performance is consistent before and after a change.

Comparison purpose

Compare the performance metrics of the recording (before the change) and the replay (after the change) to check for performance regression:

  • Metrics are similar: The change has no significant impact on performance. You can safely proceed with the deployment.

  • Metrics differ significantly: Investigate the change to identify the cause of the performance regression.

Key metrics

Metric

Description

TTFT (time to first token)

The time from when a request is sent to when the first token is received. Measures model response speed. A lower value means a shorter perceived wait time.

E2E (end-to-end latency)

The total time from when a request is sent to when the complete response is received. Includes TTFT and all token generation time.

TPOT (time per output token)

The average time to generate each token. Measures model generation speed. A lower value means faster text generation.

ITL (inter-token latency)

The interval between consecutive tokens. Similar to TPOT, used to measure generation smoothness.

Hit rate

The KV cache hit ratio. A higher hit rate means better cache reuse and higher inference efficiency.

Token throughput

The number of tokens processed per second (tokens/s). Measures the overall processing capacity of the system.

Status code distribution

The distribution of HTTP status codes (such as 200 and 500) across requests. Used to assess request success rate.