Skip to content

fix(ai,k8s): resolve gateway tune argv overflow, weight/concurrency overrides, and k8s gpu placement (#668, #669) - #677

Merged
dan-petty merged 1 commit into
release/v0.2.23from
fix/668-669-k8s-gpu-gateway-tune
Sep 28, 2026
Merged

dan-petty merged 1 commit into
release/v0.2.23from
fix/668-669-k8s-gpu-gateway-tune

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Summary

Remediates critical defects in gateway tune, model pool routing, GPU placement, and exporter privileges discovered in the release/v0.2.23 review.

Closes #668
Closes #669

Key Changes

  • AI Gateway Tune (fix(ai): gateway tune fails on large prompts and ignores weight and concurrency settings #669):

    • Pipe benchmark evaluation script via stdin (python -) in measure_in_gateway_pod(), bypassing Linux MAX_ARG_STRLEN (128KB) limits when measuring large prompt contexts.
    • Reuse active ephemeral debug container on gateway pod to avoid pod container clutter and polling latency.
    • Calculate hardware-driven recommended_concurrency via calculate_hardware_concurrency().
    • Support backend label overrides in recommend_weights() and concurrency overrides.
    • Render Max Parallel recommended concurrency column in tune report table.
  • Kubernetes LLM Gateway Routing (fix(k8s): gpu placement, exporter privileges and gateway routing for the llm pool #668):

    • Remove per-backend max_parallel_requests caps on devops-review model group in k8s/llm/gateway/configmap.yaml.
    • Update routing_strategy to simple-shuffle so that LiteLLM distributes requests according to measured weights rather than ignoring them under least-busy.
  • Kubernetes GPU Placement & Exporter Security (fix(k8s): gpu placement, exporter privileges and gateway routing for the llm pool #668):

    • Update k8s/llm/profiles/ollama-profiles.yaml node affinity rules across all 8 tiers to match either nvidia.com/gpu.family or nvidia.com/gpu.architecture (NotIn: [...]), fixing pod scheduling on Volta nodes where GFD reports gpu.family.
    • Preserve unconstrained memory limits on Ollama for node-adaptive scaling.
    • Scale conflicting vllm-48gib profile to replicas: 0 in k8s/llm/profiles/vllm-profiles.yaml.
    • Clear capabilities.add in k8s/monitoring/dcgm-exporter-values.yaml and configure arguments: [-f, /etc/dcgm-exporter/dcp-metrics-included.csv] to exclude profiling metrics that require elevated privileges.

Verification

  • All 22 tests in tests/test_ai_gateway_tune.py pass.
  • All 43 tests in tests/test_k8s_llm_gateway.py pass.
  • All 6,170 tests in test suite pass.
  • Full Gated CI validation suite (uv run devops ci) passes 100% across all quality gates.

…verrides, and k8s gpu placement (#668, #669)

- Gateway tune: pipe benchmark script via stdin to prevent Linux MAX_ARG_STRLEN (128KB) overflow on large prompts, reuse ephemeral container to avoid pod clutter, compute and display recommended concurrency, and match weight/concurrency overrides by backend label (#669)

- Kubernetes LLM Gateway: remove fixed max parallel caps on devops-review model group and adopt simple-shuffle routing strategy so tuned weights take effect (#668)

- Kubernetes GPU Placement & Exporter: accept either nvidia.com/gpu.family or nvidia.com/gpu.architecture in Ollama node affinity, scale conflicting vllm-48gib profile to 0 replicas, clear capabilities.add in dcgm-exporter values, and use dcp-metrics-included.csv arguments (#668)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

1 participant