mirror of
https://github.com/dsx-ai-factory/nvke.git
synced 2026-12-06 20:32:49 +08:00
## Summary
Each perf stream run now builds a tenant with three control-plane nodes, two monitoring nodes and 50 workers, up from one, one and three. A stream picks its control-plane count with a new parameter, and on Forge the site gives those nodes one shared address. Tenant waits grow with the node count, and the perf stream's time limit goes from 260 to 400 minutes. A stream that leaves the parameter unset keeps one control-plane node, so every other stream keeps its shape and its limits.
## Motivation / Context
Every perf run today measures a tenant with a single control-plane node, so no perf run covers a highly available tenant, where several control-plane nodes share one address. That address is the control-plane VIP, and the suite's Forge path never sent one.
kaps-bench also sizes its load from the worker count: cluster-density-v2 runs nine iterations per worker, so three workers give it 27 iterations and 50 give it 450.
Closes: N/A
Related: https://github.com/dsx-ai-factory/nvke/issues/2089
## Type of Change
- [ ] Bug fix (non-breaking change that fixes an issue)
- [x] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] Documentation update
- [ ] Refactoring (no functional changes)
- [ ] Build/CI/tooling
## Component(s) Affected
- [ ] Controller (`controller/`)
- [ ] REST API (`controller/api/openapi.yaml`)
- [ ] Node agent or updater (`agent/`)
- [ ] gRPC API (`agent/pkg/agent/proto/`)
- [ ] nvkectl CLI (`cli/`)
- [ ] Cluster API provider (`cluster-api-provider-provisioned/`)
- [ ] Helm charts or deployment (`controller/deploy/`)
- [ ] NVKE telemetry pipeline (NKTP) integration (`deploy/nico/nktp/`)
- [ ] nico-sim (`controller/nico-sim/`)
- [ ] OS image or image checker (`os-image/`)
- [x] CI / workflows (`.github/`)
- [x] Docs / examples
- [x] Other: the e2e suite (`controller/test/e2e/`), the release planner and the release policy (`release/`)
## Implementation Notes
### Control-plane count and VIP
- `tenantControlPlaneNodes` joins `tenantWorkers` and `monitoringWorkers` in the stream parameters (`release/pkg/qualification/policy.go`). A negative value fails validation, and zero or unset means one.
- `release/hack/qualify-e2e.sh` carries it to the suite as `-e2e.tenant-control-plane-nodes`, the same way `monitoringWorkers` travels, and the qualify summary prints it.
- `forge-perf.yaml` reads the site's `controlPlaneVIP` from `FORGE_PERF_CONTROL_PLANE_VIP`, empty for none, and `qualify-e2e.yml` passes that variable from the GitHub environment and lists it and the count in its resolved-inputs table.
- On Forge the tenant gets the requested count, and the site VIP only when it has more than one control-plane node. An entry that names its own VIP keeps it. A full-stage run that asks for more than one control-plane node with no VIP stops before any machine is taken, and so does a count below one. Its capacity check counts every control-plane node.
- Only the Forge tenant applies the count. A full-stage run on another provider that asks for more than one control-plane node stops before any machine is taken.
### Perf stream shape
- `release/policy.yaml`: the perf stream sets `tenantControlPlaneNodes: 3`, `monitoringWorkers: 2` and `tenantWorkers: 50`. Its `suiteTimeoutMinutes` goes from 260 to 400.
- `tenantProvisionTimeout` gives 45 minutes up to ten tenant nodes and one more minute for each node above that, so 55 nodes get 90. Two waits use it, the tenant create wait and the readiness check, so neither cuts the other short. Each goes from 45 to 90 minutes for this stream.
- `tenantProvisionTimeout` is computed when the spec tree is built, after flags are parsed, so the nico-forge lane and the qualify site lane both get it. Simulator lanes keep their own create budgets, and their readiness timeout stays 45 minutes at default flags.
- Why 400 minutes: take a site build and checks of about 34 minutes (about 30 on our az41 run), then let the two waits, kaps-bench and the delete each use their full limit: 90 and 90, 75, and 75. With about 25 minutes of site cleanup that is 389. With a shorter limit the suite deadline could fire during the delete and leave machines allocated.
- kaps-bench keeps its time window per run spec. cluster-density-v2 has not run at 450 iterations yet, so the first full-size run shows whether its 30 minutes are enough.
- One policy test now expects two monitoring nodes on the perf stream. Both READMEs (e2e and release) and the two qualification docs describe the parameter, the VIP variable and the new tenant.
## Testing
Run on this branch (base 0a09cd0ed) on macOS arm64:
```bash
make -C release test lint # exit 0
make -C controller/test/e2e test lint # exit 0
```
`TestTenantProvisionTimeout` checks 2, 10, 11, 29 and 55 nodes against 45, 45, 46, 64 and 90 minutes.
New unit tests cover the control-plane count on the Forge tenant (`TestTenantControlPlaneNodes`), the VIP rule (`TestControlPlaneVIP`), the refusal on other providers (`TestControlPlaneNodesOnForge`), the site VIP in the Forge environment file and a negative count in the policy.
`qualify plan` for the scopes full, dsx and dsx-gb300 prints the same plan on this branch and on main, so the nine other streams are unchanged.
Live run with an earlier build of the control-plane count and VIP: `qualify local --scope perf` on our az41 Forge site, perf stream set to three control-plane nodes, one worker, one monitoring node and a VIP from the site's kube-vip range. All three control-plane nodes joined, and 53 of 53 suite specs passed. One control-plane machine hung in a Forge boot loop and joined after a Forge reboot; nothing in this change touches boot.
No run at the full size yet. A full-size run needs the site changes under Rollout notes.
`make preflight` was not run for this change, only the commands above.
## Risk Assessment
- [ ] **Low**: Isolated change, well-tested, easy to revert
- [x] **Medium**: Touches multiple components or has broader impact
- [ ] **High**: Breaking change, affects critical paths, or complex rollout
**Rollout notes:** in this order, before this merges.
1. Give the perf site 56 free machines of the instance type in `FORGE_PERF_INSTANCE_TYPE_CPU_ID`: the site node, three control-plane nodes, two monitoring nodes and 50 workers. Today's perf site has fewer, so every `FORGE_PERF_*` variable and the perf jump host secret move to our az33 site.
2. Both GitHub environments that perf runs read get the same values: `forge` for hand-started runs and `forge-nightly` for runs on beta tags.
3. Both also get a control-plane VIP in `FORGE_PERF_CONTROL_PLANE_VIP`, an address that is free on that site. With three control-plane nodes and no VIP, a run stops before it takes a machine.
4. `NVKE_PERF_WEEKDAYS` stays unset until one hand-started run at this size passes.
Perf job timeout becomes 585 minutes, 400 for the suite plus 185 for setup and cleanup. Every other stream keeps its shape, its 45-minute waits and its timeouts.
## Checklist
- [x] I am familiar with the [Contributing Guidelines](https://github.com/dsx-ai-factory/nvke/blob/main/CONTRIBUTING.md)
- [x] Every commit carries a DCO sign-off (`git commit -s`)
- [ ] `make preflight` passes locally
- [x] I did not skip/disable tests to make CI green
- [x] I added/updated tests for new functionality
- [x] I updated docs if user-facing behavior changed
- [ ] I regenerated generated output rather than editing it by hand (if applicable)
- [x] I disclosed above if a substantial portion of this change was AI-generated
A substantial portion of this change was written with AI assistance. Gate results are from this branch; the live run used an earlier build of the control-plane count and VIP.
Signed-off-by: Ganesh Reddy <gputta@nvidia.com>