Scaling NICo with machine-a-tron: 100 → 1000 → 4500 → 10,000 → 20,000 simulated hosts
Status: Scale testing validated with up to 78,952 BMC endpoints (1,112 GB200 NVL72 racks). Refer to Sizing and Scale Guidance for the fleet-level scale table.
Quick start
Reset the site between runs, check the BMC network against the ServiceCIDR, then install a scale profile. Refer to Teardown and Reset for the reset. Cluster Prerequisites covers the namespace label and pull Secret the install expects. Controller Mode lists the Core values a simulation site needs.
Replicating the 250-Rack Fleet
The quick start above installs host-count fleets. The 250-rack measurement in Large Site Sizing and Settings ran ten machine-a-tron pods of 25 GB200 NVL72 racks each in Controller Mode behind the protocol gateway. To replicate it on a fresh site:
- In
helm-prereqs/values.yaml, setsiteCredentials.enabled: true(Site Credentials Secret), and raisepostgresql.resources.limitsto the Postgres limits in Settings Changed From the Defaults beforesetup.shruns. Teardown deletes thepostgresnamespace, so a resize applied to the live cluster is lost on the next install. - Copy
helm-prereqs/values/nico-core-simulation.yaml, fill in the site blanks, and pointnico-api.credentials.file.existingSecret.nameat the Secret from step 1. The copy already carries the[site_explorer]budget,max_concurrency, and the nico-api CPU limit from the sizing page. It also setsmax_database_connections = 900and enables the hardware-health rate limiter, which keep the connection pool and the Redfish session rate within limits at this scale. - In the same copy, widen
[networks.simulated-oob]to a/17before nico-api first starts, as the sizing page’s fleet paragraph explains, and pointnico-api.rms.apiUrlat the protocol gateway (Pointing NICo at It). - Deploy the DOCA Platform Framework (DPF) simulator, then run
./setup.sh --skip-dpf --core-values <copy>fromhelm-prereqs/. The overlay header and the dpf-sim-controller quick start give themake deploycommand and the namespace it creates. - Check the rack profile. nico-api derives an expected rack’s profile id from
the expected rack group that declares it: the group topology in upper case,
an underscore, the compute vendor in upper case, and the suffix
_NO_POWERSHELFwhen the group declares no power shelf. It replaces the requested id with the derived one and rejects the rack unless that id exists under[rack_profiles]. With PR 6995, machine-a-tron declares one group per rack from its rack type, sorack_profile_idin the machine-a-tron values must equal the derived id (GB200_NVL72R1_C2G4_WIWYNNforwiwynn_gb200_nvl72,GB300_NVL72R1_C2G4_LENOVOforlenovo_gb300_nvl72), which the nico-api chart ships; that PR also updates the deployment page and the 10-rack values. On a site installed before it, create the groups withnico-admin-cli expected-rack-groupfirst. Inspect the declarations withnico-admin-cli expected-rack-group showandnico-admin-cli expected-rack show. - Create the labeled
nico-matnamespace and pull Secret (Cluster Prerequisites), runhelm-prereqs/check-mat-service-cidr.pyagainst the machine-a-tron values with--site-configpointing at the copy from step 2, then install machine-a-tron fromhelm-prereqs/values/machine-a-tron-250racks.yaml, whose per-podids,rack_profile_id,resources, andstartupProbeare already sized for 25 racks per pod. Deploying a 250-Rack Site gives the per-pod sizing and the Service count to expect. - Leave
max_concurrencyat the overlay’s 80 or raise it to 120. Time to Ready Is a Concurrency Setting gives the measured range and how to set it, and the settings table lists the[api_admission_control]value used for the simulated fleet.
10,000-Host Simulated Fleet
helm-prereqs/values/machine-a-tron-556racks.yaml and
helm-prereqs/values/nico-core-10k-hosts.yaml define a fleet of 556 GB200
NVL72 racks: 10,008 hosts with 2 data processing units (DPUs) each, 5,004
NVLink switch trays, and 4,448 power shelves, which is 39,476 BMC endpoints
and 30,024 NICo machines. It runs as 23 machine-a-tron pods behind the
protocol gateway with
per-pod Services,
two Services per pod instead of one per BMC, so the cluster ServiceCIDR no
longer caps the fleet. The figures in this section come from simulated fleets
of that size on a three-node site controller. Two runs are cited. The earlier
run ran a build of the v2.4 line. The later run ran a build of the v2.5 line,
taken from main after the v2.4 release branch was cut, with the scaling
fixes named on this page and
pull request 8142
applied, so the site explorer and the partition monitor it measured behave
differently from a release. Unless a sentence names the earlier run, the
figures are from the later run. Read the figures as expectations rather than
as a reproduction target.
Times count from fleet-up, the point at which every simulator pod is Ready,
the protocol gateway answers, and the controller has published every pod’s
Services, so every simulated BMC address is reachable.
Large Site Sizing and Settings records
the 250-rack measurements that these settings build on. This section is the
10,000-host fleet definition behind the
site controller sizing guidance.
Hardware Baseline
Three control-plane nodes of the class the 250-rack measurement used, 96 cores and 256 GiB each, carrying NICo, its Postgres, and the simulator. Treat 96 cores and 256 GiB per node as the tested baseline for this fleet. Smaller nodes were not run. The measured per-node peaks were 43.1 cores (p90 39.8) and 98.9 GiB of working set on the node carrying the Postgres primary and nico-api, and 15.8 and 22.6 cores with 51.7 and 58.2 GiB on the other two nodes. The same fleet on the earlier run, with nico-api and Postgres at 16 cores each, peaked at 56 to 75 cores sustained and 69 to 99 GiB per node. The Postgres primary peaked at 36.9 GiB of its 96 GiB limit and ran a mean of 14 to 15 of its 32 cores from the third hour after fleet-up to convergence, with a 26.8-core peak in the first minutes. nico-api ran its 32 Tokio workers at 49 percent busy over the run and 59 to 68 percent during the ready ramp, peaked at 18.9 cores, and grew to 22.8 GiB of its 32 GiB limit.
Commands
Run every command from the repository root with the site kubeconfig and the image variables exported. Replace each placeholder:
setup.sh creates the imagepullsecret Secret that the Core values reference
from REGISTRY_PULL_SECRET. The protocol gateway serves the Rack Manager
Service (RMS) mock, so the install skips the RMS chart with --skip-rms and
needs no NICO_RMS_IMAGE_TAG.
-
Size Postgres and enable the site credentials Secret in
helm-prereqs/values.yaml.setup.shhas no flag or environment variable for the prerequisites values, andhelmfile.yamlfixes thenico-prereqsrelease tovalues.yamlandvalues/nico-prereqs-dynamic.yaml.gotmpl, so edit the file. The Postgres limits apply to each of the three Patroni instances:Teardown deletes the
postgresnamespace, so a resize applied to the live cluster is lost on the next install. -
Copy the Core template and fill in the fields marked
REQUIRED. The copy holds site addresses, so keep it out of version control:The template already points
nico-api.credentials.file.existingSecret.nameatnico-site-credentials, the Secret that step 1 renders under its defaultsiteCredentials.secretName. It carries the[site_explorer]budget of 3200 explorations, 300 hosts, and 480 concurrent explorations per run,max_database_connections = 900,max_concurrency = 80,partition_monitor_max_concurrent_groups = 64, the nico-api limits of 32 CPU and 32 GiB withTOKIO_WORKER_THREADS=32,apiAdmissionControl.enabled: false,nico-api.rms.apiUrlpointed at the gateway, and the simulated segments and pools sized for the fleet:simulated-oobas a/16,simulated-adminandsimulated-underlayas a/17, 65,534 loopback addresses, and 30,000 autonomous system numbers (ASNs). The/16is the smallest prefix that holds 39,476 BMC leases. Do not widen it further, because the allocator cost grows with the prefix (DHCP Address Space). The site TOML also carriesmachine_creation_concurrency = 8,switch_and_power_shelf_pass_interval = "5m", andadmin_lock_admission_permits = 32from pull request 8142. A nico-api build without that change logs each of them as an unknown configuration key and starts with its own defaults, becausedeny_unknown_fieldsis off by default. -
Deploy the DOCA Platform Framework (DPF) simulator, then install NICo.
setup.shresolves--core-valuesagainsthelm-prereqs/, so it runs from there in a subshell. For a registry that needs credentials, create the pull Secret beforemake deployand keep thePULL_SECRETargument. Otherwise drop the twokubectlcommands and the argument. The Secret holds only anauthentry, the base64 ofuser:password, so a quote or backslash in the key cannot break the JSON. It is built from a process substitution fed by the shell’sprintfbuiltin, the patternsetup.shuses for its DPF pull Secrets, so the key never appears in a process argument.DPF_NAMESPACEon themakeline overrides a namespace the Makefile remembers from an earlier deploy: -
Create the labeled
nico-matnamespace and its pull Secret, run the ServiceCIDR check, and install the fleet. The values file’srack_profile_id,GB200_NVL72R1_C2G4_WIWYNN, is the id nico-api derives from the rack group machine-a-tron declares, and the nico-api chart ships it. Step 5 of the 250-rack list explains the derivation and thenico-admin-cli expected-rack-groupcommands for a site installed before machine-a-tron declared its groups. Createmachine-a-tron-pullinnico-matwith the Secret command of step 3, changing-nand the Secret name, or skip it when the registry needs no credentials. Thehelm templatecount prints 0 when the render carries no machine group.The controller publishes two Services per pod, 46 in total, once the pods hold leases. A device whose Redfish port pair differs from its pod’s keeps a per-device Service and the controller logs a warning, so a count above 46 names a misconfigured mock rather than a controller fault:
What to Expect
From helm upgrade to fleet-up took 10 to 15 minutes on the 556-rack
simulations, with all 23 pods Ready within 10 minutes. Measured from fleet-up
on the later run:
The per-machine pipeline took 4.4 h at the median from creation to ready
(p90 5.2 h, maximum 5.4 h). Machines were 50, 90, and 100 percent ready at
5.8, 7.1, and 7.5 h, and racks at 6.6, 7.7, and 7.9 h. Plan for about 8 hours
from fleet-up to convergence with these settings, plus about an hour of
teardown, install, and simulator deploy before fleet-up. The same fleet on the
earlier run, with nico-api and Postgres at 16 cores each, created its last
machine at 2.9 h, took 6 h at the median from creation to ready, and
converged at 10.5 h.
What to Watch
-
Postgres primary memory and CPU. The working set rises toward 37 GiB over the run, most of it in the last three hours as the nico-api connection pool opens toward its 900 cap, and the primary runs at 14 to 15 of its 32 cores from the third hour. Both are expected. A non-zero
oom_killcount is not. On the earlier run, at a 16-core limit, the primary was CPU-bound from the sixth hour. The command resolves the primary through itsspilo-role=masterlabel and reads cgroup v2 files, which the measured nodes expose. On a cgroup v1 nodememory.currentdoes not exist, so the chain stops before theoom_killcheck: -
Total Postgres connections. The nico-api pool reached 898 of its 900 cap on the later run, against the
max_connections = 1024that helm-prereqs sets for the cluster it shares with the REST, Temporal, and Keycloak databases. The total across databases was not measured. Check it on the primary during the last three hours: -
nico-api restarts. The later run had none. A restart under load points at the connection pool or at admission control (refer to the caveats):
-
Explorer and partition monitor iteration time, from the nico-api metrics endpoint on port 1080 (
carbide_site_explorer_iteration_latency_millisecondsandcarbide_nvlink_partition_monitor_iteration_latency_milliseconds, refer to Core Metrics). The partition monitor averaged 10.4 s per iteration over the later run, and its 10 minute window means peaked at 24 s as the last racks cameready. An iteration longer than the 60 s monitor interval is an overrun, and the later run logged none. On the earlier run the mean was 17.1 s, the window means reached 42 s, and 8 overruns occurred during the rack ramp. The maximum iteration time is not recorded, because the top finite bucket of the latency histogram is 10 s.
Caveats
- Admission control stays off for the simulator. The 23 machine-a-tron pods
present one client key, so the per-client limits of
[api_admission_control]reject the whole fleet at once and the agents retry together, which turns a rejection into a retry storm. On this fleet with admission control enabled, the global limits raised to 512 requests in flight and 8,192 pending, and the per-client limits of 8 and 64 and the 5 s pending timeout at their defaults, nico-api rejected 97.4 million of 113.4 million calls in 8 hours, 86 percent, most of them DPU agent calls. Only 1,386 of 30,024 machines and no rack reachedready, and the simulator pods restarted 16 times at startup on the rejections. KeepapiAdmissionControl.enabled: falsefor the simulated fleet, and keepapiAdmissionControl.enabled: true, the chart default, on any fleet where each DPU has its own client identity. - Give each simulator pod 12 GiB. At a 6 GiB limit, pods of this fleet were
killed by the out-of-memory (OOM) killer on a prior run while nico-api was
slow, and a restarted pod discards its mock state and repeats its
registration, under 10 minutes measured and budgeted at up to 30 minutes by
the startupProbe.
machine-a-tron-556racks.yamlsets limits of 4 CPU and 12 GiB and requests of 1 CPU and 4 GiB per pod. - Build the REST image from the same
mainrevision as the charts.setup.shinstalls the in-treehelm/restcharts, and a REST image older than those charts can fail to start because the charts pass flags that the older binary does not know. With such a tag,nico-rest-site-managercrash-looped on an unknown flag andsetup.shfailed phase[7g/7]on its Helm wait.NICO_REST_IMAGE_TAGisgit describe --tags --first-parent --alwaysof thatmaincommit with the-amd64suffix, the per-architecture tag the REST build workflow publishes for everymaincommit (the same name without the suffix is the multi-architecture manifest). - Reset the DPF custom resources (CRs) with the inventory. At this size the
truncate in Inventory Reset
leaves about 20,000 objects each of
dpudevicesanddpusbehind. Run the collection delete given there until every kind lists no objects. Expect about 5 minutes for the four kinds. - The later run used a DPF simulator image built before
pull request 5984
and
pull request 6696,
so a
dpf-sim-controllerbuilt frommainis newer than the one measured. - machine-a-tron’s
ScoutStreamcalls are denied unless the site TOML setsallow_machineatron_scout_stream = trueunder[auth], a simulation-only setting that lets the simulator claim any machine ID. The denials count incarbide_auth_denied_totaland do not block convergence. Tracked in issue 7796. - The Service count is 46, not the BMC count. The 250-rack check that the controller-managed Services approach the BMC count does not apply at pod granularity.
- The fleet uses 49,484 of the 65,536 externalIP and port entries that kube-proxy in IPVS mode holds per cluster, so a fleet above 736 racks needs one of the options in kube-proxy IPVS Capacity. Run its preflight before a larger fleet is installed.
20,000-Host Simulated Fleet
helm-prereqs/values/machine-a-tron-1112racks.yaml and
helm-prereqs/values/nico-core-20k-hosts.yaml define a fleet of 1,112 GB200
NVL72 racks: 20,016 hosts with 2 DPUs each, 10,008 NVLink switch trays, and
8,896 power shelves, which is 78,952 BMC endpoints and 60,048 NICo machines,
twice the 556-rack fleet. It runs as 45 machine-a-tron pods behind the
protocol gateway with per-pod Services, 90 Services in total, and its BMC
leases split between two /16 segments because they exceed one.
The figures in this section come from two completed runs of that fleet on the same three-node site controller as the 556-rack runs: the first converged 14 h after fleet-up and the second, three days later with the DPF simulator at a higher CPU limit and a clean start, 11 h 30 min.
Both ran a build of the v2.5 line taken from main at commit 38a05157c,
after the 10,000-host values merged, which carries
pull request 8142
and every scaling fix named on
Sizing and Scale Guidance, all
merged to main, with no unmerged Core change. The machine-a-tron and
controller images carried the RMS mock job-retention change for
issue 8998,
merged in
pull request 9117.
Use simulator images built from a revision that includes that fix. Refer to
the caveats. Read the figures as expectations rather than as a reproduction
target. Times count from fleet-up,
as defined in the 10,000-host section. This section is the 20,000-host fleet
definition behind the
site controller sizing table.
Hardware Baseline
The same three nodes as the 10,000-host fleet, 96 logical CPUs and 251 GiB of allocatable memory each, carrying NICo, its Postgres, the 45 simulator pods, and the DPF simulator. The Core values keep nico-api off the Postgres primary’s node with a required anti-affinity, so the two heaviest components never share a node. The scheduler placed nico-hardware-health with the Postgres primary in the first run and on the third node in the second.
Measured from fleet-up to convergence, the nodes averaged 16 to 42 cores. The first run peaked at 20, 50, and 63 cores and 91, 118, and 142 GiB of working set per node, with both the 63-core and the 142 GiB peaks on the node that carried the Postgres primary and hardware-health. The second run peaked at 31, 51, and 52 cores and 97, 121, and 117 GiB, with no node carrying two of the three heavy components. By component, summed over the nodes:
A converged fleet is not idle for the site controller. Sampled for 52 hours after the first run converged, with nothing changing in the inventory, nico-api averaged 35 cores with a 43-core peak and a 51 GiB working set, the Postgres primary 27 cores with a 40-core peak and 70 GiB, and hardware-health 7 cores and 25 GiB, which kept the nico-api and Postgres nodes at 47 and 46 cores mean. Size a 20,000-host site for that resting load, not only for ingestion. Smaller nodes were not run.
Cluster Prerequisites
Two limits of the Kubernetes cluster itself are reached before the fleet
converges. Both are properties of the simulator’s Service model, which
publishes every BMC and switch NVOS address as a Service externalIP, and
neither applies to a site with real hardware. Apply both changes before the
simulator is deployed.
-
kube-proxy ipset size. In IP Virtual Server (IPVS) mode kube-proxy records every Service
externalIPand port in theKUBE-EXTERNAL-IPipset on each node, and it creates that set withmaxelem 65536, a value compiled into kube-proxy with no flag or configuration field (kube-proxy v1.30 was measured, and the upstream request to make it configurable, kubernetes/kubernetes issue 129389, was closed without a change). This fleet needs 98,968 entries per node, 89 per rack: 71 BMC addresses on one port and 9 switch NVOS addresses on two ports. A stock kube-proxy logsHash is fullonce the set is full and leaves the remaining addresses unprogrammed on that node, so the same BMC answers from one node and refuses connections from another. On the first attempt at this fleet machine creation plateaued at 55,110 of 60,048 and no rack converged until kube-proxy was rebuilt on the live cluster. The arithmetic puts the ceiling of a stock kube-proxy at about 736 GB200 NVL72 racks with per-pod Services, and the 556-rack fleet fits under it. The measured runs ran a kube-proxy rebuilt from the cluster’s Kubernetes version withMaxElemraised to 1,048,576 andHashSizeto 65,536 inpkg/proxy/ipvs/ipset/ipset.go, rolled out one node at a time withkube-proxy --cleanuprun on the node before its new pod started, so that the set is recreated with the new size. The first full sync after a cleanup took 14 to 16 minutes per node at this fleet size. Verify the limit and the fill on each node once every lease is out:Every node should report 98,968 entries. kube-proxy in iptables or nftables mode was not measured. Issue 9003 tracks the documentation of this limit.
-
calico-node probes. With about 89,000 addresses on each node’s
kube-ipvs0interface, the BIRD daemon in calico-node takes longer than the default probe timeout of 10 s to answer, the kubelet kills calico-node, and that node’s data plane and the machine creation that depends on it stop until the pod is back. Before the simulator is deployed, switch the DaemonSet toOnDelete, so that running pods are not restarted by the change, raise both probes to a 120 s timeout and 60 failures, then replace the calico-node pods one at a time, waiting for each replacement to be Ready:Container 0 of the DaemonSet is
calico-nodeon a kubeadm or Kubespray cluster. The measured runs had no calico-node restart with this override. Restore theRollingUpdatestrategy after the run. A re-apply of the Calico manifest reverts the probes. Issue 7805 tracks a preflight for it.
Commands
Export the variables listed in the 10,000-host section and run every command from the repository root. The steps are those of the 10,000-host fleet with the 20,000-host values and limits.
-
Size Postgres and enable the site credentials Secret in
helm-prereqs/values.yaml. The database of the 556-rack fleet measured 4.4 GiB, so the 10Gi default volume leaves no room for twice the rows and the write-ahead log. The limits apply to each of the three Patroni instances: -
Apply the two cluster prerequisites above.
-
Copy the Core template and fill in the fields marked
REQUIRED. The copy holds site addresses, so keep it out of version control:The template carries everything the 10,000-host template carries, with the
[site_explorer]budget raised to 4500 explorations, 450 hosts, 680 concurrent explorations, andmachine_creation_concurrency = 12per run,max_concurrency = 120,partition_monitor_max_concurrent_groups = 96, nico-api limits of 64 CPU and 64 GiB withTOKIO_WORKER_THREADS=64and a required anti-affinity from the Postgres primary, two BMC segments (simulated-oobat10.200.0.0/16andsimulated-oob-bat10.202.0.0/16),simulated-adminandsimulated-underlayas a/16each, 60,000 ASNs, a 10 s liveness probe timeout for nico-hardware-health, and probe and request settings for nico-ssh-console-rs. The 65,534 loopback addresses stay, with 60,048 used. Two/16BMC segments rather than one/15: a/15at10.200.0.0would containsimulated-underlay, and the allocator cost grows with the prefix (DHCP Address Space). -
Deploy the DPF simulator, raise its limits, then install NICo. The simulator ships with limits of 2 CPU and 4Gi, and at 40,032 DPUs it runs at its CPU limit through the DPU phase: at 2 CPU the DPF objects of this fleet were all created 5 h 26 min after fleet-up, at 8 CPU 5 h 00 min, and at 8 CPU it still held 7.9 cores through the first five hours, so the limit shortens the phase without removing the bottleneck (issue 9002). Create the pull Secret as in the 10,000-host section when the registry needs one:
After
setup.sh, confirm that nico-api and the Postgres primary are on different nodes. The anti-affinity is checked at scheduling only, so a Patroni failover during a run can put the primary on nico-api’s node: -
Create the labeled
nico-matnamespace and its pull Secret as in the 10,000-host section, run the ServiceCIDR check against both BMC segments, and install the fleet:The check prints the three networks it resolved,
10.200.0.0/16,10.201.0.0/16, and10.202.0.0/16, and fails when the site config does not declare the second BMC segment. The controller publishes two Services per pod, 90 in total, once the pods hold leases:
What to Expect
From helm upgrade to fleet-up took 16 minutes on the second run, with all
45 pods Ready within 14 minutes. The first run’s deploy was interrupted by a
client-side outage and is not a measure. Measured from fleet-up on the second
run, with the first run’s figure in parentheses where it differs by more than
a few minutes:
Against the 556-rack fleet, twice the hosts took 2.1 times as long to create
every machine, 2.0 times as long to bring every switch ready, and 1.5 to
1.8 times as long to converge. Plan for 12 to 14 hours from fleet-up to
convergence with these settings, plus about an hour and a half of teardown,
install, and simulator deploy before fleet-up. Machine creation ran at 71 to
87 machines a minute averaged over the run, with peaks of 240 to 475 a
minute, and hosts reached ready at a steady 25 to 33 a minute after
creation finished.
What to Watch
The commands of the 10,000-host section apply. The figures to compare against change as follows.
- nico-api and Postgres primary placement, with the commands above. The two must stay on different nodes for the whole run.
- Postgres primary memory and CPU. The working set rose to 56 and 68 GiB of
the 128 GiB limit on the two runs and to 70 GiB at rest, and the primary ran
27 to 34 cores from the fourth hour after fleet-up to convergence, with a
peak of 38. Both are expected. A non-zero
oom_killcount is not. Expect the nico-api connection pool to approach its 900 cap. - nico-api CPU. 25 to 26 cores mean and 36 at peak during ingestion, then 35 mean and 43 peak with the fleet converged. nico-api did not restart on either run.
- nico-hardware-health restarts. None on either run with the 10 s liveness timeout in the Core values. At the chart’s 1 s timeout the collector was killed 10 times in about 12 hours at this host count.
- Partition monitor pass time. The monitor averaged 17 to 19 s per pass from
fleet-up to convergence, with 30-minute means up to 30 to 33 s as the racks
came
ready, and overran its 60 s interval once in the first run and never in the second. Readcarbide_nvlink_partition_monitor_iteration_overruns_totalon the nico-api metrics endpoint, since the pass-time histogram tops out at 10 s. - The kube-proxy ipset fill, with the
ipsetcommand above. Every node must hold 98,968 entries once every lease is out. A lower count on one node is the cap, and machine creation stalls short of 60,048 when it is hit. - Restarts of nico-ssh-console-rs and the nico-rest site workers. Both crash loop at this machine count for the reasons in the caveats, and neither is on the convergence path.
Caveats
The caveats of the 10,000-host section apply, with these additions.
- Before the retention fix, machine-a-tron’s RMS mock kept a job’s status for
one hour. One
switch controller pass over 10,008 switches takes about 39 minutes at the
default switch controller concurrency, and a certificate job needs three
touches one pass apart, so the mock forgot 48 of about 1,550 certificate
jobs in flight on the first attempt at this fleet, and the 48 switches stayed
in
errorwith their 48 racks indiscovering. The switch controller does not retry fromerroron its own (issue 5883). Both completed runs carried the retention fix for issue 8998, merged in pull request 9117, which sets the default retention to 24 hours, and saw no switch inerror. Use simulator images built from a revision that includes that fix. - nico-ssh-console-rs crash loops at this machine count. Its BMC connection
pool opens one connection per machine and exhausts the container’s 65,535
file descriptors once about 22,000 machines are
ready, after which the process exits every few minutes (issue 9001). The probe and request settings in the Core values let it start and stay Ready for the first hours instead of being killed before it binds port 22, and they do not fix it. The console is not on the convergence path. - The nico-rest site workers crash loop at their chart default of 1Gi. Their
inventory sync loads every machine of a page with up to 1,000 pages in
flight, so the working set tracks the machine count: the 1Gi default is
exceeded near 1,800 machines, and an 8Gi limit
(
nico-rest-workflow.siteWorker.resourcesinhelm-prereqs/values/nico-rest.yaml) reaches about 35,000 before the restarts return (issue 9000). Sizing by limit does not reach 60,048 machines. The workers are not on the convergence path. - The DPF simulator runs at its CPU limit through the DPU phase at any limit measured, 2 and 8 CPU. Its reconcile concurrency is the next lever (issue 9002).
- nico-hardware-health’s chart default liveness timeout of 1 s kills the collector at this host count. The Core values set 10 s, and issue 8999 tracks the chart default.
- Resetting the DPF custom resources leaves tens of thousands of
dpudevicesanddpusobjects behind the inventory truncate. Run the collection delete of Inventory Reset until every kind lists no objects. - The Service count is 90, not the BMC count.
What this work delivers
- Controller Mode in the
nico-machine-a-tronchart, with themat-k8s-controllerfor dynamic per-BMC Services, and the scale profiles underhelm-prereqs/values/:machine-a-tron-scale.yaml,machine-a-tron-multipod.yaml,machine-a-tron-scale-4500.yaml, andmachine-a-tron-scale-4500-proxy.yaml.machine-a-tron-10racks.yamladds the ten-rack GB200 NVL72 example with the Rack Management Service (RMS) mock behind the protocol gateway.machine-a-tron-250racks.yaml,machine-a-tron-556racks.yaml, andmachine-a-tron-1112racks.yamladd the 250-, 556-, and 1,112-rack fleets. helm-prereqs/values/nico-core-simulation.yaml, the NICo Core values for a simulation site:allow_insecure_discovery, the site-explorer throughput knobs, the three simulated networks, and the pool sizes.nico-core-10k-hosts.yamlis the same template sized for the 556-rack fleet (a/16OOB segment), andnico-core-20k-hosts.yamlfor the 1,112-rack fleet (two/16OOB segments).helm-prereqs/check-mat-service-cidr.py, the BMC network versus ServiceCIDR preflight, andhelm-prereqs/ingestion-rate-report.sh, the per-run ingestion curves from the database timestamps.
Architecture: Controller Mode
The mat-k8s-controller dynamically creates one Service per BMC:
- Discovers machine-a-tron pods via
nvidia-infra-controller/mat-service=truelabel - Polls
/machines/statusfrom each pod - Creates Services with the BMC IP (assigned by NICo DHCP) as
externalIPs - Services route to correct pod via
nvidia-infra-controller/pod-nameselector - With
mat-k8s-controller.config.serviceGranularity: podit creates two Services per pod instead, one carrying every BMC address and one every switch NVOS address, so a pod takes two clusterIPs rather than one per device. Use it when the fleet’s BMC count approaches the ServiceCIDR size. Refer to the chart README section Per-pod Services.
Requirements:
- The BMC network must lie outside the Kubernetes ServiceCIDR, pod CIDR,
node network, and networks that nodes or pods must otherwise reach
(BMC IPs are Service externalIPs, for which kube-proxy programs forwarding
rules on every node). Run
helm-prereqs/check-mat-service-cidr.pyagainst the values file before every install. It resolves each BMC relay to its[networks.*]prefix and fails on an overlap or when it cannot determine the ServiceCIDR.SCALE_SERVICE_CIDRSreplaces the cluster lookup, andSCALE_BMC_PREFIXESadds networks the site config does not declare yet - kube-proxy in IPVS mode holds at most 65,536 externalIP and port entries per cluster, 736 GB200 NVL72 racks at per-pod granularity. Refer to kube-proxy IPVS Capacity for the arithmetic and the preflight
- NICo siteConfig needs
allow_insecure_discovery = trueand a network covering the BMC IP range - Leave
site_explorer.bmc_proxyunset - NICo dials each BMC IP directly
NICo siteConfig (helm-prereqs/values/nico-core-simulation.yaml):
The file also declares simulated-admin and simulated-underlay (the
underlayDhcpRelayAddress target) and sizes [pools.lo-ip] and
[pools.fnn-asn] for 4,500 hosts with 2 DPUs.
Complete issue log
Every issue below was found live on a 3-node development cluster. The Fix column names the file or section that now carries each fix.
Baseline (override-mode) end-to-end
Scale mode (100 hosts × 2 DPUs and up)
A note on the verification loop
The retired setup script’s final phase actively shepherded the pipeline. It
re-cleared AvoidLockout and Unauthorized latches (they are one-way by
design) and unparked healthy endpoints. With pinned BMC passwords the latch
clearing was a no-op for the whole stage-3 run, so the chart path carries no
equivalent. An operator clears a latched endpoint with
nico-admin-cli site-explorer refresh <bmc-ip> or
nico-admin-cli site-explorer clear-error <bmc-ip>.
Results by Stage
Stage-3 observations worth reviewers’ attention:
- The ingestion pipeline is fully autonomous once configured. Client connectivity to the cluster dropped twice for extended periods during stage 3; ingestion continued unattended both times (e.g. +720 machines through one outage, +4,000 through another). The shepherd loop’s latch clearing, critical in earlier iterations, was a no-op for the entire stage-3 run thanks to pinned credentials.
- Measured stage-3 rates on the 3-node development cluster: DHCP
~110 interfaces/min; exploration ~120 to 360 endpoints/cycle; creation
40 to 240 machines per completed explore cycle, sawtoothing with cycle
phasing (identification rebuilds
explored_managed_hostseach cycle). - Per-MAC Vault credential lifecycle needs batching at scale (issue 18
below): site-explorer stores one
machines/bmc/<mac>/rootentry per BMC, 13,500 entries. Deleting them one API round-trip at a time takes hours, batched server-side it takes seconds. expected_machinesauto-registration worked at stage 3 (9,890+ registered by machine-a-tron via the API), confirming the RBAC grant path.
Additional issue found at stage 3:
Open Questions - Feedback Wanted
- RBAC:
Machineatron→AddExpectedMachineis granted on main (commit9a9ba072a), and machine-a-tron registers expected machines through the API. Resolved. - Seed-once reconcile semantics: networks, and resource-pool
definitions are all create-once; config changes on established sites are
silently ignored (or warn-only). The chart path declares them before first
start and uses
nico-admin-cli network-segment createandresource-pool growon established sites. Should NICo support declarative updates for these instead? - AvoidLockout at scale: one-way latches are right for real BMCs, but
simulation fleets guarantee latch storms during resets. Worth a
site-config escape hatch (e.g.
site_explorer.lockout_protection = false) instead of operator-side clearing? - Mock fidelity: the mock returns to its configured password after a BMC reset. Real BMCs persist a rotated password across resets. Should bmc-mock persist rotated credentials so the rotation path can be exercised at scale without pinning?
- lo-ip per machine: is one loopback IP per machine the intended allocation at 13.5k machines, and is there guidance for sizing this pool in production site templates (dev templates ship 3)?
- Cycle economics: identification/creation only run at the end of a
completed
explore_sitecycle, soexplorations_per_runtrades sweep throughput against creation latency in a non-obvious way. Worth documenting (or decoupling creation from the exploration cycle)?