The lab
BuiltA lab is a working omniglass on your own machine, brought up by one command, to learn on. It runs the real server and console, its own Postgres, and an edge outpost that runs the simulator in its own process, serving a fleet of simulated components and collecting from them for real. Break a component on purpose and watch the platform notice. The only thing it needs is Docker, on Linux, macOS or Windows.
Your first session in a lab (bringing it up and breaking a device in the console) is your first ten minutes. This page is the rest: what bringing it up does and what “ready” checks, what the dev fleet holds, the faults planted in it, how to stop it, what a lab runs and with which privilege, its flags, the scale lab, and what to do when it will not start.
When the lab is ready
Section titled “When the lab is ready”make builds two things from one Dockerfile, with nothing but Docker: the image, tagged omniglass:dev-<build id>
(and omniglass:dev, see which image runs), and this machine’s own binary,
bin/omniglass, both stamped with one build id. It builds and runs nothing else. make lab is the short form of the last two commands (make, then
./bin/omniglass lab run; LAB_ARGS passes flags, as in make lab LAB_ARGS=--fresh).
The lab says what it is doing while it comes up, one line per stage, then where to go:
Starting your omniglass lab. The first run takes a few minutes; later ones, under one.
docker running (Engine API 1.56, unix:///var/run/docker.sock, from the default socket) image omniglass:dev-4a34346d (built by make beside this binary) network omniglass-lab_default (a private bridge; only the console is published) database Postgres is ready seed the dev fleet, seeded on this lab's first run server answering at http://127.0.0.1:8080/web sign in the login dev / dev works outpost edge-hq with its simulator: 201 of 201 simulated components running collecting 210 of 210 simulated endpoints up, and 5 broken on purpose for you to find
Your omniglass lab is ready (it took 14s).
Console http://127.0.0.1:8080/web Sign in user dev, password dev
Stop it press Ctrl-C here. Your lab's data is kept for next time; omniglass lab run --fresh starts over from the seed.
Where to go next: the guided walkthroughs, each recorded on this same lab,so every screen matches yours: https://docs.omniglass.hyperscaleav.com/start/walkthroughs/
The lab is one Docker project; see it with: docker compose -p omniglass-lab psReady means four things, each checked before the lab says so: the console answers at the printed
address, the printed login signs in, the simulator reports every simulated component running, and
every simulated endpoint reads up except the ones the seed breaks on purpose. Two kinds of endpoint
are left out of that count: an endpoint that receives pushes (a webhook carries no reachability
health to wait for), and the ones broken on purpose: the planted faults below, which the seed marks
itself rather than a list kept here, and every endpoint of a device impaired in the simulator (the
two faults the lab starts with, or one you break yourself), which counts as broken on purpose for as
long as its impairment holds. The lab is one compose project, so docker compose ls, docker compose -p omniglass-lab ps and docker compose -p omniglass-lab logs server all see it, and Docker Desktop groups it.
What the dev fleet holds
Section titled “What the dev fleet holds”Open the printed console address and sign in as user dev, password dev: an owner, so every
screen is open to you. The login is the same well-known one every walkthrough is recorded with, so
the steps you follow match the screen you have. Every screen, the sign-in page included, carries a
Lab instance banner, so a lab is never mistaken for a real deployment.
The fleet is the dev fleet, the same one every walkthrough is recorded on: locations with systems in
them, components of several products from several vendors, and the edge outpost edge-hq collecting
from all of them.
Every way omniglass collects runs here, healthy on at least one component, so you can watch each one work (and a regression in any of them shows in a lab, not only in a unit test). The HQ boardroom holds the ones the rest of the fleet does not use, beside the healthy twins of two of the faults below and a plain ping:
| Method | Kind | Rides | Component | Location | Endpoint | Health |
|---|---|---|---|---|---|---|
kestrel-ws | driver | wss | bar-a | Boardroom A | Bar control socket | healthy |
tessellate-census-feed | driver | tcp | census-a | Boardroom A | People counter feed | healthy |
boreal-edge-web | driver | http | panel-a | Boardroom A | Display web admin | healthy |
newtron-panel-web | driver | https | touch-a | Boardroom A | Panel web | healthy |
newtron-nvp-ssh | driver | ssh | touch-a | Boardroom A | Panel shell | healthy |
newtron-nvp-telnet | driver | telnet | touch-a | Boardroom A | Panel Telnet | healthy |
ferrite-pdu-api | driver | http | power | Boardroom A | PDU control | healthy |
icmp | transport | touch-a | Boardroom A | Panel ping | healthy |
Beside them:
- Webhooks arrive from the start. The simulated meeting service is subscribed to its webhook endpoint when the lab comes up, as its admin would subscribe it, and posts a meeting every minute, so the endpoint’s page reads last heard within the first two minutes.
- An integration pushes. A simulated booking service pushes the HQ boardroom system’s bookings
(
booking-count,booking-state) throughPOST /telemetry:push, with a token the lab mints on every run for a machine user that may push to that one system and do nothing else. It is an outside actor, not a device on the network: the fleet declares it as a pusher, the way a scale scenario declares its own, and the simulator beside the outpost runs it as an emulator device with a push face. Open the boardroom’s system page to see them; a push carries no endpoint, so there is no reachability to read, only the values.
Simulation lists every method and where it runs.
Planted faults
Section titled “Planted faults”The seed breaks a few things on purpose, so there is something real to diagnose the moment the lab is up: the readiness line counts them, with the two impaired devices below, as “broken on purpose”. Each is marked as a planted fault in the dev fleet’s own fixtures, with a sentence saying what went wrong, and the lab reads them from there, so the count never drifts from the seed. They are the kind of thing that happens in the field: a credential rotated under an endpoint, a component reimaged so its key no longer matches the pin, an agent that refuses what the endpoint presents. The walkthroughs that fix a rejected session, trust a changed host key and fix a refused probe each start from one; try finding them on your own first.
Two devices are broken in the simulator itself, so the fleet’s first alarms are true ones: DSP 1 in
the auditorium is unplugged, and Display 1 in bay 1 answers slowly. A rule raised each alarm, the
device’s own page agrees with it, and repairing the device on the Simulation page clears it
(two faults the lab starts with). You and
operator are subscribed to the fleet’s alarms in the console inbox, so the bell in the top bar
lights as they raise and your Inbox lists each raise and clear (edit or remove the subscription
under Profile, Subscriptions).
Breaking a component yourself works too, from its page or the CLI (break it on purpose):
./bin/omniglass component impairment set <component> --unplugged # dark on every protocol./bin/omniglass component impairment set <component> # plug it back inStopping it, and your data
Section titled “Stopping it, and your data”Press Ctrl-C in the lab’s terminal (or send it SIGTERM). The lab stops and removes every
container and the network it created, and keeps its two volumes, so the next omniglass lab run
picks up where you left off: a component you added is still there, and your secrets still decrypt,
because the server’s encryption key lives in the data volume too. Press Ctrl-C a second time to
leave without cleaning up; a lab stopped that hard, or killed outright (SIGKILL, a closed laptop
lid), is cleaned up by the next run before it starts.
omniglass lab run --fresh removes both volumes first and starts over from the seed. Use it after
pulling a change whose seed or schema an old lab cannot carry forward: lab data is disposable.
The outpost is enrolled afresh on every run (its token re-minted), so the lab stores no outpost secret.
Checking that the lab is whole
Section titled “Checking that the lab is whole”The lab is also how the platform proves its own outcome: after the warm-up, every component carries
what the platform can know about it, and every system carries a value of its own. make test-lab
holds the lab to that, tier by tier, and a gap fails naming the owner and the tier:
| Tier | Holds for | What must be there |
|---|---|---|
| built-in | every component, endpoint by endpoint | the data the outpost and the platform write about an endpoint whatever its device: reachability and its rung, a response time once the device answers, a poll duration and its CPU time, a held session’s state and the push count of its listeners (outpost-probe), and a webhook’s post count (platform) |
| collected | every component | at least one value from the device’s own API that is a class signal (a power state, a mute, a scene), beyond its identity (model, serial, firmware) and uptime |
| system | every system | at least one value of its own, collected or calculated |
The built-in set is not written down anywhere to drift: the transport registry declares what an
endpoint of each transport writes, the driver’s polls, listeners and session decide the rest, and
probekeys and the writer classes rule who may write each key. A component whose profile or endpoint
is removed fails the collected or the built-in tier by name; a component that reports only built-in
data, or only identity and uptime, fails the collected tier. A device that is down still owes its
reachability rung but no response time, and a telnet endpoint whose held session is up owes none
either: the probe stands down for the session, so a second dial cannot be refused by gear that admits
one client. The endpoints the seed breaks on purpose (a rotated password, a changed host key) are read
from the seed and owe no built-in key, since their ladder stops where the fault does; they must still
exist. A finding names the component with its product and location, because a component’s name is
unique only within its room.
What the lab does not carry yet is listed per tier in the dev fleet’s gap ledger, each entry with the
issue that closes it. The ledger is empty when the fleet is whole, and an entry fails the test as
stale the moment every owner it covers carries the tier, so a closed issue cannot leave a line behind.
make test does not run any of this: the warm-up needs Docker and minutes, so the check runs in
make test-lab, which CI may run on lab-touching changes only. The check is a function of a base URL and a client, so
the scale lab runs the same judgment against a lab of any size.
One device is also held to a showcase floor, the most a single device says: on a 20-system
corporate lab (the smallest with a divisible conference room), make test-lab holds the headquarters
conference room’s video bar to 20 metrics, 8 properties, an event it caught itself and a log line
within five minutes of the lab coming up (labcheck.VideoBarFloor, #2754). The room’s calendar may
put no meeting in that window, so the test first dials a call on the bar through
POST /components/{name}/simulation:fire, as a demo would.
make test-lab builds the image first and runs the lab’s integration tests against the
omniglass:dev-<build id> tag its own build made, so another checkout rebuilding omniglass:dev on
the same Docker host cannot change what it tests. make test-lab-image runs the same tests and
builds nothing: LAB_BUILD is the build id whose image they run (make test-lab passes the one it
just built), and LAB_IMAGE names an image outright instead (it reaches the tests and lab run as
OMNIGLASS_LAB_IMAGE; with neither, they run omniglass:dev). LAB_RUN narrows the tests:
make build image TAG=mine BUILD_ID=minemake test-lab-image LAB_IMAGE=omniglass:mine LAB_RUN=TestIntegrationScaleDeliveryThe lab can also be watched whole while it runs. With its simulator connected, Platform health closes the loop over a window that slides every 10 seconds: every hop a request or a batch travels, from the outpost to the simulated device and back to the server, read as a loss ratio. A lab that is whole reads 0 on every gap, and every polled protocol draws its requests.
What runs, with which privilege
Section titled “What runs, with which privilege”The lab is one Docker compose project, omniglass-lab: one private bridge network, the containers
below, and two named volumes. This table is rendered from the lab’s own plan, the same spec it hands
Docker, so it cannot describe a container or a privilege the lab does not create:
| Container | Image and command | Runs as | Added privilege | Published | Limits | What it is |
|---|---|---|---|---|---|---|
db | postgres:18 | the image's (postgres) | none | nothing | none | Postgres, the lab's own database. On the lab network only, never published. |
seed (one-off) | omniglass (the image your binary selects)
: lab seed --scenario dev --outpost edge-hq --user dev --password dev --omnibot-replay default | the image's (nonroot) | none | nothing | none | Runs once per lab start: migrates, marks the database as a lab's, seeds the fleet and the login on the first run, and enrolls the outpost afresh. |
server | omniglass (the image your binary selects)
: server --lab | the image's (nonroot) | none | 127.0.0.1:8080 -> 8080 | none | The control plane and the console, in lab mode. Its console is the one published port; its bus listens on the lab network for the outpost. |
outpost | omniglass (the image your binary selects)
: outpost run --simulate --impairments --heartbeat 2s --probe-every 10s --worklist-every 5s --poll 2s | 0:0 | capability NET_ADMIN sysctl net.ipv4.ping_group_range=0 65535 | nothing | 1 CPU, 512 MiB | The edge outpost edge-hq with the simulator in its own process: the simulated components sit on its loopback, and it collects from them for real. NET_ADMIN, for the impairments, reaches only this container's network. |
The data lives in two named volumes, kept across runs and removed by --fresh:
| Volume | Holds |
|---|---|
omniglass-lab_db | the database |
omniglass-lab_data | the server's data directory: the lab's own encryption key and the bus's store |
Only the console is published, on 127.0.0.1 (127.0.0.1:8080 by default). The database, the
server’s bus and the outpost publish nothing; the outpost reaches the server across the lab network.
NET_ADMIN, root and the ping sysctl are held by the outpost container alone, for the simulator’s
impairments and truthful ping, and they reach only that container’s own network namespace, never
your machine’s. The server and db containers carry no added capability.
How often the outpost checks in, pulls its worklist and probes is its cadence profile. Your lab
runs at lab: it checks in often and pulls its worklist every few seconds (--worklist-every),
though a change you make in the console nudges it to pull at once and reaches it within a second
(the change nudge), and probes reachability less often
(--probe-every), because a lab may run for days and a probe every 2s wrote most of its rows.
Each probe and each poll runs on its own interval, on the outpost’s own timer, not on the check-in.
The throwaway lab each walkthrough is recorded on runs at
walkthrough and probes every 2s, since a recording is held to a time budget, so in your
lab a walkthrough that waits on a probe’s reachability (watching a rule raise an alarm, say) waits a few
seconds longer than its recording. Its seed also sets the platform’s report window
(collection.report_seconds) to 10s, so the outpost’s and the server’s own figures, the ones
Platform health reads, land inside the recording; your lab
reports at the platform’s 60s, so those figures take up to a minute to appear. default is the product’s own cadence, what a deployment’s
outpost runs at; the lab footprint measures a lab
at each to say what that cadence costs.
| Profile | Checks in | Probes reachability | Pulls its worklist | Reports collection | Closed-loop bracket | For |
|---|---|---|---|---|---|---|
lab | every 2s | every 10s | every 5s | at the platform's setting | every 10s | a learner's lab: a change in the console shows within seconds |
walkthrough | every 2s | every 2s | every 2s | every 10s | every 1s | a script's throwaway lab: a walkthrough waiting on a probe's verdict sees it within seconds |
default | every 30s | every 30s | every 30s | at the platform's setting | every 1m | the product's own defaults: what a deployment's outpost runs at |
Publishing nothing is not the same as unreachable. On Linux, a Docker bridge network’s addresses are
routable from the machine itself, so a local process that finds the lab network’s address can reach
the database there, with the lab’s fixed Postgres login (omniglass / omniglass, a superuser of
that database and so of its container). That is the lab’s data and the lab’s container, both
disposable, on a machine you share only with people you would hand the console’s well-known login
to anyway; it is one more reason a lab is never a place for real data.
Safety rails
Section titled “Safety rails”A lab’s login is well known and its data is disposable, so it is kept apart from anything real:
- Loopback only. The console is published on
127.0.0.1, reachable from this machine alone.--listenmoves it to another address, and the lab then says, once it is ready, that anyone who can reach that address can sign in with the well-known login. - It says it is a lab. The server runs in lab mode, a setting only
omniglass lab runpasses, and reports it onGET /auth/status; the console shows the Lab instance banner on the sign-in page and in the shell, as a thin strip across the very top that never scrolls away (the long explanation is in its tooltip). - Lab and real databases refuse each other. The lab writes a mark into the database it creates. A server outside lab mode refuses a database that carries the mark, and a lab refuses a database that holds data and no mark (a real deployment’s). Each refusal says why and what to do. The mark is data the lab writes, never a migration or a boot-seed row.
- A local daemon only. The lab refuses a Docker daemon on another machine, where the loopback publish would land on that machine and not this one.
- One lab at a time. A run refuses to start while another lab is running here (or was started from another machine, or from inside a container, on the same daemon), and never touches it; a run that fails to come up removes only what it created itself.
The CLI reference renders every flag and its default from the command itself; here is when you would reach for each:
-
--portmoves the console off 8080 when something else holds it. A taken port fails before anything is created, rather than silently picking another, so the address you bookmarked survives a restart.--port 0lets Docker pick a free one, and the ready line prints it. -
--listenpublishes the console on another address of this machine, to show a lab to someone on your network. It exposes the well-known login with it, and the lab says so. -
--freshstarts over from the seed, removing the lab’s data first. -
--scenariopicks another fleet for the lab’s first run (the seed-dev reference lists them: an empty install, the dev fleet having a bad day, the dev fleet at enterprise size). On a lab that already has data, pair it with--fresh. -
--imageruns an omniglass image of your choosing (envOMNIGLASS_LAB_IMAGE), with a warning: a lab whose server and binary disagree is yours to debug. A build-keyedmakeimage needs no flag; reach for it for an image that is not the one this binary’smakebuilt, such as a private build. -
--omnibot-key-env <VAR>runs omnibot on a live model: the lab hands its server that variable’s value as the env-backed platform secretlab-omnibot-keyand sets the assistant’sproviderandkey_secretto it from the environment (--omnibot-key-env OPENROUTER_API_KEYruns OpenRouter’s default model), so the panel andomniglass omnibotanswer for real (pointing omnibot at a model). Nothing is sealed: the key lives in the server container’s environment, visible todocker inspecton this machine, as the outpost’s token is. Without the flag omnibot plays the lab’s recording; a key an older lab sealed is removed. A scale lab takes the flag too, so omnibot answers against a corporate-size fleet. -
--omnibot-replay <name>picks the recording omnibot plays when no live model is configured, on a seeded or a scale lab:default(the dev fleet’s meeting 405) orcorporate-outage(triages the corporate fleet’shq-mr86-1room after its main display is unplugged, the scene the marketing captures stage). Without the flag a lab plays the one written for its scenario’s fleet, so its calls resolve:corporate-outageon a corporate lab,defaulton the seeded fleets. A recording scripts only omnibot’s words; its tool calls run for real against the lab, so a demo shows real data and costs no model. -
Every
OMNIGLASS_SETTING__<NAMESPACE>__<KEY>andOMNIGLASS_SECRET__<NAME>variable in your shell reaches the lab’s server as its environment settings and environment secrets, and the start line names them (never their values). One the server would refuse (a key it has no setting for, a value or a secret’s JSON that does not parse) stops the run before anything is created, naming the variable. Amazon Bedrock’s gpt-oss is five of them, which.env.examplecarries: put them in.env.localandomniglass lab runruns omnibot on Bedrock with nothing exported. -
The
omniglassbinary loads.env, then.env.localover it, from the directory it runs in, under whatever your shell already set, so a variable you export wins over the same one in either file. -
--systemsand--plansize a scale lab scenario instead of a seeded fleet, and preview it with its preflight. -
--keepkeeps a scale lab’s data when it stops, for a run that lasts days (a soak run). A seeded fleet’s lab keeps its data already, so it refuses the flag.
A few more flags are hidden from the help because they are for scripts, not for you: the repo’s
own browser tests, docs screenshots, demo recorders and probe each bring up a throwaway lab of their
own through them (a project of its own whose data goes when it stops, held for the script, or one
whose fleet has no outpost collecting from it, so the pages the docs photograph hold still). One is
for captures only: --platform-history seeds an hour of made-up figures on the lab’s server, a sample
a minute for each server key platform health draws except the stream positions and the ingest,
push, bus request, telemetry ack and slow query windows (a capture’s lab writes none of those live, so they are left to the
server), so a screenshot of the page shows full sparklines rather than the few minutes a fresh lab
has measured. Sizes end the hour on what the
database measures, so the live line carries on from the seeded one. It needs --ephemeral, and a scale lab
refuses it, so a lab you learn from or measure only ever shows what its own server measured.
--health-history is its scale lab counterpart, for the marketing captures: it seeds the scenario’s
health storyline (the health_history block of its manifest), so every system reads healthy for
the 30 days before the lab started and the showcase rooms carry the stretches the storyline names,
each with the alarm that explained it, raised and cleared at the time. Every row it lands is labelled
devseed, and the seeded past ends before the lab’s own record begins, which follows it
(ADR-2726).
It needs a throwaway scale lab (a kept one refuses it, as a seeded fleet’s lab does), so the perf
labs, which never pass it, measure a fleet with no made-up past. The seed checks the storyline against
the fleet before it lands anything: a room, component or endpoint the lab does not have is refused.
--sso runs an identity provider (Dex) beside the lab and configures single sign-on against it,
with a demo person linked to their identity there, for the walkthrough that signs in through it.
The provider’s address is on the lab network, which a script’s browser joins and yours does not,
so it too needs --ephemeral, and a scale lab refuses it. The
demos guide says how the repo uses them.
Which image runs. A binary built by make runs the image the same make built, by the tag keyed
to their shared build id: omniglass:dev-<build id>. make also tags the build omniglass:dev, but
that tag is shared by every checkout on a Docker host and the newest build anywhere wins it, so the
lab does not run it (a binary with no build id, one not built by make, is the exception: it falls
back to omniglass:dev and cannot tell whether that is its own). The image carries its build id in
the OCI label org.opencontainers.image.version, and the lab refuses an image whose label is not its
own build id, saying to run make. The lab resolves the tag to an image ID once, before it creates
anything, and creates the server, the seed and every outpost (each site’s, in a scale lab) from that ID,
so a build that re-tags omniglass:dev-<build id> or omniglass:dev mid-run changes nothing. The lab
never builds anything itself, so it always runs the code you built. Old omniglass:dev-<build id>
tags pile up as you rebuild; docker image prune or docker rmi clears them. A release binary runs the image its release
was built with, ghcr.io/hyperscaleav/omniglass@sha256:..., pulled if absent: the release builds and
pushes the image first and stamps its digest into the binary, so the binary never asks the registry
what the v<version> tag points at, and a tag pushed again later cannot change what it runs
(container image). A release-versioned binary that carries
no digest (one built outside the release workflow) refuses to start a lab and says
to name an image with --image, which runs it with the usual warning.
Scale lab scenarios
Section titled “Scale lab scenarios”The dev fleet is one fixed size. The scale lab asks how the platform behaves at 300, 1,000
and 3,000 systems, so it describes an environment once and sizes it with a knob: a scenario
manifest names its kinds of site (one headquarters and the offices repeated around it), the
buildings each kind’s rooms sit in, the standards placed at each kind as ratios, and the product
filling each slot of each standard. The size picks how many sites there are as well as how many
systems, so a bigger plan is more outposts rather than bigger ones. One manifest ships today, corporate
(a headquarters with regional and branch offices of huddle rooms, meeting rooms, divisible conference
rooms and lobby signage), in
internal/lab/scenario/manifests/.
Run a scenario at a size, and the lab brings it up as a distributed deployment: Postgres, the server, and one outpost container per site, each enrolled with its own token and running the simulator in its own process for that site’s components. Every simulated component answers on its own loopback address, so a site looks like many devices rather than many ports on one address. The lab is up once every site’s outpost is collecting from every component (the planted faults aside).
Not everything a real fleet hears is collected. The scenario also declares each site’s outside actors, the services that report to the server on their own, and the simulator beside the site’s outpost runs them:
- A token pusher.
corporateplaces one booking service a site, pushing four of its systems’ bookings every 30 seconds throughPOST /telemetry:push. The lab mints its bearer token on every run, for a machine user that may push to those systems and do nothing else. - A webhook sender.
corporatealso places one meeting platform account for the whole fleet (ucc-platform, aservices:entry), at the headquarters, which speaks for every system of every site. The lab seeds the account as a component with aucc-webhookendpoint and a signing key minted on every run (beside the product’s polleducc-roomsendpoint on the headquarters’ outpost), and binds each system’s room id to its system and each device the account lists to its component, as an installer would; the simulator subscribes the account to the endpoint, and the account posts a signed report naming every room’s meeting state every 30 seconds, besides the meeting boundaries the calendar sets. Its key is sealed in the server and handed to the simulator alone: neither the plan, the seed’s output nor a log shows it.
Both arrive on the server’s push lane, so lab measure reads their
loss beside the outposts’.
A standard’s control list names the slots whose devices are wired with a second face as well,
another endpoint on the same device: the boardroom displays (mr86) get their web admin beside their
SNMP agent, so a demo can switch an input from the console, and the divisible conference rooms’ video
bars get their websocket control socket (kestrel-ws, wss on 9443) beside their https API, so one bar
talks over two protocols (#2754). A conference room’s people counter takes its raw-TCP control band (tessellate-census-feed, 5000) beside its http API: the band answers the live head-count the API does not carry, as people-count on the component, and the plan’s room-occupancy calc rule carries the most any counter in a room reports up to the room’s occupancy-count, so the room follows the calendar’s attendees through the census (#2757). A room’s temperature is its control processor’s: the processor reads it as room-sensor-temperature (GET ROOMTEMP, following the room’s meetings), and the plan’s room-temperature calc rule carries it up to the room’s own room-temperature. Every video bar in the lab acts out its room’s meetings off the lab calendar, drifts
its call stats in a call and logs on its own
(a device talks on its own): about 1.7 events and
6.7 log lines a bar an hour, beside its polls, or under half an event and two log lines a second across
the 920 or so bars of a 1,000-system lab.
omniglass lab run --scenario corporate --systems 300A scale lab is its own Docker project, omniglass-scale, so it runs beside your learning lab, and
it is throwaway: Ctrl-C removes every container, network and volume it started. With --keep it
keeps its two volumes instead, the way the learning lab does, and the stop line names the command
that picks it up again: the same scenario, size and --keep (and its --project, when not
omniglass-scale). The next run re-attaches the volumes, keeps the fleet it seeded rather than
seeding again, and enrolls each site’s outpost afresh; a kept lab started at another scenario or size,
or without --keep, is refused, naming --fresh to start over. Add --plan to
print what a size would build without starting anything: three tables (each archetype’s sites,
floors per site, systems of each standard and totals; each site’s systems and components; the
components of each product) and the preflight. Without
--systems, a scenario asks for a size (one system per site at the fewest sites, up to 10,000).
A scale lab’s server serves the calendar its simulators act out: omniglass lab calendar list --start <rfc3339> --end <rfc3339>
(GET /lab/calendar, at most 31 days, --system, --room, --building and --site narrow it) lists every
meeting of the window by room, to lay beside what the console detected. The server reads the world file the seed
wrote into the data volume it shares, so no setting carries it; a lab without a plan has an empty calendar. See
reading the calendar back.
Which fleet each level measures
Section titled “Which fleet each level measures”A figure from one lab level compares with a figure from the next only when both read the same fleet
shape, so every lab level that measures runs the corporate scenario at a stated size, and a size’s
figures are compared only with the same size
(ADR-1719). The dev fleet is the showcase:
the make lab default, the docs screenshots, the demos and the console end-to-end tests. It carries
broken devices and unassigned identities on purpose, so its rows, its cost and its loss share no shape
with a corporate fleet, and it is never a measurement basis.
| level | scenario and size | what it is for |
|---|---|---|
make test-lab (the footprint and scale measure integration tests) | corporate, 20 systems | smoke: proves every figure is read, never what it is |
make lab-footprint | corporate, 20 systems | the per-container footprint on a developer machine |
make scale-lab, make scale-measure | corporate, 300 systems by default | the ladder’s first level; any size for an ad hoc run |
| the ladder | corporate, 300, 1,000 and 3,000 systems | the three scale levels the platform is sized against |
make perf-check (checking against the baseline) | corporate, at the rung (300 or 1000 systems) its baseline states | refuses a run of another scenario, size or device set as invalid |
| the soak (a soak run) | corporate, 3,000 systems | the goal size, held for days, then judged by the platform’s own alarms |
20 is the smallest round size past the last one that drops a product the corporate manifest names:
16 and 17 drop the headquarters’ divisible conference room and its three products, and every size from
18 up, through each rung of the ladder, seeds them all. A unit test
(TestCorporateSmokeSizeSeedsEveryProduct) pins it, so a manifest edit that breaks the coverage fails
there rather than in a lab.
A scale lab stamps its scenario and size on its containers as labels (omniglass.lab.scenario,
omniglass.lab.systems), and every measure reads them from the lab rather than from its own flags, so
a report always names the fleet it read.
How big a lab your machine can run
Section titled “How big a lab your machine can run”The scale lab is meant for a developer machine, and it assumes no particular size: before it starts
anything it estimates what the size needs, compares it with what the Docker host reports, and
refuses a size that does not fit, naming the largest that does. It plans on at most 80% of the
host’s memory and CPUs, leaving the rest to your desktop and the daemon. The estimate is three costs,
measured with docker stats at 20 and 100 systems and kept in lab.MeasuredCost:
- the server and Postgres, paid once: about 170 MiB and a twentieth of a core;
- an outpost container, paid once per site (up to 30 times): about 36 MiB and a hundredth of a core;
- a simulated component, its simulator’s share and the collection from it: about 0.9 MiB and a thousandth of a core.
So corporate at 1,000 systems (18 sites, 3,124 components) needs about 3.5 GiB and 3.4 cores, and at
3,000 (30 sites, 9,166 components) about 9.3 GiB and 9.5 cores, before Postgres’s shared buffers (below).
CPU, not memory, is what runs out first on most machines: the reference WSL setup of 12 GB on a
12-core host fits 3,000 systems with little to spare. --plan ends with the decision for this machine:
Preflight: about 9.3 GiB of memory and 9.5 cores (the server and Postgres, an outpost for each of 30 sites, 9166 simulated components).Postgres's shared buffers, sized to this host and fleet, come to 331 MiB: about 9.6 GiB in all.This Docker host can spare 9.6 GiB and 9.6 cores (80% of its 12.0 GiB and 12 cores).Decision: fits.A size that does not fit exits non-zero before it creates a container, saying why and what does:
error: A scale lab of 1000 systems (18 sites, 3124 simulated components) needs about 3.5 GiB of memory and 3.4 cores; this Docker host has 2.0 GiB and 12 cores, of which the lab plans to use at most 80%. To fix it: run --systems 417, the largest that fits, or give Docker more memory or CPUs.Both were forced with the hidden --host-memory, which plans against a memory limit of your
choosing (12g, then 2g), so you can see where a smaller machine’s ceiling sits without one. The
estimate is a model, not a promise: it was measured at small sizes, and
omniglass lab measure measures a running lab.
A scale lab’s Postgres is sized for the host and the fleet, the way a production one is
(sizing PostgreSQL): shared_buffers is a quarter of the
host’s memory (8 GB at most), and never more than the fleet’s estimate leaves of what the host can
spare, so the buffers grow into spare memory and never refuse a fleet that fits. They never drop
below Postgres’s stock 128 MB, the size the estimate was measured with. A forced --host-memory
sizes them only when it is less than the host has. The preflight counts buffers above the stock size
on top of the estimate, since they fill as the lab reads. Checkpoints spread to 15 minutes and 8 GB
of WAL, compressed, so leave that much disk free for the lab’s volume beside its data. A dev lab runs the image’s stock Postgres, which is plenty for
the fleet it simulates.
Each outpost runs capped (#1892), like the dev lab’s single outpost in the topology table:
one CPU, an edge box’s share, so on a cgroup v2 host (Docker’s default) every outpost sizes its
lane pool to the same 23 lanes, and a run on a large machine
measures the same parallelism as one on a laptop. Its memory cap is twice the model’s figure for its
site, never under 512 MiB, so a branch sits at the floor and a large hq gets a few GiB. A
outpost that outgrows twice the model is killed and restarted by its on-failure policy rather than
crowding its neighbors, and the polls it missed while down read as loss. The server and Postgres run uncapped.
A bring-up never hangs. It is bounded by a timeout (20 minutes, or the hidden --ready-timeout),
the seed included. Past it the lab removes everything it started and names what was not up: each
site whose simulator never connected, and each site’s components not up yet, by name and loopback
address.
make scale-lab (with SYSTEMS=300 and SCENARIO=corporate by default) runs the check the scale
lab is proven by: it brings a size up through bin/omniglass lab run, asserts one outpost container per
site and every component at its own loopback address, prints the containers’ memory and CPU, and
stops the lab, asserting it left no container or network. It builds the image and stands up real
containers, so it is not part of make test or CI.
A plan seeds as configuration rows through devseed.SeedPlan (internal/devseed/plan.go), the one
entry point the scale lab’s bring-up calls: the sites, buildings, floors and rooms, the systems in the
rooms, the components filling each system’s slots, and the simulated endpoints on them, each site’s on
that site’s outpost (PlanOptions.OutpostFor; Outpost alone puts them all on one). It drives the
Gateway’s own create methods, one row per transaction, so names, labels, audit rows and derived health
come out as they do for an operator’s writes, and the same plan always lands the same names and
addresses. It seeds no metric history. Measured on a shared worker, the corporate plan takes about 12
seconds at 100 systems and 2 minutes 13 seconds at 1,000, most of it the health recompute each slot
assignment triggers rather than round trips (#1562).
PLAN_MEASURE=100,1000 go test -run TestPlanSeedMeasure ./internal/devseed/ reproduces the table.
Measuring a scale lab
Section titled “Measuring a scale lab”omniglass lab measure says what a fleet of a size costs to run: one table, measured over a window you
state, from a running scale lab. One measurement is diagnostic and never a gate (ADR-0094): on a shared
host the figures move with the neighbours, so compare runs from one machine. It is outside make test.
What gates is several measurements of a named size checked against a committed baseline, below in
Checking against the baseline.
make scale-measure SYSTEMS=300 # brings a lab up, measures it, removes it./bin/omniglass lab measure --systems 300 --warmup 2m --window 3m # the same, with the window chosen./bin/omniglass lab measure # measures the scale lab already runningWith --systems it brings up a throwaway scale lab, waits for it to be ready, lets it run for --warmup
(the first minutes are a burst, every outpost’s first collection), measures for --window, removes the
lab and checks nothing is left. Without it, it measures the scale lab you started with
omniglass lab run --scenario corporate --systems N; that lab must be one this build started, because
the ingest lag reads the commit times Postgres records only when the lab asks it to
(track_commit_timestamp), and a lab started before that says so and stops. The report’s first line
names the scenario and size, read from the lab’s labels, so a measure of the running lab never echoes a
flag; a lab without them, or a dev lab (which has no size), says so and stops. It writes the same figures
as JSON (--json, lab-measure.json by default, empty for none), so two runs diff.
Every flag, its default and its meaning is in the generated
CLI reference, which make gen writes from the command itself.
How to read each row:
- metric rows a minute, property rows a minute: rows inserted per minute over the window, from the database’s own insert counters, so they count every writer (the ingest consumer, the rules that calculate metrics, the server). The first is the lane the collection fills.
- metric rows a day, metric table a day, property table a day, receipts a day, database a day: the
window’s growth multiplied up to 24 hours. Row counts are inserts; the table figures are the
relation’s size on disk including its indexes, so they step in 8 KiB pages: a lane that grows
by less than a page in the window reads
0 B, and a short window is coarse. Receipts are the bus consumer’s delivery receipts (telemetry_receipt, which make a redelivered batch land once and carry each batch’s delivery ledger and outcome, the delivery table’s source), and the database line is the whole database, so it also carries the logs and anything else that grew. A daily-partitioned lane is one relation per day, so its growth is the sum across them. Extrapolation assumes the window is steady: a window that includes a burst reads high. - batches landed, samples landed, samples per batch, batches a second: the receipts the window inserted (one per batch the ingest consumer landed), the metric and property rows it inserted, their ratio, and the receipts over the window’s seconds. An outpost sends one batch per tick with a group per task, so samples per batch grows with the tasks an outpost runs; a figure near one means batches are not being coalesced. The rows count every writer, as the per-minute rows do, so the ratio reads a little high in a lab that calculates metrics. The receipt count is Postgres’s inserted-tuples counter, which also counts a receipt whose transaction rolled back, so a batch the consumer landed in three passes after a Postgres refusal counts three, and samples per batch reads low under a refusal storm.
- WAL a day: the write-ahead log written during the window (the difference between two log positions), multiplied up to a day. It is what replication and backups would carry, and is usually more than the tables, since every change is logged and indexes are logged with it.
- WAL a sample: the same WAL delta divided by the samples the window landed, the figure that sizes replication and backups per device rather than per day. It carries every writer’s WAL (the receipts, the calculated metrics, the server’s own rows), so it reads a little high for the raw lane alone; a figure far above the row’s width is index and receipt cost, not the sample.
- database size, metric partitions, metric blocks and trends, dead tuples: what the database holds
at the window’s end, where the rows above are what it gains. The size is the whole database; the
partitions are the metric lane’s daily partitions and the day the oldest starts, so retention is
keeping up when the oldest day moves forward and the count stays level. The blocks and trends are
the bytes of the two rollup tables. The dead tuples are the rows deleted or updated in
property,log_lineandoutpost_logthat vacuum has not yet reclaimed, summed over their partitions; a count that only climbs across a sampling run is vacuum falling behind. Each is a level, not a rate, so one run reads one point, and a sampling run reads its trend. <container>cpu, memory: each container’s CPU in millicores (a thousand is one core) over the window, from the cgroup’s CPU time, and its working set (anonymous plus shared memory, the part not reclaimable as page cache). The working set is the median of about 30 reads taken across the window, so where in the Go heap’s collection cycle the window happened to end does not move it. One line each for the server, Postgres and every outpost, then the total. An outpost is one site’s simulators and its collection, so its cost is what that site’s devices add; the server and Postgres are what every site’s writes add up to.- ingest lag p50, p95, p99: the time from a sample’s probe (the timestamp the outpost gave it) to the
commit of its row, over the newest observed metric rows the window landed (up to 20,000, the count is
shown). It includes the outpost’s batching, the bus, the consumer and the insert. Percentiles are
nearest-rank; the p99 is the figure the scaling targets
hold the ingest path to. An outpost flushes its spool once a second, so a lag near one second with a
flat tail is the spool wait, not a queue. It is not network time to a real device: the simulators
answer from the same host.
When no sample probed inside the window had committed by its end, all three cells read
not measured: landing has fallen further behind than the window is long. The table then ends with the reason and how long before the read the newest row committed and its sample was probed, and, if that sample was probed before the window began,ingest lag exceeds the windowwith how long before the window’s end it was probed. That is an ingest finding, not a blank; the JSON carries the same underingest_lag_not_measured, and every other figure is still reported. The lag also readsnot measuredwhen the lane is behind, because it times only the samples that landed, and a lane far behind lands only the ones that skipped the queue, which read fast (#1897). The lab’s closed loop reads each outpost’s tally outside the ingest stream: when itspublished-not-landedcount over the window is above 0, the lag is refused with the share as the reason (N % of the window's published batches had not landed). The closed loop’s window is the endpoint marks, taken a read or two around the database window the lag is read over, so the share is a window-edge approximation, so a share up to 5 % (a batch still in flight at the end mark) stands and a share past it refuses. When the closed loop was not read, the lab estimates the share from the poll cadence in one unit, probes (the distinct component and probe times that landed against the probes the targets should have drawn), refuses past the same 5 %, and says in the reason that it is a floor estimate. When that estimate cannot be computed the lag stands, with a note under the table (ingest_lag_notein the JSON) that it was not checked. The JSON carriesunlanded_shareandunlanded_estimatedbeside the reason. - consumer redeliveries: batches the ingest consumer could not confirm and the bus handed it again
(
unconfirmed acks), and messages it dropped after repeated failures (abandoned), counted from the server’s log since the window began. A redelivery that succeeds the second time logs nothing, so this is a floor: zero means none was logged, not none happened. Anything above zero in a quiet lab is worth a look. - consumer lane busy: how much of the window the busiest ingest lane spent inside its handler,
landing batches. The telemetry stream is a work queue filed by a partition of each outpost’s name, with
one durable and one message in flight a partition (
OMNIGLASS_INGEST_PARTITIONS, 4 by default), so each partition is one lane and an outpost’s batches always share one. The busiest lane bounds ingest, not the lanes’ sum: at 100 % every batch on it waits for the one before it and its outposts’ lag grows without bound; at 25 % it could carry four times the load before it saturates. The push lane and any partition left draining share a tally of their own, which is no one lane’s and is left out. The row also gives the service time a batch (busy time over batches) and the batches every lane counted over its span. The server tallies every batch’s handler time and logs each lane’s cumulative count and busy milliseconds every 30 s (msg="ingest lane", a line a lane naming itspartition, only when the count moved, so an idle server is quiet); the harness reads each lane’s first and last tally inside the window and divides the busy time between them by the time between them, so the fraction is exact to the millisecond over that span and no boundary estimate is needed (a batch in flight at a tick counts toward the next interval). It needs a lane with two tallies inside the window, 30 s apart: a window too short to hold two ticks, lanes that were idle at a tick, or a server built before this line readsnot measuredwith the reason under the table, as does a tally that went backwards (the server restarted inside the window). Together with the lag this answers whether more lanes would help: a lag at the spool wait with the busiest lane mostly idle means the lanes are not the bottleneck. - fleet view p50, p95: the time of
GET /api/v1/views/fleet, the whole-fleet view the console opens on, read through the API with a token the harness mints, spread evenly over the window so it is read while the lab collects, not while it idles. The reads are sequential, so these are one user’s response times, not a load test. - system page p50, p95: the time an operator waits for the console’s system page, with
--page-clients N(0, the default, skips it and the rows readnot measured). A load is every read a cold open of the page makes, all at once as the browser makes them, timed from the first request to the last answer: the catalogs it labels with, the system, its health, members, slots and metrics, and then one 24 hour series read for each chart the metrics answer names. N clients each make--page-loadsloads spread over the window, staggered so their loads overlap, against the system--page-systemnames or the fleet view’s first. A load where any read does not answer 200 is an error, kept out of the times and counted in the p95 row and assystem_page_error_ratioin the JSON, 0 when every load answered. The page’s own test fails when the page gains or drops a read this list lacks, so the load cannot drift from the page. The alarms, events and logs are not part of it: the page reads them only when its activity tab is opened. - retention drain: how fast the retention pass deletes rows past their window. After the window
the probe plants aged property rows (
--backlog, each with a newer row of its own series, which the prune requires), restarts the server so its pass runs at start, and reads the count of rows left every half second. The rate is rows deleted over the span deletes were seen in; the time before the first delete (the restart and the pass’s startup) is shown apart asafter N s to start. A backlog above one pass’s budget (200,000 rows) is a rate over the first pass, the rest left for the next. It measures the property lane, whose retention deletes in chunks; the metric lane’s retention mostly drops whole daily partitions, which has no rate to read. The probe removes its rows when it is done, and--backlog 0skips it, leaving the server running as it was. - worklist pull loss: each outpost’s worst share of worklist pulls the bus refused or the outpost could
not read, over the window, read from the
worklist-pull-loss-ratioevery outpost reports on its own platform component each report window. The row prints the worst outpost by name and how many outposts were refused,0 %when every pull was served, and counts any outpost that reported nothing as unreported. An outpost refused from its start reports 100 % here rather than nothing. An outpost refused later keeps running its last worklist, so the delivery table can read 0 while it misses every change made since. A read that failed, or found no outpost reporting, printsnot measuredwith the reason under the table: every outpost reports the ratio every window, so finding none is no reading, not a clean one.
Every request reached its endpoint and was answered
Section titled “Every request reached its endpoint and was answered”Below the table, an endpoints block closes the loop: what every outpost sent, what each simulated
endpoint saw arrive and how it answered, and what landed in the database, reconciled hop by hop.
Each outpost is read through GET /outposts/{name}/simulation/observation at the window’s start and at its
end, and each read is a bracket of three (the simulator, the outpost, the simulator again; see
what an endpoint observed). The start’s
reads follow a read of the database’s clock and the end’s precede one, so the telemetry receipts
that clock bounds fall inside the reads. Per protocol it prints:
- received: the requests the outpost’s simulators saw arrive over the window, beside how many
poll targets the window should have drawn on that protocol at least twice (each enabled poll
task’s endpoint, at the interval its outpost actually runs it: a driver poll at its function’s
schedule, a reachability probe at the outpost’s probe interval), the connections accepted, and each
outcome. Many http requests read
refused, which is not a loss: a digest-authenticated device answers each first request 401 before the one that carries the credentials, as real gear does. - service time: the simulators’ own time to answer, p50, p95 and p99, merged over the outposts.
- overlap-ratio: the share of requests that found their face already serving one. An outpost sends a face one request at a time, so anything above zero is a finding; the five worst faces since each simulator started are named under the block.
- in flight high and arrival high: the most requests an outpost’s simulators held at once, per protocol and over all of them, beside the outpost’s dispatch gauges once a pool reports them.
Then one line per gap, in the order a request travels:
| Gap | Lost means | Masked by |
|---|---|---|
connect-not-accepted | a connection the outpost opened that no simulator accepted | connections still in the kernel’s backlog at the end read |
sent-not-received | a request whose bytes left the outpost and never arrived | requests in flight at the outpost’s end read |
received-not-settled | a request a simulator received and never settled | |
answered-not-returned | an answer a simulator gave that the outpost never got | answers in flight, answers late past the outpost’s timeout (shown as answered late), and traffic on the protocol the outpost does not tally yet (#1661) |
published-not-landed | a batch the bus acknowledged with no receipt in the database | receipts landed in the 30 s before the window (the bus’s acknowledgement wait), before the ingest lane drained past the start read (batches from before the window), or after its end |
spool-dropped | a batch the outpost’s spool gave up on | |
unhit-endpoint | a poll target due at least twice whose device saw nothing on its protocol | devices past the simulator’s sample of twenty, not checked against the targets (#1663) |
Every figure is a lower bound: positive only where something was lost, with what could hide a loss
printed beside it as masked, never folded into it. A clean run reads 0 lost on every line.
A loss is named per outpost under the totals, with the protocol and, for an unhit endpoint, the
component. An icmp target reads not observed by the sim, since the kernel answers a ping. An outpost
whose simulator carries an applied impairment reads impaired instead of lost on every gap (an
impairment loses traffic on purpose; telling it apart per protocol is #1662), and an outpost or
simulator that restarted inside the window, or a simulator whose served fleet changed in it (a device
added or removed), reads restarted, since none of its figures compare.
The window is refused past 23 hours, since the server prunes receipts at a day. Each mark waits for
the ingest lane to land a sample an outpost probed after it, so a lagging lane delays the count rather
than reading as a lost batch. When the block cannot be read (a simulator or outpost not answering, or
a lane still behind three minutes after a mark) the table ends with
endpoints not measured and why, and the JSON carries it as endpoints_not_measured; every other
figure is still reported.
Reading the delivery table
Section titled “Reading the delivery table”Below the endpoints block, the delivery table says how much telemetry the lab lost on the way in, as a
loss ratio per kind per hop, (in - out) / in, read the same way for every kind
(messaging). Each lane reads apart:
outpost is what the outposts collected and shipped, push what was pushed to the server (POST /telemetry:push and the webhook receivers). The scale lab’s push lane comes from the outside actors
its scenario declares (the manifest format): corporate places one booking
service a site, each pushing its four systems’ bookings, and one meeting platform account for the
fleet, posting a signed report of its rooms’ meeting state, both every 30 seconds from the simulator
beside the site’s outpost. So every corporate lab reads push rows: metrics and properties from the
bookings, properties and log lines from the reports. A report names the account’s own demo rooms
too, which no system binds, so the push lane’s properties read some unbound, which is not loss.
Anything else that pushes to the lab’s server during the window, as
omniglass telemetry push against it does, reads on the same lane. A healthy lab reads exactly 0
for every kind on both:
delivery lane hop in out loss dedup causehttp outpost sim 540 540 0 - -snmp outpost sim 310 310 0 - -metric outpost schedule 4100 4100 0 0 -metric outpost outpost 1275 1275 0 0 -metric outpost ingest 1275 1275 0 0 -property outpost schedule 3020 3020 0 0 -property outpost outpost 166 166 0 0 -property outpost ingest 166 166 0 0 -event outpost outpost 0 0 - 0 -event outpost ingest 0 0 - 0 -log outpost outpost 0 0 - 0 -log outpost ingest 0 0 - 0 -pushes push publish 8 8 0 - -metric push ingest 12 12 0 0 -property push ingest 24 24 0 0 -event push ingest 3 3 0 0 -end to end outpost metric 0 property 0 event - log -publish push counts pushes, not items: refused-turn is a push answered 503 when its wait for the turn ran out; it minted nothing, so it is never missing at ingestThe outpost lane’s rows read in the order the work crosses the hops, each kind’s own in turn, and the push lane’s follow, its publish row ahead of its ingest rows:
-
The sim rows come first, one per protocol the outposts tally (
http,snmp), read from the same marks as the endpoints block. They count requests, not items, since a simulator cannot know which kinds an answer would have carried: in is every request the simulators settled on traffic the outposts tally, out the replies that reached the outpost (returned). A refusal or error that came back is returned: the device said no and the task reports it. The rest is loss, by cause:withheld(the simulator kept the answer back, a wrong community or its own datagram loss),dropped(it could not write the reply), ornot-returned(the reply left the simulator and never reached the outpost, lost on the way or late past the outpost’s timeout). A reply still in flight at the outpost when the mark reads is not lost. The rows sum the outposts, and an outpost that restarted in the window (or whose simulator’s served fleet changed in it) has no figure to add: the table names it under the rows,sim not counted: edge-west restarted or changed fleet in the window, so a row never reads as every outpost’s when it is not. Dedup reads-: a request is never redelivered. The JSON carries each sim row’sprotocolin place of akind, with these four outcomes. -
The schedule row is the hop upstream of every item, the outposts’ dispatchers (#1693): in is the runs due on the schedule that produce the kind and out the runs made, so its counts are runs, not items, and its cause is
skipped, a due passed over because the lane’s last run was still in flight or the pass came late. A healthy lab reads 0. The row comes before the kind’s outpost and ingest rows, and a kind no scheduled task produces (events and logs, today) has none:delivery lane hop in out loss dedup causemetric outpost schedule 4100 3690 0.1 0 skippedmetric outpost outpost 1275 1275 0 0 -metric outpost ingest 1275 1275 0 0 -A skipped due made no item, so it never reaches the outpost or ingest rows: a lab whose devices answer slower than their poll interval reads 0 at the outpost and at ingest and its loss here.
-
The outpost row is what the outpost minted against what its spool shipped (#1692). in is the items the outpost minted in the window and the items it lost before minting them into a batch, out the items it handed to the stream (
shipped). Its causes are the outpost’s own:spool-overflow(the spool dropped its oldest batch at the count or byte cap, usually a bus outage outlasting the spool),spool-expired(a batch aged out at 12 hours),bus-refused(the bus refused the batch for good, too large or a bad subject),self-log-overflow(the outpost’s self-log buffer dropped lines before it could ship them) andencode-failed. -
The ingest row is what was shipped against what the server accounted for. On the outpost lane its in is exactly the outpost row’s out; on the push lane it is the items the server minted as it published each push (the batches’ ledgers, plus the items of any batch that never landed), and it is the push lane’s only per-kind row: a push crosses no sim, schedule or outpost hop. out is the items accounted for (
stored; for propertiescoalesced, an unchanged value skipped on purpose; andunbound, an identity no binding places, which the conduit’s unbound inbox holds for the operator to assign). -
The publish row is the push lane’s front door (#1746). Every push and webhook post waits for the server’s one publish turn, since the push lane publishes one batch at a time, and a wait past 5 seconds is refused: the pusher is answered
503and the server mints nothing for it. The row counts pushes, not items, since a refused push never says what it carried: in is every push that waited for the turn, out those that took it (turn-taken), and the loss isrefused-turn. A healthy lab reads 0; a push lane that cannot keep up with its pushers reads its loss here while its ingest rows still read 0, because a refused push left no hole in the ledger to read asmissing. A note under the table says so. The row is read from the server’s own push lane metrics (below), not from receipts, so a lab with no pushers has no publish row, and its window is the report windows that closed inside the measured one: it can lead or trail the ingest rows by up to one report window (collection.report_seconds, a minute by default). A push that took the turn and then failed to publish readsturn-takenhere, and its items are taken back off the ledger (the pusher was answered 503 and still holds them), so it reads on no row below. Dedup reads-: a turn has no redelivery.
A kind with nothing in reads -, never 0, and the push lane shows a kind only once its boot has
carried one (the sample’s push lane has pushed no log line).
-
dedup is the items a redelivery carried again, which the receipt absorbed. It sits beside the ratio, never in it, so a retry storm never moves the loss off 0.
-
cause is the largest outcome behind a loss: a
refused-<why>(a key not registered, a writer or instance refused, a value invalid or empty, a group the gateway refused),orphaned,unidentified, a cause the server Termed a whole batch for, ormissing. A Termed batch readsrefused-owner(it asserted an owner on the outpost lane),refused-task(task rows outside its groups),refused-batch(the gateway refused it whole),refused-metadata(its delivery metadata was unreadable) orabandoned(its fifth delivery failed); a later copy of it that lands replaces that reading with its own. Anunboundidentity is not loss: the operator has not assigned it, and the inbox already shows it, so the dev seed’s deliberately unboundzr-boardroom-breads 0. A refusal is loss on purpose: the sims emit only valid keys, so any refusal in a lab is a bug worth chasing. The JSON (delivery) carries every outcome’s count on every row, with the same keys for every kind. -
missing is a batch that was shipped and never landed and left no receipt: a hole in a boot’s batch sequence its publisher did not account for, its items read from its neighbors’ offsets. A batch the outpost dropped leaves the same hole, but the batches after it name it, so it reads on the outpost row under its cause and never as
missing; a batch the server Terms whole, on either lane, leaves a Term receipt and reads under its own cause. What is left cannot say why; the footer names the lane and what a hole on it can be. On the outpost lane it readsshipped by the outpost, never landed: undecodable at ingest, or lost between the stream and the store; on the push lane,published by the server, never landed: undecodable at ingest, or dropped by the stream before it was read. A push the stream refused is not one: the pusher was answered503and still holds its items, so the server took them back off its ledger. -
end to end is each kind’s loss over every hop the outpost lane carries it across,
1 - prod(1 - loss): a third lost at the outpost and nothing at ingest reads 0.3333 end to end, and in the schedule example above metrics read 0.1, the schedule hop’s. A hop with nothing in loses nothing, so a schedule that skipped every due of a kind reads that kind’s end to end as 1 though its later rows read-. A kind with no ingest row (every boot unsettled) reads-: the schedule hop alone does not stand for the end to end. The sim hop enters as one loss pooled over every protocol’s requests, composed into each kind with an ingest row: an approximation, since a lost request carried some kinds and not others. With no sim rows it is the product of the kind’s own hops. The push lane’s ingest rows are each their own end to end, and its publish row counts pushes, which no kind’s items compose with, so the line leaves the push lane out. -
unsettled names a boot whose window’s batches were not all known when
--settle-timeoutran out (no later batch said its publisher had cleared past them, or the stream had not answered every batch published by then), with no ratio for it rather than a guess. An outpost boot readsoutpost <name>, boot <id>; the push lane’s boot is the server process’s, and readspush lane, boot <id>. The push lane settles on the next push, so a lab whose pushers stopped before the window ended, or whose server restarted after it, reads its push lane unsettled. The stream has answered them when the telemetry consumer’s ack floor, gauged by the server each report window, reaches the stream’s last sequence as read after the last of those batches was published: everything at or below the floor landed or was dropped at the delivery bound, so the read settles under steady load, with the consumer never empty. A note under the table gives the floor and the last sequence it had not reached, or which gauge was never read, when the stream was the cause. At the platform’s 60s report window the settle can take four windows, so--settle-timeoutdefaults to 5 minutes. The settle polls the stream’s gauges every 5 s but re-reads the receipts only when the ack floor has moved, and the receipts read is bounded to the window by indexes, so a lab that cannot settle does not load its database for the whole bound. -
unshipped names an outpost boot that will never settle because its outpost started again while its spool still held batches: the spool is memory, so they went with the process. The boot is read as far as it landed, and the line gives its last landed seq and when the next boot began:
unshipped outpost edge-1, boot 0193...: last seq 412 landed, boot 0193... began 2026-11-10T14:02:11Z; anything after 412 never shipped, uncountedNothing that landed says how many items the dead boot minted after its last landed batch, so the line names the tail without counting it; #1733 counts it on the outpost row.
A refusal can be shown on purpose. The hidden --induce-unregistered brings a scale lab up with one
simulated component answering a property key no driver registers: the seed registers the key, writes a
copy of that device’s driver whose extra poll emits it, attaches the copy, and unregisters the key
again, so the device’s tasks keep collecting a name the catalog no longer has. The property row then
reads a loss above 0 with cause refused-unregistered, the metric rows still read 0, and the seed’s
summary names the device and the driver copy. It is off unless asked, and only a scale lab takes it:
./bin/omniglass lab run --scenario corporate --systems 30 --induce-unregisteredThe same 23-hour window limit applies, since receipts are kept a day. A lab
whose server predates the ledger reads delivery not measured with the reason, and every other figure
is still reported. When the sim rows were read but the ingest hop was not, the table keeps the sim
rows and ends with ingest not measured and the reason. When the closed loop was not read (the
endpoints block reads endpoints not measured), the table has no sim rows, its end to end is the
ingest hop alone, and it says so under the rows: sim not measured and the same reason.
The window and the warm-up are printed above the table, and belong beside any figure you quote from it.
The perf gate reads this table as it prints it: every row with a loss above 0 fails the check, naming its kind, hop and cause; an unsettled boot fails it, by name; and a read that was not measured fails it with the reason. There is no tolerance, since a healthy lab reads exactly 0 by construction, and the gate never passes on a read it could not make.
Reading the push lane’s turn
Section titled “Reading the push lane’s turn”The publish row is the window’s sum of four figures the server writes about its push lane every report window, on its own platform component beside its ingest lag (#1746). They are how to tell a push lane that is keeping up from one whose pushers queue behind each other:
push-lane-publish-count: the pushes and webhook posts that waited for the publish turn, taken or refused.push-lane-refusal-count: those refused because the wait passed 5 seconds, each answered503with nothing minted. As a share ofpush-lane-publish-countit is the publish row’s loss; healthy is 0.push-lane-turn-wait-p99,push-lane-turn-wait-max: how long a push waited for the turn, in milliseconds, at the 99th percentile and at worst. A refused push counts its whole wait, and so does a push whose pusher gave up first (its own timeout under 5 seconds): that wait is in neither count above, since the push neither took the turn nor was refused, but it is queueing all the same. Healthy is a few milliseconds; a p99 that climbs toward 5,000 is the push lane about to refuse. A corporate 3,000 lab pushes about 5 times a second and reads a p99 near 0.01 ms with no refusals, the measurement the one publish turn stands on (ADR-1746.2).
Platform health shows all four on the server’s Ingest panel, the refusals as a share of the publishes. The CLI reads the same panel:
omniglass view platform list | jq '.servers[].groups[] | select(.name == "ingest") | .figures[] | select(.key | startswith("push-lane-")) | {key, value, observed_at}'and on a scale lab, whose port is its own, the database reads every window of them:
docker compose -p omniglass-scale exec db psql -U omniglass -d omniglass -c " select m.ts, mt.name, m.value from metric m join metric_series s on s.id = m.series_id join metric_type mt on mt.id = s.metric_type_id where mt.name like 'push-lane-%' and m.ts > now() - interval '15 minutes' order by m.ts, mt.name"Every corporate lab pushes, so every corporate lab writes them: a booking service and a meeting
platform account at each site (the manifest format’s pushers:), so the
number of pushers grows with the sites. To read the turn at a size, run that size and measure it:
omniglass lab run --scenario corporate --systems 1000 # one terminal: the lab, until Ctrl-Comniglass lab measure # another: measures the running labmake scale-measure SYSTEMS=1000 # or bring one up, measure it, remove itChecking against the baseline
Section titled “Checking against the baseline”omniglass lab perf turns the measurement into a regression gate
(ADR-1640):
it measures fresh throwaway labs of a named size and compares them with that size’s committed baseline,
so a change that makes the fleet costlier to run fails before it merges.
make perf-check SIZE=300 # three labs at 300 systems against corporate-300.jsonmake perf-check SIZE=1000 # three at 1000 against corporate-1000.jsonmake perf-baseline SIZE=300 # three labs, then rewrite the 300 baseline from them./bin/omniglass lab perf check --size 300 --runs 1 --image omniglass:mine # one lab, a private imageA size is a rung of the measuring ladder, named by its systems; where it runs is a fact of the host, which the baseline’s fingerprint records, not of the name. A size fixes everything a run measures with, so two runs of it are comparable: the scenario and its systems, the warm-up, the window, the timed fleet view reads, no backlog and no system page clients. The window is a whole multiple of every poll interval the scenario’s drivers and cadence declare, so each run counts the same whole rounds:
| Size | Lab | Warmup | Window | Fleet reads | Baseline file |
|---|---|---|---|---|---|
300 | corporate at 300 systems | 2 min | 5 min | 100 | corporate-300.json |
1000 | corporate at 1000 systems | 2 min | 5 min | 100 | corporate-1000.json |
Each figure is in one of three classes. Exact figures must be 0 whatever the baseline holds: a lost request, a redelivery, a dropped sample or a lost telemetry item is a bug, not a cost. Host-independent figures are counts (rows, bytes, samples), which gate on any host. Host-dependent figures are times and container usage, which gate only on the host the baseline was generated on:
| Figure | Class | Rule | Unit | What it is |
|---|---|---|---|---|
closed_loop_loss | exact | must equal the baseline | count | every closed-loop gap from endpoint to database (#1639), per gap |
ingest_lag_not_measured | exact | must equal the baseline | count | 1 when no sample probed in the window had landed by its end |
redeliveries | exact | must equal the baseline | count | telemetry batches the server logged as redelivered or abandoned |
delivery_loss | exact | must equal the baseline | count | each telemetry kind's loss across each hop (#1641), per hop and kind |
worklist_loss | exact | must equal the baseline | count | each outpost's worst share of worklist pulls refused or unreadable (#1868), per outpost |
delivery_unsettled_boots | exact | must equal the baseline | count | outpost boots whose batches had not all settled when the read ran out |
metric_rows_per_minute_per_system | host-independent | within 2% either way | rows/min | metric rows the fleet writes a minute, per system |
property_rows_per_minute_per_system | host-independent | within 25% either way | rows/min | property rows the fleet writes a minute, per system; a window holds about 90 at ci's size, so count noise sets its tolerance |
database_bytes_per_day_per_system | host-independent | no more than 15% worse | bytes/day | the database's growth a day, per system; storage grows in allocation steps a 5 minute window does not average out, so its tolerance is wider |
wal_bytes_per_sample | host-independent | no more than 10% worse | bytes | WAL written per landed sample; moves with checkpoint timing, so its tolerance is wider |
samples_per_batch | host-independent | within 5% either way | samples | samples a landed batch carries |
endpoint_latency_p95_ms | host-dependent | no more than 20% worse | ms | the simulated endpoints' p95 service time, per protocol |
ingest_lag_p95_ms | host-dependent | no more than 20% worse | ms | p95 from a sample's probe to its commit |
server_millicores | host-dependent | no more than 15% worse | millicores | the server container's CPU over the window |
server_working_set_mib | host-dependent | no more than 15% worse | MiB | the median of the server container's working set read across the window |
fleet_view_p95_ms | host-dependent | no more than 20% worse | ms | p95 of the console's fleet view reads across the window |
How to read the verdict table it prints, one row a figure:
- pass: inside its tolerance, or past it by no more than the baseline’s spread plus the fresh runs’ spread. A gated figure is the median of the runs, with the spread (highest less lowest) beside it.
- fail: past its tolerance and past the combined spread. The check exits nonzero. Rows a minute and samples a batch fail in either direction, since fewer rows means lost work; every other figure fails only on the worse side.
- noisy: the fresh runs spread wider than the tolerance, so they could not have seen a regression of that size. It does not fail the check, and the table prints it first: run more labs, or run on a quieter host.
- improved: better than the baseline by more than its tolerance. It never fails; regenerate the baseline so the gain is held.
- reported: a host-dependent figure measured on a host other than the baseline’s (another CPU, core count or memory size). The figure is printed for the reader and gates nothing; the counted figures still gate in full. The table’s host line names both hosts. Run on the baseline’s host class (a test VM of 8 cores and 16 GiB, for every rung) to gate them.
The delivery table’s rows are exact figures, one a kind a hop, named
delivery_loss/<hop>/<kind> for every row the table prints a loss for (a kind with nothing in reads
- and is no figure). A sim hop row names its protocol in place of the kind (delivery_loss/sim/snmp),
and a push-lane row names its lane first (delivery_loss/push/ingest/metric), so it is never folded
into the outpost lane’s row for the same hop and kind. The publish row counts pushes, so it names them
instead of a kind: delivery_loss/push/publish/pushes. Over several runs the worst run is the
figure, and its note says what was lost, where, and the largest outcome behind it, the same cause the
table prints:
STATUS FIGURE CLASS BASELINE OBSERVED DELTA SPREAD (BASE/RUNS) TOLERANCE NOTEfail delivery_loss/ingest/property exact 0 0.3 0.3 - 0 property lost 3 of 10 at ingest, cause missingfail delivery_unsettled_boots exact 0 1 1 - 0 no ratio read from outpost edge-hq boot 019a6c1epass delivery_loss/ingest/metric exact 0 0 0 - 0delivery_unsettled_boots counts the boots no ratio was read from and names the first three, with the
stream’s backlog note when the stream was the cause. A run whose delivery read was not measured, or
read no kind carrying items, fails as delivery_loss with the reason: a fleet that delivered nothing in
the window is not a fleet that lost nothing.
worklist_loss/<outpost> is each outpost’s worst worklist pull loss over the window, and any outpost above 0
fails with a note giving the share of its pulls that failed: an outpost refused on every pull reads 1. The
read starts from every outpost the lab holds, so an outpost that reported nothing in the window fails as
missing rather than dropping out. A run whose worklist read failed, or found no outpost, fails as
worklist_loss with the reason. An outpost with no worklist (its latest task count is 0, as an outpost
refused its first worklist reports while it waits) runs no task, so the ingest drain does not wait on
it for a sample, and the run reaches this gate and names it rather than failing as not drained.
Before any figure, the runs themselves must be clean, or the soak verdict is invalid and the check exits nonzero with the reason: the runs measured another size, window or warm-up than the baseline’s, this build places a different device set than the baseline’s (the plan digest moved, so regenerate the baseline) or a run recorded no device set at all (a series from before the gate), an outpost restarted or its simulator’s served fleet changed inside the window, or a device carried an impairment. A gated lab is never impaired, so an impaired gap can only mean a fault left on.
Regenerating a baseline is a reviewed act. make perf-baseline SIZE=... writes each figure’s median,
spread and values, the inputs and the host fingerprint, and refuses, naming each figure, when an exact
figure is not 0, a figure was not measured in every run, or a figure’s runs spread past its tolerance
(a check could never gate it). Generate it on the host class it gates: every rung’s baseline comes from
a test VM of 8 cores and 16 GiB. A check anywhere else gates only the host-independent and exact
figures. A PR that
changes a baseline file says why in its body. --append FILE keeps each
run’s report as a line, so runs a baseline refused can be read again with --samples FILE instead of
measured again; --samples also reads the last --runs (or --last) lines of a sampling run’s series.
The gate never runs in CI and is never a required check: a run takes a scale lab for the better part of an hour, and its times and usage gate only on the baseline’s host class, which a GitHub runner is not (ADR-1787). Run it by hand on a test VM before a change that could move a figure. Every flag is in the CLI reference.
Measuring each driver’s cost
Section titled “Measuring each driver’s cost”A scale lab measures whole outposts, and each of its outposts runs the simulator in its own process
(outpost run --simulate), so an outpost’s memory and CPU there include the devices it polls. What one task
of a driver costs an outpost is a separate measurement, and omniglass lab perf drivers makes it:
omniglass lab perf drivers --image omniglass:devIt brings up a throwaway lab with no fleet and no outpost of its own, then measures each shipped driver in turn on an outpost that runs only the outpost:
- An outpost of its own. The driver’s outpost runs in one container and the simulator beside it in another, sharing the outpost’s network namespace, so the outpost polls the simulated components on its own loopback while the simulator’s work lands in a different cgroup. The outpost runs the product’s own cadence (the heartbeat, probe and worklist pull a deployed outpost runs, not the lab’s quicker clock), so its background work weighs on the figures as it would in the field.
- Four steps. The outpost is measured holding none of the driver’s components, then N, 2N and 3N,
where N components bring about
--step-taskstasks (each component brings one task per poll the driver declares). Each step warms up, then reads the outpost container’s cgroup across a window long enough for the driver’s slowest poll to run: CPU between the window’s ends, and the working set (memory less file cache) as the median of reads spread across it. - A line, or a refusal. Millicores per task is the slope across all four steps. Memory per task is the slope across the three loaded steps alone: an outpost’s memory jumps when its first tasks land (its lanes start and its heap grows to its working size) and then rises by a slope, so the idle step sits apart, and the loaded line’s value at zero tasks over the idle outpost is the warm cost, paid once. A step off its line by more than a tenth of the rise in memory, or a quarter in CPU, refuses that figure, which is listed as not measured with why, never written down as a cost; the other figure still stands, and only a driver with neither is left out. A loaded line that starts below the idle outpost has no warm cost to show (the first tasks filled heap the idle outpost already held), so the warm figure is left empty with that reason rather than written as zero.
- A bigger step when memory hides. A cheap driver costs an outpost a few KiB a task, and at a small
step that rise is inside the heap’s own swing, so its memory does not fit. Such a driver is swept
again on a fresh outpost at four times the step, up to
--max-step-tasks, and the attempt that measured the most figures is kept (the bigger step on a tie). A figure that still does not fit is listed with why. Each row records the step it was measured at. - A step the outpost actually runs. Before a step is measured, the sweep waits until the outpost’s
installed worklist (its
worklist-task-count) holds every task the server holds for it. The server sends an outpost’s worklist as one bus reply, and a reply still over the bus’s maximum payload once compressed is refused, so the outpost keeps its last worklist (#1586); at the default 1 MiB payload that ceiling is about 18,000 tasks an outpost. A step past it would measure an outpost running the previous step’s tasks, so the sweep instead halves the step, down to just above the last step it measured, and caps any later growth there. - The cross-check. CPU per run is the CPU slope over the driver’s run rate. Beside it sits the
outpost’s own
poll-cpu-time, the polling thread’s kernel clock, averaged over the reports wholly inside each step’s window and read once the last has landed, after two of the lab’s live report windows. Thread share is the one over the other: the part of a run’s cost the thread clock sees. A low share is work the run hands to other goroutines, such as a held session’s reader, which is why thread CPU compares drivers only within one transport and the cgroup slope compares them across.
The run writes its table to internal/labfootprint/drivercost/shipped.json, relative to the working
directory, so run it from the repository’s root. The table is stamped with the date and the build, and
with the host’s cores and memory when the lab’s Docker daemon is local. A sweep stopped part way (an
interrupt, a lab that failed) still writes the drivers it had measured. Commit it after make gen, which renders it on the
scaling page, each driver on its own and rolled
up by its kind and poll interval; a shipped driver the table lacks reads there as not yet measured, so the table cannot quietly fall behind the drivers. --only
measures named drivers. A full sweep takes several hours, most of it in the windows of drivers that
poll every five minutes; run it on the host class the figures should describe. Every flag is in the
CLI reference.
Sampling a scale lab over time
Section titled “Sampling a scale lab over time”One window says what a fleet costs now; whether growth, retention and vacuum keep up shows only over
hours. --every samples the running lab on an interval instead, one compact JSON line a sample:
./bin/omniglass lab measure --every 10m --window 5m --append scale.jsonl --page-clients 4jq -r '[.seq, .ingest_lag_ms.p95, .system_page_ms.p95, .absolutes.dead_tuples.property] | @tsv' scale.jsonlThe lab is found, signed in to and warmed up once; then every --every one window is measured. Each
line carries the one-shot report’s fields at the same paths --json writes them, so a query written
against one measurement reads every sample, plus seq, at (when the window closed) and
uptime_seconds (how long the server had been running then, so a series whose uptime falls was
measured across a restart). --append opens the file for append, creating it if missing, so a series
stopped and started again continues the same file; without it the lines go to standard output.
--samples N stops after N samples, and 0 samples until interrupted: the first Ctrl-C or SIGTERM lets
the sample in flight finish and write its line. A sample that fails writes a line with its error and
no figures, and the run goes on, so a gap in the series is visible rather than missing. Each sample
also reads the endpoints block and the delivery table; the delivery read’s --settle-timeout wait can
run a sample past --every, and the next one then starts at once rather than skipping its slot.
Sampling never restarts the server: it skips the retention probe, --backlog defaults to 0, and a
--backlog you give is refused, as are --systems (sample a lab you brought up), an --every
shorter than the --window it measures, and --json. The schedule’s health on the outposts and command
latency are not in a sample yet (#1625, #1626).
A sample reads the lab from its host, through Docker. To read the same platform from anywhere else,
with a token and the API alone, use omniglass platform health: one
reading whose exit status is the soak verdict, or the same --every, --window, --append and
--page-clients series against a server you can reach but not shell into, such as a soak’s from your
desk.
A soak run
Section titled “A soak run”A soak run holds a kept scale lab up for days, at production cadence, under a service manager, with the sampler writing one line every interval: the evidence of whether growth, retention and vacuum keep up. It runs on a host of its own, so nothing else competes for the machine it measures.
Pin the build. A soak measures one build. Build its image once and give it a tag of its own,
named for the commit (omniglass:soak-<shortsha>), and run the binary built from the same commit:
--image runs a server the binary does not check against itself, and a shared tag rebuilt mid-soak
would measure two builds in one series. A release is already pinned: run its published
binary, which pulls the v<version> image by the digest stamped into it at release, and leave
--image off (cutting a release).
The lab unit. The service manager starts the lab, restarts it if it fails, and stops it with SIGTERM, which the lab treats as Ctrl-C: it removes its containers and network and keeps its volumes, so the restart picks up the same fleet and data. A systemd unit:
[Unit]Description=omniglass soak labAfter=docker.serviceRequires=docker.service
[Service]ExecStart=/usr/local/bin/omniglass lab run --scenario corporate --systems 3000 --cadence default --keep --image omniglass:soak-<shortsha>Restart=on-failureRestartSec=30# SIGTERM to the lab alone; it stops its containers and keeps its volumes.KillMode=mixedTimeoutStopSec=5min
[Install]WantedBy=multi-user.targetThe sampler unit. The sampler runs beside the lab, bound to it, and appends to one series file, so a sampler restarted mid-soak continues the same series:
[Unit]Description=omniglass soak samplerAfter=omniglass-soak-lab.serviceBindsTo=omniglass-soak-lab.service
[Service]ExecStart=/usr/local/bin/omniglass lab measure --every 15m --window 5m --append /var/lib/omniglass-soak/series.jsonl --page-clients 4Restart=on-failureRestartSec=60
[Install]WantedBy=omniglass-soak-lab.serviceA sample taken while the lab restarts writes its error line and the series goes on; the restart
shows as uptime_seconds falling.
Retention inside the run. A soak shorter than the retention windows never sees retention remove
anything. Once the lab is up, shorten the metric window so the run crosses it: retention’s
metric_days on Admin > Settings (how long data is kept),
or over the API with a token of the lab’s:
curl -X PATCH "$OMNIGLASS_SERVER/api/v1/settings/retention" -H "Authorization: Bearer $OMNIGLASS_TOKEN" \ -H 'Content-Type: application/merge-patch+json' -d '{"metric_days": 2}'The setting lives in the kept database, so it survives the lab’s restarts.
Reading the series. Each line reads at the same paths as one measurement. One row a sample (a
failed sample’s error line skipped): when, the build, ingest lag p95, system page p95 (ms), database
bytes, metric partitions and the server’s memory (MiB):
jq -r 'select(.error == null) | [.at, .build, .ingest_lag_ms.p95, .system_page_ms.p95, .absolutes.database_bytes, .absolutes.metric_partitions, (.containers[] | select(.name == "server") | .working_set_mib)] | @tsv' series.jsonlThe first sample beside the last states the growth over the run:
jq -s 'map(select(.error == null)) | first, last | {at, build, lag_p95: .ingest_lag_ms.p95, page_p95: .system_page_ms.p95, database_bytes: .absolutes.database_bytes, metric_partitions: .absolutes.metric_partitions, server_mib: (.containers[] | select(.name == "server") | .working_set_mib)}' series.jsonlWith the metric window at 2 days, retention drops its first partition on day 3, and from then the partition count should stop growing.
Upgrading mid-soak keeps the data and the series: stop the sampler and the lab, install the new
binary and its pinned image, point the lab unit at the new tag, and start both again. The kept fleet
carries over (the seed migrates the database on every start), and the sampler appends to the same
file, so the series goes on under a new build. To split it at upgrades, list the builds in order
with how many samples each took:
jq -r 'select(.error == null) | .build' series.jsonl | uniq -cA build whose scenario plan differs at the soak’s size (its manifest or catalog changed) is refused by
the kept check, and so is a rollback across a schema change, since migrations only move forward: both
need one run with --fresh, which seeds the fleet over, so start a new series file with it.
Looking at it. The lab publishes its console on the host’s loopback only; reach it from your own
machine through a tunnel, then open http://127.0.0.1:8080/web:
ssh -L 8080:127.0.0.1:8080 <soak-host>The soak verdict. A week of the series says how the platform grew; whether it failed silently is the
platform’s own to say, and lab soak verdict reads exactly that, through the API alone: the platform
system’s alarm history and every loss ratio on the Platform health page. It judges the window from
--since to now (or --until), prints pass or fail with every reason, and exits 1 on a fail:
omniglass lab soak verdict --since 2026-11-20T08:00:00Z --record-dir docs/src/content/soak-recordsIt passes when the soak ran at least 7 days, no platform alarm is open, none raised in the window was
open longer than --tolerance (30 minutes by default), and every loss ratio on the page reads 0. A
reading that cannot answer fails instead of passing: no build, two builds, no loss ratio to read, a
token that cannot read the whole page (it needs outpost, system and component read over everything,
which the lab’s token has), or an alarm history cut at the API’s 500-alarm cap. The alarm history
reaches back 30 days, so --since may be no older than that. The thresholds are named in
internal/lab/soak.go (SoakMinWindow, SoakAlarmTolerance, SoakLossCeiling).
--record-dir writes the release’s record, <build>.md, whichever way it went. A final release
from 1.0 on needs a passing record for its build; a 0.x release does not, though a 0.x candidate may
be soaked by choice: the soak gate holds the record format
and the rule.
The manifest format
Section titled “The manifest format”name: corporate # the scenario's name, what --scenario takeslabel: Corporatesites: { min: 3, max: 30 } # the fewest and the most sites, whatever the sizestandards: - name: mr65 # a standard template from the catalog system_type: meeting # a registered system type products: # slot -> catalog product video-bar: kestrel-vroom main-display: boreal-edge-65 touch-control: newtron-panel-7 scheduling-panel: newtron-slate-5 control: [main-display] # optional: slots whose devices also get their second face room_name: Huddle # optional: its rooms are named for what they are, "Huddle 3" (#2757)archetypes: - name: hq label: Headquarters headquarters: true # placed exactly once, under its own name typical_systems: 250 # how many systems a site of this kind typically has room_names: [scientists] # the naming theme a site's rooms take, one theme a site (#2757) buildings: - { name: tower, floors: 30 } systems: # standard -> ratio, in tie-break order huddle-room: 30 mr65: 20 - name: branch label: Branch Office weight: 2 # this kind's share of the sites besides the headquarters typical_systems: 25 buildings: - { name: main, floors: 3 } systems: huddle-room: 40 mr65: 25pushers: # outside actors that report by pushing, placed at every site - name: booking # each placed one is <site>-booking-<k> profile: booking-service # a simulator profile with a push face per_site: 1 # how many each site has systems: 4 # how many of the site's systems each one pushes forservices: # polled cloud services: one account for the whole scenario (#2765) - name: scheduling # placed once, at the headquarters, as <hq>-scheduling-1 profile: scheduling-service # a product the simulator serves; it covers every system of every site label: Scheduling Platform # optional: what its component reads as in a console (#2757) - name: meeting # <hq>-meeting-1 profile: ucc-platform # a profile with a webhook face is a signed-webhook sender as well (#2790) - name: recording # <hq>-recording-1, the one recording service for every room (#2757) profile: recording-service # its list is paged, one record per room; no standard carries a recorder slotcalendar: # what every room acts out on the simulator's clock (#2757) meetings: mr65: # a standard of this scenario; knobs per standard booking_rate: 0.40 # the chance a free slot boundary starts a booking slot_mix: { 15: 1, 30: 5, 60: 3 } # slot lengths in minutes, by weight no_show_rate: 0.12 # the share of bookings nobody attends ended_early_rate: 0.18 # of attended bookings; the rest end on time or late ended_late_rate: 0.10 attendance: { min: 3, max: 8 } walk_in_rate: 0.08 # the chance a free 15-minute cell holds a walk-in hours: { start: 8, end: 18 } # UTC hours meetings fall in; omit for the whole day recording_rate: 0.15 # the share of meetings that took place that are recorded # How the room around its meetings behaves, read by every device in it through the room # phase. All optional; omitted, they read the values shown. wake_lead_seconds: 120 # a room wakes this long before a booked meeting someone attends cooldown_seconds: 300 # and stays in use this long after a meeting that took place recording_tail_seconds: 600 # a recorded meeting's recording is processed this long after sharing: { min_minutes: 30, parts: 3, from_part: 1, to_part: 2 } # a meeting this long shares from part 1 to part 2 of 3 problems: # what goes wrong on a schedule (#2769), scripted and not drawn - name: tuesday-display-dark cadence: weekly # daily; weekly (with weekday); monthly (with day, or nth and weekday) weekday: tuesday at: "14:00" # UTC time of day it starts for: 2h # how long it lasts, up to a day spread: 30m # optional: each room starts a seeded whole number of minutes later, up to this scope: { standard: mr86, role: main-display } # standard, site (or its archetype) and rooms (system names); role is a slot impairment: # exactly one of: unplugged, loss_pct, pin pin: { path: status.device.power, value: "off" }The vocabulary is the platform’s own, so a scenario never invents a device. Each standard is a
standard template and staffs its slots the way a system template does, through
the same planner: a slot with a quorum of two takes two of its product, and a choice is answered by
naming the slots of one alternate. Every product is a catalog product a simulator profile serves, so
the lab can simulate every component it plans. Exactly one archetype is the headquarters, which takes
no weight; every other archetype repeats and takes one. The site bounds must have a minimum of at least
one and a maximum no lower than the minimum. A pusher is declared like the devices are: its profile
must have a push face, and it needs
at least one a site and at least one system to push for, since a pusher scoped to nothing could
push nowhere; omit systems and it is scoped to every system of its site. The profile’s face says
which kind of actor it is. A push face makes a token pusher: a machine user granted
telemetry:push on its systems alone, whose token the lab mints on every run and hands only to the
simulator that runs it, never the plan or a log. A webhook face (one naming the driver of its
endpoint and the route that adds a room, simulation)
makes a webhook sender: a component with an endpoint of that driver, a signing secret minted on
every run and sealed in the server, and an identity binding per system on the driver’s room
identity, named for the system. A standard’s control names the slots whose devices also take
commands: each is wired with its product’s control face beside the driver that reads it (the Boreal
displays’ web admin beside their SNMP agent, behind the simulated login), so a demo can fix a fault
from the console. Name few: each is one more endpoint polling every such device across every site.
A slot under control must be one the standard fills. The calendar block is optional: each of its
meetings names a standard of the scenario, with its knobs checked at load (a rate between 0 and 1, a
slot mix of 15, 30 and 60 minutes, an attendance range from at least one, hours inside the day); a
refusal names the field, as calendar.meetings.mr65.booking_rate. What the knobs produce is the
lab calendar. Each of its problems is a name, a
cadence (daily; weekly on a weekday; monthly on a day of 1 to 28 or on the nth weekday), a UTC at
and a for of up to a day, and a scope: any of a standard, a site (a site’s name or its archetype’s) and
rooms (system names), which must all match, plus the role, the slot of the room the problem lands on
(never a product). A problem sets exactly one impairment: unplugged (dark on every protocol), loss_pct
(packets lost) or a pin (a state path held at a value). A scope that names no standard, site or room, a
role no standard in scope fills, a name used twice or a named room the plan lacks is refused, naming the
problem and the field, as calendar.problems.tuesday-display-dark.scope.role. A scale lab hands each
outpost’s simulator the world its plan resolves to (below), problems included. The validator collects every problem at once and names
each with the manifest line to fix:
corporate.yaml:21: sites max 3 is below min 5corporate.yaml:57: product "polaris-sky-c6" has no simulator profile, so the lab cannot simulate itcorporate.yaml:65: unknown product "boreal-cast-m9": the catalog has no product of that nameThe world file
Section titled “The world file”A scale lab’s simulators hold the world they simulate: the lab resolves the plan to a world file per
site outpost and the simulator loads it, so the rooms and the lab calendar
reach a running simulator without the server saying anything about them
(the world it holds). One pure function turns the plan
into each site’s world (scenario.SiteWorlds): the site’s rooms with their standard, system and capacity
(the largest attendance their standard’s meeting knobs declare), each room’s planned devices by the
name the world gives them (<system>-<slot>-<n>, unique across the plan) and the simulator profile that serves them, the services (a pusher
or a webhook sender) with the systems each speaks for, the calendar.meetings knobs per standard, and a
calendar seed taken from the scenario’s name, so a room’s meetings do not move when the lab is resized.
The file is versioned (version: 1) and sized to the site, not the fleet.
The seed one-off writes the files into the lab’s data volume (world/<outpost>.json), and each outpost
mounts that volume read-only and finds its own file at the path in OMNIGLASS_SIM_WORLD, a variable the
lab sets as it sets each outpost’s pushers. The volume is the one place the seed and the outposts
already share, so nothing new carries it. A lab without a plan (the default lab) writes none and its
simulator holds no calendar and no rooms. The world owns the names: the seed onboards each
component under the name its world gives it (a scale lab’s components are hq-mr86-1-main-display-1,
not a display-1 in every room), and a test seeds a plan and holds every seeded name and room to the world’s.
Setting the simulator’s clock
Section titled “Setting the simulator’s clock”A lab test that must see a room in a meeting does not wait for the corporate hours: omniglass lab run --sim-clock-offset 36h (a hidden flag of a scale lab, a Go duration, negative to run behind) sets
OMNIGLASS_SIM_CLOCK_OFFSET on each site outpost, and its simulator runs the simulated world’s clock that far
ahead of real time. A test picks a meeting from the plan’s own calendar (the same scenario resolved at the
same size, the world of the site and the calendar it implies), sets the offset to land a minute into it and
reads each device of the room over the console’s fire API. The offset moves what the world reads and
stamps in its own time, never the outpost’s cadence or a timestamp the lab stamps
(the simulator’s clock). A speed factor, a simulated day in
an hour, is #1362, and joins the same clock.
How many sites
Section titled “How many sites”--systems N first picks the number of sites. The average repeated site is the repeated
archetypes’ typical_systems averaged by their weights. The plan has the headquarters plus one site
for each average repeated site’s worth of systems beyond the headquarters’ typical_systems,
rounded half up, then clamped to the manifest’s sites bounds:
sites = clamp(1 + round((N - hq typical) ÷ average repeated site), min, max)The count never falls as N grows. The headquarters is placed once and the other sites are shared
among the repeated archetypes by weight, by the largest remainder method described below. A
repeated archetype’s sites are numbered from its name in order (regional-01, branch-12), so the
same N always gives the same sites.
For corporate, the headquarters typically has 250 systems, a regional office 80 and a branch 25,
with two branches for every regional office, so the average repeated site has about 43 systems:
--systems | Sites | Headquarters, regional, branch |
|---|---|---|
| 100 | 3 (the minimum) | 1, 1, 1 |
| 1,000 | 18 | 1, 6, 11 |
| 3,000 | 30 (the maximum) | 1, 10, 19 |
The minimum of 3 keeps a small plan a headquarters and two offices; below 359 systems the formula asks for fewer and the minimum holds. From 1,485 systems the count is at its maximum of 30, so larger sizes grow the sites instead.
How a size is split
Section titled “How a size is split”The systems are then split twice, both times by the largest remainder method in exact whole-number arithmetic. Each share first takes the whole part of its exact quota, and the systems left over go one each to the largest fractional remainders, a tie going to the one written first.
- Across the sites. Each site first takes one system, and the remaining
N - sitesare split by each site’stypical_systems, in plan order (archetypes as written, each archetype’s sites in number order). - Within each site, its count across its archetype’s standards by ratio.
So the plan always has exactly N systems. Each site is within one system of its exact share (one, plus its typical-size share of the rest), and each standard at a site is within one of its exact share of that site. Fleet-wide, a standard is within two systems per site of its exact share of N (at 30 sites, within 60). A small N can round a rare standard at a small site to zero; that is the rule, not a bug.
Each site’s systems are then placed in its archetype’s standard order, round-robin over its floors
(buildings in order, floors bottom up), so system j of a site with F floors sits in room
j ÷ F + 1 of floor j mod F: every floor fills evenly. A system is named <site>-<standard>-<k>,
its room <site>-<building>-<floor>-<room>, and it takes the name a company would give the room as
its label (#2757): the location stays the address (“Hq Tower 12 01”) and the system’s label is the
name (“Curie”), and the console shows both. A site names its rooms after one theme, a word list the
scenario package holds in one place (scientists, peaks, rivers, parks, lakes, bridges), the
archetype’s room_names giving the theme (a repeated archetype’s sites take its themes in turn: the
headquarters after scientists, the regional offices after peaks, rivers and parks), each word taken
once in a site and a site that runs a theme dry taking its words again numbered 2, 3 and so on. A
standard with a room_name is named for what it is instead (a huddle room, an auditorium, signage),
numbered in the order the site has them and a lone one unnumbered. The word is picked by a hash of the
scenario, site, standard and index, so the same manifest at the same size always resolves to the same
plan, and a name is unique within its site, never across the plan (two sites may each have a
“Huddle 1”).
Why Docker is required
Section titled “Why Docker is required”A lab is worth running only if collection behaves as it does against real gear: every component answers on its own address, ping tells the truth, and an unplugged component goes dark. Each of those leans on Linux networking that a bare binary on a workstation does not get:
- Every simulated component has its own address, one each in
127.60.0.0/16. Linux treats all of127.0.0.0/8as local; macOS answers only127.0.0.1until each address is aliased withsudo ifconfig lo0 alias. Windows binds any127.xaddress without aliasing. - The ports are the profiles’ real ports, and some are privileged (SNMP 161, SSH 22, HTTP 80, HTTPS 443), because the seeded endpoints target them. Binding below 1024 needs a privilege on a Linux host.
- Ping needs a kernel grant, and tells the truth only behind a firewall rule. The outpost’s pinger
is unprivileged datagram ICMP: Linux allows it only where
net.ipv4.ping_group_rangeadmits the process’s group, macOS allows it, and Windows offers no unprivileged ICMP socket. Even with the grant, every loopback address answers ping, component or not, until a firewall rule drops echoes to addresses that are no component, and that rule needsNET_ADMIN. - Impairments rewrite the network namespace. Unplug, latency, jitter, loss and rate are an
nftables table and traffic shaping on
lo, applied withNET_ADMIN, and Linux only. On a workstation’s own namespace they would reshape the whole machine’s loopback.
Every container runs on a Linux kernel: natively on Linux, and inside Docker Desktop’s VM on macOS
and on Windows (WSL2). So all of the above holds the same way on all three. Each container gets a
namespace of its own; Docker lets any user bind ports below 1024 inside one; the ping sysctl is set
per container, to a range that fits the groups rootless Docker maps, so the lab runs there too; and NET_ADMIN goes to the outpost’s container alone, where it reaches only that
container. A native lab without Docker would need an admin prompt per address and a second
impairment backend on macOS, a privileged pinger and a third backend on Windows, its own namespace
plumbing on Linux, and an embedded Postgres everywhere, and would still behave differently on two of
three platforms. make test already needs Docker, so a contributor installs nothing new.
When it will not start
Section titled “When it will not start”Every check runs before the lab creates anything, and each failure exits non-zero, naming the cause
and the fix. The lab finds Docker the way the docker CLI does: DOCKER_HOST, then DOCKER_CONTEXT,
then the CLI’s current context, then the platform’s default socket or named pipe.
- No Docker found. Nothing answers at the default socket: install Docker Desktop (macOS, Windows) or Docker Engine (Linux), start it, and run the lab again.
- Docker is not running. The socket the context names does not answer: start Docker Desktop, or
the service (
sudo systemctl start docker). - Permission denied on the socket. On Linux, add yourself to the
dockergroup (sudo usermod -aG docker $USER, then sign out and back in), or use rootless Docker. - The console’s port is taken. Stop whatever holds it, or move the lab with
--port. - The daemon is on another machine. Unset
DOCKER_HOSTordocker context use default, or run the lab where the daemon runs. - A lab is already running. Use that one, or stop it with Ctrl-C in its terminal.
- The image is not built, or was built from another tree. Run
make, which builds the binary and the image together, then run the lab again. A binary built withoutmakecarries no build id and cannot tell which image is its own, so it asks formaketoo. - A release binary carries no image digest. It was built outside the release workflow (from a
tagged tree, or by a tag pushed from a workstation), so it cannot name the image its release was
built with, and it will not trust the tag. Run an image you choose with
--image, such as--image ghcr.io/hyperscaleav/omniglass:v<version>, with the usual warning.
The console fast loop
Section titled “The console fast loop”Working on the console itself, run the lab in one terminal and the console from source in another:
./bin/omniglass lab run # terminal 1cd web && pnpm run dev # terminal 2: the console on http://localhost:5173/web, hot reloadThe Vite dev server serves the console from source and proxies /api to the lab at
http://127.0.0.1:8080 (IPv4 loopback, because the lab publishes on it alone). For a lab on
another port, point the proxy at it:
./bin/omniglass lab run --port 8081OMNIGLASS_LAB_URL=http://127.0.0.1:8081 pnpm run devThis loop needs Outpost; the lab itself needs only Docker. A change to the server, outpost or simulator
Go code is a rebuild instead: run make (the image rebuilds from cache) and then the lab again.
Contributing lists who needs
which toolchain, and the design system covers how
the console builds.