Skip to content

docs(examples): route the GPU autoscaling sandboxes through the chart's Envoy - #14188

Merged
cv merged 1 commit into
v1from
docs/gpu-autoscaling-envoy
Nov 4, 2026
Merged

cv merged 1 commit into
v1from
docs/gpu-autoscaling-envoy

Conversation

@cv

@cv cv commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

Failure

This follows #14184, whose GPU autoscaling example sends inference to the chart's metrics proxy Service, nemoclaw-gpu-metrics-proxy:8081.
That bypasses the Envoy load balancer the chart's recipe puts in front of the GPU pods.
Kubernetes balances connections rather than requests, so a sandbox's open connection can stay on the first pod while pods the autoscaler adds sit idle.
Removing the example also left the chart's Envoy sign-in Secret behind.

Decision

  • Point the route at the Envoy Service for the chart's Gateway: envoy-nemoclaw-gpu-nemoclaw-gpu-metrics-proxy-4620f768.envoy-gateway-system.svc.cluster.local:80. Its route for in-cluster callers uses LeastRequest with one request per upstream connection. Envoy doesn't authenticate on that route; the metrics proxy in each pod checks the Bearer key, so the credential is unchanged.
  • The README finds the Service by its Gateway labels. Envoy Gateway names it envoy-<namespace>-<gateway>-<first 8 hex of sha256("<namespace>/<gateway>")>, so the name is fixed for a given release and namespace.
  • The metrics proxy Service stays documented as the address when the chart is installed with ENABLE_ENVOY_LB=0.
  • Removal also deletes nemoclaw-gpu-metrics-proxy-ingress-auth, which helm uninstall keeps.

Validation

  • cargo ci passed: test ran 1,820 tests and lifecycle 101.
  • Walk on a local kind cluster (no GPU), with resources named pairing-walk* that I created and deleted:
    • Installed Envoy Gateway v1.8.3 and the eg GatewayClass as install-hpa.sh does. Then installed the chart from nemoclaw-community ae756c28bd with ingress.gateway.enabled=true, generated basic-auth values, Ollama with qwen3:0.6b on CPU, and arm64 image digests. The Gateway was programmed, and the Envoy pod was 2/2.
    • The label query returned envoy-nemoclaw-gpu-nemoclaw-gpu-metrics-proxy-4620f768 (ClusterIP, port 80).
    • Through that Service, a request without the key got 401, and a keyed chat completion returned READY..
    • From a pod in the deployment namespace with the OpenShell supervisor label, a request to the Envoy address reached the metrics proxy (401 without the key).
    • nemoclaw plan, apply and destroy with the new endpoint completed, and both sandboxes ran.
    • helm uninstall kept the two Secrets the README now deletes.
  • Not run: invoking an agent, which needs an OIDC issuer; and load-balancing across several GPU pods, which needs GPUs.

…'s Envoy

Envoy's LeastRequest route spreads requests across the inference pods the autoscaler adds; the metrics proxy Service stays the address when the chart runs without Envoy. Removal also deletes the chart's kept Envoy sign-in Secret.

Co-authored-by: maggiezha <[email protected]>
@cv

cv commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author
Authoring session — opening
Field Status Value Evidence or limit
Harness recorded Pi 1.5.0 Session metadata and installed release
Skills recorded nemoclaw-contributor-create-pr (complete read) Skill reads to cutoff
Instruction files recorded AGENTS.md (injected); WRITING.md (complete read); docs/contributing/documentation.md (complete read); .github/PULL_REQUEST_TEMPLATE.md (complete read); .github/SESSION_REPORT_TEMPLATE.md (complete read) Startup injection and reads to cutoff
Tool calls partial typescript: 130 Whole session, which also wrote #14184; includes failed calls; the typescript wrapper hides its nested shell, git and workspace calls
Session window recorded 2026-11-04T09:24Z to 2026-11-04T11:03Z; 99 min First event to cutoff, including idle time; this change began after #14184 opened, at about 10:10Z
Compactions recorded 0 Complete record to cutoff
Models recorded claude-opus-5-5 Model change events; no changes
Reasoning levels recorded medium Thinking-level events; no changes

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

@cv
cv enabled auto-merge (squash) November 4, 2026 11:07
@cv
cv merged commit 6bd9aeb into v1 Nov 4, 2026
56 of 57 checks passed
@cv
cv deleted the docs/gpu-autoscaling-envoy branch November 4, 2026 11:18
@wscurran wscurran added area: docs Documentation, examples, guides, or docs build area: networking DNS, proxy, TLS, ports, host aliases, or connectivity area: security Security controls, permissions, secrets, or hardening chore Build, CI, dependency, or tooling maintenance integration: openclaw OpenClaw integration behavior platform: k8s Affects Kubernetes deployments v1 NemoClaw v1 branch labels Nov 4, 2026
maggiezha added a commit to maggiezha/NemoClaw that referenced this pull request Nov 6, 2026
…'s Envoy (NVIDIA#14188)

## Failure

This follows NVIDIA#14184, whose GPU autoscaling example sends inference to
the chart's metrics proxy Service, `nemoclaw-gpu-metrics-proxy:8081`.
That bypasses the Envoy load balancer the [chart's
recipe](https://github.com/NVIDIA/nemoclaw-community/blob/ae756c28bda501eb9c4b7ec26d977e6f0c6fd2fc/examples/recipes/nvidia/kubernetes-gpu-autoscaling/README.md#deployment-architecture)
puts in front of the GPU pods.
Kubernetes balances connections rather than requests, so a sandbox's
open connection can stay on the first pod while pods the autoscaler adds
sit idle.
Removing the example also left the chart's Envoy sign-in Secret behind.

## Decision

- Point the route at the Envoy Service for the chart's Gateway:
`envoy-nemoclaw-gpu-nemoclaw-gpu-metrics-proxy-4620f768.envoy-gateway-system.svc.cluster.local:80`.
Its route for in-cluster callers uses LeastRequest with one request per
upstream connection. Envoy doesn't authenticate on that route; the
metrics proxy in each pod checks the Bearer key, so the credential is
unchanged.
- The README finds the Service by its Gateway labels. Envoy Gateway
names it `envoy-<namespace>-<gateway>-<first 8 hex of
sha256("<namespace>/<gateway>")>`, so the name is fixed for a given
release and namespace.
- The metrics proxy Service stays documented as the address when the
chart is installed with `ENABLE_ENVOY_LB=0`.
- Removal also deletes `nemoclaw-gpu-metrics-proxy-ingress-auth`, which
`helm uninstall` keeps.

## Validation

- `cargo ci` passed: test ran 1,820 tests and lifecycle 101.
- Walk on a local kind cluster (no GPU), with resources named
`pairing-walk*` that I created and deleted:
- Installed Envoy Gateway v1.8.3 and the `eg` GatewayClass as
`install-hpa.sh` does. Then installed the chart from nemoclaw-community
`ae756c28bd` with `ingress.gateway.enabled=true`, generated basic-auth
values, Ollama with `qwen3:0.6b` on CPU, and arm64 image digests. The
Gateway was programmed, and the Envoy pod was `2/2`.
- The label query returned
`envoy-nemoclaw-gpu-nemoclaw-gpu-metrics-proxy-4620f768` (ClusterIP,
port 80).
- Through that Service, a request without the key got 401, and a keyed
chat completion returned `READY.`.
- From a pod in the deployment namespace with the OpenShell supervisor
label, a request to the Envoy address reached the metrics proxy (401
without the key).
- `nemoclaw plan`, `apply` and `destroy` with the new endpoint
completed, and both sandboxes ran.
  - `helm uninstall` kept the two Secrets the README now deletes.
- Not run: invoking an agent, which needs an OIDC issuer; and
load-balancing across several GPU pods, which needs GPUs.

Co-authored-by: maggiezha <[email protected]>
cv added a commit that referenced this pull request Nov 11, 2026
…ms (#14413)

The release notes now list every user-visible change on `v1` since the
`v0.1.0-rc9` tag, including the breaking ones, and four example pages
drop claims that later changes made false.

## Problem

`docs/about/release-notes.md` listed three breaking changes and none of
the features, fixes, and onboarding changes that reached `v1` after
`v0.1.0-rc9`; it didn't name the configuration shapes the parser now
rejects or the intent record version `v0.1.0-rc9` writes.
Some example claims went stale:

- `examples/spark/README.md` said the pinned OpenShell has the Podman
TLS initialization blocker, ai-openshell/openshell#3427; its fix merged before
OpenShell 0.1.0, and `v1` pins 0.1.7.
- `examples/station/README.md` and `examples/gtc-dc/README.md` required
exactly one visible GPU on the host; since #13929,
`container.gpuDevices` lets a service on a host with more GPUs request
one.
- `examples/hcl/travel-team` said Fabric's Deep Agents adapter can't
turn reasoning off, NVIDIA/NeMo-Fabric#433; NVIDIA/NeMo-Fabric#439 fixed
that, and the pinned catalog's Deep Agents `reasoning_effort` accepts
`none`.
- The travel team cited #13313 for the booking key its service doesn't
receive, but #13313 closed when `openshell_api` landed.

## Change

- `docs/about/release-notes.md` gains "Changes Since v0.1.0-rc9",
grouped by area, from the commits in `v0.1.0-rc9..origin/v1`; where a
later commit changed an earlier one, the entry describes the current
code, and changes added and removed after the tag aren't listed:
- Agents and interfaces: #14037, #14038, #14269, #13981, #14024, #14186,
#14052, #14385, #13971, #13858, #13947, #14039, #14042, #14044, #14343.
- Inference: #13929, #14391, #14396, #14398, #14400, #13963, #13912,
#13964, #14388, #14390, #14397.
- Gateways and Kubernetes: #13909, #13970, #13922 (an existing
namespace, refused at plan by #13756, is now bound; cluster-wide reads
dropped), #14014, #14169, #13921.
- Plan, apply, and diagnostics: #14224, #13756, #14141, #14133, #14135,
#13775, #13744, #13701.
- Onboarding: #13693, #13695, #13741, #13757, #13851, #13978, #14228,
#14233, #14334, #14336.
- Examples and builds: #14166, #14184, #14188, #14191, #14192, #14200,
#13889, #14267, #14312, #14315, #14355, b30e9b4, #13781, #13813,
#14246, and the pins in `versions.json` and `image/fabric/Dockerfile`.
- Its breaking changes since the tag:
- the intent record moving from 15, which `v0.1.0-rc9` writes, through
16 (#14266), 17 (#14343), 18 (#13929), 19 (#14391) and 20 (#14394);
  - name-keyed `sandboxes` and `inferenceProviders` (#13703, #13705);
- a recipe `compatibility.gpu` outside every hardware profile (#13912);
- model tuning the adapter doesn't accept (#14111), and Hermes's
`max_tokens` losing its default (#14296);
  - `skills.paths` resolution (#14296);
  - endpoint and `networkCIDR` validation (#13847, #14081);
- the HCL `gateway_values` attribute (#14014), and Kubernetes ownership
receipts from before #13922 and #14014.
  The two earlier items stay, under their own heading.
- `examples/spark/README.md` replaces the closed OpenShell#3427 blocker
with the Podman and remote-model limits in `docs/resources/limits.md`.
- `examples/station/README.md` and `examples/gtc-dc/README.md` require
one GPU visible in the model container, and point to
`container.gpuDevices` for a host with more.
- `examples/hcl/travel-team/README.md` and `WALKTHROUGH.md` drop the
NeMo-Fabric#433 limitation, and the travel team's booking-key statements
link #14417 instead of #13313.

Not listed, because both changes landed after the tag: Deep Agents Code
(#14043, #14250), `compatibility.gpuCount` (#14391, #14394), and the
"Creating infrastructure state" progress step (#14169, #14248).

Checked and left unchanged: the root `README.md`,
`crates/nemoclaw-onboarding/README.md`,
`crates/nemoclaw-cli/assets/README.md`, `internal-docs/README.md`, the
other example READMEs, and every example YAML header comment. The GPU
autoscaling README and `load.sh` read the JSON fields `OperationResult`
serializes, and ai-openshell/openshell#4287 is fixed only after the pinned
0.1.7. The two pre-tag release-note items still match the schema and
SDK. `docs/README.md` is left to #14412, which retires the stale field
reference snapshot it describes.

Not verified: whether Hermes sends the booking key's placeholder to MCP
servers; #14417 tracks the live check.

## Beyond CI

Each relative link and anchor in the changed files resolves to an
existing file and heading.
@wscurran wscurran added the area: performance Latency, throughput, resource use, benchmarks, or scaling label Nov 13, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: docs Documentation, examples, guides, or docs build area: networking DNS, proxy, TLS, ports, host aliases, or connectivity area: performance Latency, throughput, resource use, benchmarks, or scaling area: security Security controls, permissions, secrets, or hardening chore Build, CI, dependency, or tooling maintenance integration: openclaw OpenClaw integration behavior platform: k8s Affects Kubernetes deployments v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants