Large Site Sizing and Settings v2.3 New
Large Site Sizing and Settings v2.3 New
This page records what a 250-rack ingestion measured on a 3-node site controller and which settings it needed. Use it to size a site controller and to set the ingestion knobs before bringing up a large site. The measurements answer issue 5206, which asked for site controller sizing guidance for large sites, and issue 5974, which asked for cluster sizing for large simulated fleets. This page is a companion to Scaling NICo with Machine-a-Tron, which describes the simulator setup. The versioned scale table, the status and validation method of every published figure, and the site controller sizing guidance per fleet size are on Sizing and Scale Guidance. This page is the detailed record of the 250-rack measurement and the settings it needed.
What Was Measured
The fleet was simulated with Machine-a-Tron: 250 GB200 NVL72 racks, each a
72-GPU NVLink domain. It had 4,500 compute trays with 2 data processing units
(DPUs) each, 2,250 NVLink switches, and 2,000 power shelves. That is 17,750
baseboard management controller (BMC) endpoints, of which the 13,500 trays and
DPUs become machines. Ten Machine-a-Tron instances of 25 racks each ran in
controller mode behind the protocol gateway on the same three site controller
nodes as NICo. The runs covered ingestion only: discovery, preingestion, machine
creation, and the machine state controller up to ready. Provisioning, firmware
updates, and tenant workflows were not exercised. Storage input/output
operations per second (IOPS) were not measured, and no node failed during a run.
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. It is the same gate as
fleet-up on the
10,000-host page. The fleet-up burst is the elevated kube-apiserver load in the
first 2 to 3 hours after that point.
Site Controller Sizing
The three nodes are baseline nodes: two Intel Xeon Gold 6442Y sockets of 24 cores each with Hyper-Threading on, 96 logical CPUs as Kubernetes counts them, and eight 32 GiB DIMMs, 251 GiB of allocatable memory each. The core figures on this page are logical CPUs. They carried NICo, its Postgres, and the simulator. The figures below are from the runs at controller concurrency 80 to 140, the measured range around the recommended 80 to 120.
At steady state NICo itself used 19 cores and 31 GiB. Postgres memory below is the kubelet working set: resident memory plus active page cache. Working set counts the file cache, so over a long run it grows toward the memory limit. The first complete run took 54 hours because of faults fixed before the later runs, and it ran Postgres at the helm-prereqs defaults of 8 cores and 16 GiB. The primary sat at its 8-core limit, its working set reached 15 GiB of the 16 GiB limit, and the run completed. The 20-hour run at the default concurrency and the runs in the table above ran Postgres at 16 cores and 32 GiB. At that limit the primary used about 10 of 16 cores. Its working set peaked at about 14 GiB in the 5-hour runs. In the 20-hour run it sat at 14 to 17 GiB and spiked to 26 GiB for two samples. nico-api used 3 to 6 cores and 6 GiB, and hardware-health used 6 cores and 4.6 GiB. The ten simulator pods used 2 cores and 15 GiB together. Most of the remaining CPU was platform load from the simulator’s 17,750 BMC Services, a load a real site does not have. At steady state that was kube-proxy IP Virtual Server (IPVS) at 2 to 3 cores per node. During the fleet-up burst it was kube-apiserver, at up to 39 cores on the busiest node at its peak sample, measured at controller concurrency 140.
Memory fits the 256 GiB minimum node with room to spare. The highest reading
was 62 GiB on one node, during the two-sample Postgres spike late in the
20-hour run at the default concurrency. That run is outside the table’s range.
These runs show the CPU headroom of a baseline node with two 24-core
sockets and Hyper-Threading. At controller concurrency 80 to
140 the highest per-node 95th percentile was 31 to 50 logical CPUs and the
highest per-node peak was 38 to 54 of the 96. At the busiest samples
kube-apiserver was anywhere from a small share to three quarters of that, and
the rest was Postgres, nico-api, hardware-health, and kube-proxy. Three
baseline nodes carried a site of this size with CPU headroom, and up to 39 of
the peak logical CPUs were kube-apiserver load that a production site does not
carry. The hardware prerequisites still recommend 5 nodes, or nodes with more
logical CPUs, for larger GB200-class sites. The measurements cover three nodes
of 96 logical CPUs only, so validate the sizing for each deployment. The 512
GiB memory recommendation is growth headroom. Give Postgres a 16-core limit: at
its 8-core default it was throttled in 88 percent of Completely Fair Scheduler
(CFS) periods. Its memory needed no raise: the 54-hour run completed at the 16
GiB default, and the 32 GiB of the later runs was headroom. The sizing table in
helm-prereqs/values.yaml stays the memory guidance. Give nico-api 8 cores: it
used 5 to 6 of them at controller concurrency 80 and above.
Time to Ready Is a Concurrency Setting
Time to ready does not scale with cores. With the default max_concurrency and
the explorer settings in
Settings Changed From the Defaults, all
13,500 machines were created within 2.3 hours of fleet-up. The median machine
then took 17.2 hours from creation to ready, and the slowest took 18.1 hours.
nico-api used 6 of 8 cores without throttling. The machine state controller runs
at most max_concurrency machine handlers at a time (default 10) and dispatches
more as handlers finish. With 4,500 hosts queued, each host got one pipeline
step per 20 minutes or so and needed about 47 steps. The per-machine pipeline
time scales with hosts divided by max_concurrency. End-to-end time stops
improving above 120 and more than doubles at 160.
The controller side is monotonic in the setting. Above 80 the handlers contend
more for the admin network segment advisory lock that machine creation also
takes. The mean wait was 53 ms at 80, 84 ms at 100, and about 100 ms at 120 and
140. Between 80 and 140 the end-to-end time stays within run-to-run variance,
and the 3.9-hour best case at 120 did not reproduce on a repeat (4.9 hours). At
160 machine creation starves and the run takes 11.7 hours. Use 80 to 120 with
nico-api at 8 cores. To set it, use the nico-api chart value
machineStateController.maxConcurrency, or put the TOML table
[machine_state_controller.controller] with max_concurrency in the site
config overlay siteConfig.nicoApiSiteConfig, which nico-api merges over the
base configuration.
Settings Changed From the Defaults
Two settings bound how many managed hosts Site Explorer creates at once:
[site_explorer] machine_creation_concurrency (default 4) is the number of
hosts one explorer iteration creates at the same time, and each in-flight
creation holds one permit of the top-level admin_lock_admission_permits
(default 16), which DHCP discovery and machine discovery share. Raise the two
together. Site Explorer clamps its concurrency to at most one below the
permit count so the other flows keep a permit, except that a permit count of
1 still runs one creation at a time, and that creation holds the only permit
while it runs. The
configuration reference
has both contracts.
Two further behaviors decide when racks complete rather than how fast hosts
are created. Site Explorer dispatches the hosts of one run in rack order:
racks with the fewest expected hosts still lacking a machine once this run’s
hosts are created come first, so the racks the run completes lead. Racks equal
on that count are ordered by how many hosts lack a machine now, then by rack
id, with one rack’s hosts kept together, and hosts without an expected rack
come last. Up to machine_creation_concurrency creations are in flight at
once, so the last hosts of one rack overlap the first hosts of the next. A
smaller machines_created_per_run therefore makes each run finish a few racks
instead of spreading its budget over many, at the cost of more runs and their
fixed per-run phases. Hosts that already have a machine and need only the
steady-state repair come after every host that still needs one. A repair takes
one of the machine_creation_concurrency slots and does not count toward
machines_created_per_run, so the repairs of a run are made even after the
run has created its machines_created_per_run hosts. The
carbide_site_explorer_rack_host_fill_count gauge reports, by kind, the
racks with expected hosts, the racks whose hosts all have a machine, and the
racks whose missing hosts the last run had all identified, so it could
complete them. [site_explorer] switch_and_power_shelf_pass_interval (default 15m) sets the minimum time
between switch and power shelf creation passes during the host creation phase.
A pass starts once the interval has elapsed and the host creations in flight
have finished, and one more pass runs at the end of the run, so switches and
shelves that complete preingestion while hosts are being created wait about
one interval rather than for the end of a long run.
The TOML keys are nico-api configuration: the chart’s base file merged with the
site config overlay siteConfig.nicoApiSiteConfig. Set them in the overlay.
The two settings that name a chart value can be set through the nico-api chart
instead, and an overlay entry for the same key takes precedence over the chart
value. The hardware-health [rate_limit] row is that chart’s configuration,
set through its env map as nico-hardware-health.env in the same values
file.
To reproduce the fleet, run Machine-a-Tron as ten instances of 25 racks each in
controller mode behind the protocol gateway. Keep them on one BMC segment with
the BMC addresses published as Service externalIPs. The fleet needs one BMC
address per endpoint, 17,750 in total, so the segment must be at least a /17.
Refer to
Replicating the 250-Rack Fleet
for the ordered steps. The simulation overlay’s simulated-oob segment is a
/18, which holds 16,384 addresses, so the runs used one 10.200.0.0/17
segment instead.
Reading the Numbers
- All figures come from simulated BMCs with a single nico-api replica.
- The admin segment advisory lock decides the creation side. Its mean wait grew from 53 ms at controller concurrency 80 to about 100 ms at 120 and 140. These runs held the lock exclusively on every path. Machine creation and a host’s first discovery take it shared on IPv4-only admin segments.
- The per-machine pipeline (creation to
ready) is the part that scales with the setting. The creation side (site explorer iterations) is what the remaining time is made of.