[KVOffload][P2P] Well-known default host/port env vars and per-DP-rank control port (#47636)

Signed-off-by: Liran Schour <lirans@il.ibm.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
liranschour
2026-07-15 15:22:56 +03:00
committed by GitHub
co-authored by mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent 5811ed6a05
commit 615834ee58
13 changed files with 413 additions and 61 deletions
+12
View File
@@ -36,6 +36,18 @@ def test_nixl_side_channel_host_is_not_compile_factor(
assert "VLLM_NIXL_SIDE_CHANNEL_HOST" not in envs.compile_factors()
def test_p2p_side_channel_defaults_and_override(monkeypatch: pytest.MonkeyPatch):
monkeypatch.delenv("VLLM_P2P_SIDE_CHANNEL_HOST", raising=False)
monkeypatch.delenv("VLLM_P2P_SIDE_CHANNEL_PORT", raising=False)
assert envs.VLLM_P2P_SIDE_CHANNEL_HOST == "localhost"
assert envs.VLLM_P2P_SIDE_CHANNEL_PORT == 5710
monkeypatch.setenv("VLLM_P2P_SIDE_CHANNEL_HOST", "10.0.0.20")
monkeypatch.setenv("VLLM_P2P_SIDE_CHANNEL_PORT", "5799")
assert envs.VLLM_P2P_SIDE_CHANNEL_HOST == "10.0.0.20"
assert envs.VLLM_P2P_SIDE_CHANNEL_PORT == 5799
def test_getattr_with_cache(monkeypatch: pytest.MonkeyPatch):
monkeypatch.setenv("VLLM_HOST_IP", "1.1.1.1")
monkeypatch.setenv("VLLM_PORT", "1234")