Repository navigation
[Nixl] Separate transport-failure metrics from KV expiry - #55854
Conversation
|
Documentation preview: https://vllm--55854.org.readthedocs.build/en/55854/ |
|
This pull request has merge conflicts that must be resolved before it can be |
4bbae78 to
d13e71f
Compare
deccb96 to
d49769d
Compare
|
/ci run |
|
✅ Triggered Buildkite CI #88339 for commit |
f9cd807 to
c5729ec
Compare
|
/ci run |
|
✅ Triggered Buildkite CI #88823 for commit |
|
This pull request has merge conflicts that must be resolved before it can be |
c5729ec to
c4a0bb8
Compare
|
/ci run |
|
✅ Triggered Buildkite CI #89371 for commit |
c4a0bb8 to
e01191f
Compare
|
/ci retry |
|
✅ The previous CI build is still running: https://buildkite.com/vllm/ci/builds/89371 |
|
Hi @NickLucche, the pre-commit checks have failed. Please run: uv pip install pre-commit>=4.5.1
pre-commit install
pre-commit run --all-filesThen, commit the changes and push to your branch. For future commits, |
e01191f to
e1a562e
Compare
|
/ci run |
|
✅ Triggered Buildkite CI #89434 for commit |
Group transfer, handshake, and notification failures into a single transport-failure signal (vllm:nixl_num_failed_transfers and the CLI "Num failed transfers" field), since all are sporadic lower-transport-layer events. KV expiry is reported separately (vllm:nixl_num_kv_expired_reqs / "Num KV expired reqs") as it is an actionable autoscaler signal rather than a transport issue. Also close two uncounted failure paths found while tracing notifications: pull-side MLA multi-rank send_notif calls (previously unguarded) and push-side PUSH_REG send failures (previously logged but not counted or marked failed). Raw per-category keys (num_failed_transfers, num_failed_handshakes, num_failed_notifications) are kept internally for granularity; only reporting is grouped. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai> Signed-off-by: NickLucche <nicolo.lucchesi@mistral.ai>
Count each handshake failure once and keep push receives pending after notification errors. Retain the notification counter alongside grouped transport failures. Co-authored-by: Codex <noreply@openai.com> Signed-off-by: NickLucche <nicolo.lucchesi@mistral.ai>
The "handshake" value was never passed to _handle_failed_transfer (the metric is counted once by _ensure_handshake's own callback), so drop the dead branch. Replace the optional Literal whose default was not None with record_failed_transfer: bool, which is all callers use. Also fix test_do_start_push_kv_drops_request_on_handshake_failure, stale after the count-once rework: the push side no longer records the handshake metric, so assert it does not double-record. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai> Signed-off-by: NickLucche <nicolo.lucchesi@mistral.ai>
test_log_renders_plain_scalars constructs NixlKVConnectorStats with a literal dict; after the rebase the num_failed_handshakes and num_kv_expired_reqs entries were missing, so reduce() raised KeyError. Co-authored-by: Mistral Vibe <noreply@mistral.ai> Signed-off-by: NickLucche <nicolo.lucchesi@mistral.ai>
e1a562e to
95dc6fd
Compare
|
/ci retry |
|
✅ Triggered Buildkite CI #89632 for commit |
|
/ci run |
|
✅ Triggered Buildkite CI #89817 for commit |
…t#55854) Signed-off-by: NickLucche <nicolo.lucchesi@mistral.ai>
Splits NIXL connector failure reporting into two signals: a grouped transport-failure counter for sporadic lower-transport-layer events (or link issues), and a separate KV-expiry counter carrying the autoscaler signal.
Motivation
Every NIXL connector failure currently funnels into a single
num_failed_transferscounter, and several failure paths are not counted at all. That conflates two signals that mean very different things operationally:send_notifthat could not be posted. These are sporadic events rooted in the lower transport layer; when they spike, the thing to investigate is the network, not the deployment.kv_lease_durationtoo short, or scale-down too aggressive).The old behavior was at its worst on the pull worker's turn-2 path: a request whose KV had simply expired was recorded as a failed transfer, polluting the transport counter with autoscaler signal.
What changes
vllm:nixl_num_failed_transfers/ CLINum failed transferssend_notif— the sporadic transport classvllm:nixl_num_kv_expired_reqs/ CLINum KV expired reqsnum_kv_expired_reqsand reports it separately.handshake_setup_failedcallback and the push-sidepush_handshake_failedhandler.send_notiffailure has the same sporadic lower-transport-layer causes as a failed transfer. The separatevllm:nixl_num_failed_notificationscounter and CLI field are removed.send_notifcalls were unguarded, so a failure propagated as an unhandled exception. They now lognotification_failedand record the metric.send_notiffailures were logged but neither counted nor reflected in request state. They now record the failure and mark the request failed, matching the adjacent no-agents path.reduce()reports failure counts in both branches, so failures now also surface in the periodicKV Transfer metricslog line, not only via Prometheus.nixl_connector_usage.mdis updated with the two-signal grouping and its rationale.Raw per-category keys (
num_failed_transfers,num_failed_handshakes,num_failed_notifications) are still recorded internally, so re-splitting the reporting later is a small change.Testing
New coverage: stats grouping (
test_kv_connector_stats_failure_grouping), Prometheus grouping (test_nixl_prom_metrics_group_handshake_with_transfer_failures), handshake-failure metrics in both push and pull suites, and turn-2 gate tests asserting KV expiry records no transport failure.The dist_init-heavy suites abort locally after several tests per process (torch.distributed teardown, reproduces on a clean checkout), hence the targeted runs above.