Capacity
How many sensors one probeward serve keeps on schedule. The figures come from crates/probeward-server/examples/capacity.rs, which runs the real runtime (engine loop, poller, journal, writers, snapshots) against a scratch PostgreSQL database:
cargo run --release -p probeward-server --example capacity -- <sensors> <seconds>A simulated poll sleeps 5 to 45 ms and returns two channels, so the run measures the core and the database, not the network or the targets. There are 10 sensors per device and 100 devices per group, and every sensor is polled every 60 s.
Host
- 11th Gen Intel Core i7-11850H, 16 threads, 125 GiB RAM, Linux.
- PostgreSQL 18 in Docker on the same machine (
compose.dev.yml), default settings. - Release build. The probe and the database share the machine.
Results
| 1,000 sensors | 10,000 sensors | |
|---|---|---|
| Run time | 300 s | 300 s |
| Interval | 60 s | 60 s |
| Sensors polled at least once | 1,000 | 10,000 |
| Polls started within 10% of the interval | 3,516 of 3,516 (100%), worst 0.00 s off | 35,063 of 35,063 (100%), worst 0.04 s off |
| Gaps over 1.5 intervals / missed intervals | 0 / 0 | 0 / 0 |
| Polls started | 5,516 | 55,063 |
| Samples written | 5,513 | 55,010 |
| Samples dropped | 0 | 0 |
| Samples per second after the first interval | 16.7 | 166.5 |
| Engine snapshot | 1.08 MB, saved in 7 ms | 10.8 MB, saved in 65 ms |
| Maximum loop lag after warm-up | 2 ms | 1 ms |
| Memory (RSS) | 13 MiB before start, 55 MiB at the end, peak 55 MiB | 13 MiB before start, 349 MiB at the end, peak 383 MiB |
| Write errors | none | none |
The on-time figure leaves out each sensor's first gap. A new sensor is polled within 30 s of start-up and then moves to its own slot in the interval, so that first gap is short by design. Samples written trail polls started by the polls still running, or not yet flushed, when the run stopped.
The 1,000-sensor run was made before engine snapshots were routed through the journal; the 10,000-sensor run after. Snapshot saving is off the loop either way, so the change does not affect lag or polling.
Larger sizes
A second set of runs on the M2 code (schedules, maintenance windows, rollups, run-time channel names and the remote probe hub all in the build), same host and same method, 300 s each. Other work was running on the machine at the time: the load average was 38 when the 10,000-sensor run started, 23 before the 50,000-sensor run and 6 before the 100,000-sensor run, on 16 threads.
| 10,000 sensors | 50,000 sensors | 100,000 sensors | |
|---|---|---|---|
| Polls started within 10% of the interval | 35,127 of 35,127 (100%), worst 0.18 s off | 174,939 of 174,939 (100%), worst 1.13 s off | 350,182 of 350,182 (100%), worst 0.63 s off |
| Gaps over 1.5 intervals / missed intervals | 0 / 0 | 0 / 0 | 0 / 0 |
| Polls started | 55,127 | 274,939 | 550,182 |
| Samples written | 55,076 | 274,786 | 549,687 |
| Samples dropped | 0 | 0 | 0 |
| Samples per second after the first interval | 166.6 | 834.7 | 1,665.5 |
| Engine snapshot | 11.2 MB, saved in 128 ms | 56.1 MB, saved in 377 ms | 112.2 MB, saved in 640 ms |
| Maximum loop lag after warm-up | 11 ms | 2 ms | 1 ms |
| Memory (RSS), end / peak | 394 / 463 MiB | 1,498 / 1,589 MiB | 2,216 / 2,397 MiB |
| Write errors | none | none | none |
What this says: the core keeps its schedule at ten times the benchmark size of 10,000 sensors at 60-second intervals, and memory, at roughly 24 MiB per 1,000 sensors, is what a host is sized by. No size was found at which polls start late or samples are dropped; the runs stopped at 100,000.
What it does not say: these runs start from an empty database and last five minutes, so they do not include a populated retention window, expiry or history queries running beside the polling, which the release gate asks for. The host has four times the cores and many times the memory of the 4-vCPU, 8-GB reference host. The polls are simulated.
Telemetry export
What telemetry export costs. The harness reads the standard OTEL_* variables and installs the same log and export layers as the server, so the same command measures all four cases (only the environment differs):
OTEL_EXPORTER_OTLP_ENDPOINT=http://127.0.0.1:14318 \
cargo run --release -p probeward-server --example capacity -- 10000 300Same host, same method and 300 s each, one run per column on an otherwise idle machine, at 10,000 sensors. The collector was the OpenTelemetry Collector in a container on the same machine, with a no-op exporter. The "unreachable" run pointed at a closed local port, so every export failed at once with "connection refused". Default settings otherwise: one trace in a hundred, metrics every 60 s, batches every 5 s.
| Off (compiled in) | Local collector | Local collector, every trace sampled | Collector unreachable | |
|---|---|---|---|---|
| Polls started within 10% of the interval | 35,075 of 35,075 (100%), worst 0.02 s off | 35,053 of 35,053 (100%), worst 0.04 s off | 35,088 of 35,088 (100%), worst 0.03 s off | 35,084 of 35,084 (100%), worst 0.30 s off |
| Gaps over 1.5 intervals / missed intervals | 0 / 0 | 0 / 0 | 0 / 0 | 0 / 0 |
| Polls started | 55,075 | 55,053 | 55,088 | 55,084 |
| Samples written / dropped | 55,016 / 0 | 54,980 / 0 | 55,032 / 0 | 55,014 / 0 |
| Maximum loop lag after warm-up | 1 ms | 1 ms | 3 ms | 1 ms |
| CPU of the process | 7.3 s (2.4% of one core) | 7.6 s (2.5%) | 8.1 s (2.7%) | 8.9 s (3.0%) |
| Memory (RSS), end / peak | 386 / 427 MiB | 426 / 426 MiB | 443 / 443 MiB | 450 / 450 MiB |
| Left in the queues at the end | n/a | 0 spans, 0 log records, 0 dropped | 0 spans, 0 log records, 0 dropped | 575 spans, 4 log records, 0 dropped (the status said "failing") |
| Shutdown after the run | n/a | 0.10 s | 0.11 s | 0.18 s |
What this says: with export off, the figures are those of the runs above (100% on time, 1 ms lag, the same sample counts), so "optional" costs nothing that shows at this size. Turning it on at the defaults adds 0.3 s of CPU over the five minutes (4%); sampling every trace, which sends one span for each of the 55,088 polls, adds 0.8 s (11%) and drops nothing; and a collector that is not there adds 1.6 s (22%), which is 0.5% of one core more, from the failed requests and the span records kept for them, with polls staying on schedule. The memory column varies by tens of MiB between runs of the same build (the "off" run's peak was 427 MiB and its end value 386 MiB), so the differences in it are within that spread, not a measured cost: the queues themselves are bounded at 2,048 spans and 2,048 log records, about a megabyte. The 575 spans left in the unreachable run's queue are what one in a hundred of the polls produces in five minutes, plus requests.
What it does not say: each column is one run, so the spread of CPU between runs is not known and the differences of a few tenths of a second may be noise; the polls are simulated, so the cost of the spans around real network I/O is not included; the collector ran on the same machine, so its own CPU is not in the process's figure (and a collector that does real work will use more); and the shared host was busy for the "off" run (load average 13.9 at its start; 0.7 to 0.9 for the others).
Rollups
The rollup job (see storage) runs in the housekeeping task on the same database. crates/probeward-store/examples/rollup_bench.rs measures it at 10,000 sensors, one scan a minute, four channels per scan, one day of history (14.4 million scans), on the host above:
cargo run --release -p probeward-store --features testkit --example rollup_bench -- 10000 1 60 4| 10,000 sensors | |
|---|---|
Loading the day through insert (live, nothing late) | 114.5 s |
| Late marks after a live load | 0 |
| First catch-up over all 14.4 M scans | 145.5 s: 24 hourly windows of raw into 5-minute buckets and one daily window of hourly buckets, 3,120,000 rows written, about 99,000 raw scans per second |
| A pass after 15 minutes of new scans | 957 ms, 20,000 rows written |
| A pass with nothing new | 21 to 25 ms |
| A pass over 10,000 more 5-minute buckets | 292 ms |
| A probe replays 24 h (100 sensors, 144,000 scans) | inserted in 1.2 s with 28,800 buckets marked; recomputed in 3.1 s |
| 5-minute rows | 2,880,031 rows, 839 MB, 291.4 bytes per bucket |
| Hourly rows | 240,000 rows, 66.5 MB, 277.2 bytes per bucket |
| Series of 24 h, 300 points: raw / from 5 minutes / from hours | p50 11.8 / 2.5 / 0.46 ms, p95 21.3 / 2.8 / 0.64 ms |
| Availability over 24 h, from raw scans | p50 5.1 ms, p95 5.7 ms |
What this says: at 167 scans a second the job needs well under 5 % of one core's time (about one second of work per 15 minutes), and a first catch-up over a month of history at this size takes about 75 minutes. A graph over a week or a year reads a few hundred rows instead of tens of thousands.
Not measured: the catch-up over 30 days at 10,000 sensors (extrapolated from the one-day run, not run), insert throughput while a pass runs, the job with many more channels per sensor, and the disk figures at the full retention (they follow from bytes per bucket, not from a populated 90-day and two-year database).
Not measured
- Runs longer than five minutes, at any size, so memory over hours or days is not known. Sizes above 10,000 sensors were run only once each, on a busy machine (see larger sizes).
- Real protocol I/O: SNMP, SSH and HTTP polls cost more CPU and sockets than the simulation.
- A database outage at this scale: how long the sample buffer (200,000 samples by default) lasts, about 20 minutes at 166 samples per second, is a calculation, not a measurement.
- A database on a separate machine, or with network latency between probe and database.
- Shorter intervals. Ten thousand sensors at 60 s is about 167 polls per second; the same rate is reached by 1,000 sensors at 6 s, but that was not run.