Package-level declarations
Types
The store container's CPU, from its cgroup (docker exec <container> cat /sys/fs/cgroup/cpu.stat); null without one.
A snapshot's save on MongoDB in each shape its store cost is priced in: Update.M1 Wow's own filter and modifier (MongoSnapshotStore), and the candidate shapes against it.
PostgreSQL's counters and settings around a raw run's windows, on connections from connect.
Wow's PostgreSQL statement texts and parameter types, on the clone's tables (raw_log, raw_snapshot, raw_partition): the columns Wow's append and save write, its transaction bound, its append and save texts, and its binding of a parameter by its type. A text differs from Wow's only in its table names.
The check that the clone writes what Wow writes: each of checks per command of Wow's own run on this store (the domain's commands in this JVM) against the clone's calibration step, on the same rows in the same state; it passes when every check does and the step was read (every write it asked for taken). apart are reported beside them, unbounded, and every counter of both (wowCounters, rawCounters), so a gap shows where it is. A run that fails it says so at its head, and none of its cases is read.
One write or read a raw run measures (RawStoreBench): its name, the unit its figures are per (a row or an update of a snapshot, a command of Wow's, a read), how many units one flush asks for (flushUnits), and what it prices (prices: today's shape, a candidate, or a reference); and with a ceiling, that it is the shape Wow's node gives the store (WowShape), whose best candidate step is that ceiling: COMMITTED, a command answered at its append (Wow's E1), or SNAPSHOT, once its snapshot was written too (the default wait's).
The commands Wow's run sends MongoDB, by command and collection (update wow_snapshot__transfer__account), so the calibration takes Wow's batch shape from its log's inserts and its snapshots' updates alone: the node's checkpoint and lease writes are commands of their own collections. RawStoreBench passes it as a source of Wow's run, beside ComponentCounters; the server hands every CommandListener to its client.
The raw run on MongoDB: Wow's collections cloned (each index, by listIndexes) as raw_log, raw_snapshot and raw_partition, written with documents of the domain's own commits as templates at Wow's write concern (majority), each step on a client whose pool is the step's connections:
The raw run on PostgreSQL: Wow's tables cloned (LIKE … INCLUDING ALL: its columns, keys and indexes) as raw_log, raw_snapshot and raw_partition, written with rows of the domain's own commits as templates, by Wow's own statement texts and parameter types:
A raw run's settings, from its options; each store's defaults are its share of Wow's batches in the L1 counts.
A step's result: its case, its connections (and MongoDB's pool), and what it did and cost per unit written: storeCpuMsPerUnit from the store container's cgroup, perUnit the store's own counters' growth per unit, ratios those read as a share. A step with any failures or refused writes is not read (read); a paced step counts its flushes that started late.
One worker of a step: what it does once a flush, and its close.
A step's watchdog: unless cancelled within limitSeconds (limitOf a step's own length), it says which step (name) printed nothing for that long and ends the program with EXIT_HUNG (halt), so a step that hangs (a store read that does not return, a worker that never stops) costs minutes and names itself, rather than the job's whole timeout and a log that ends at the step before.
Wow's own write path at its peak, the shape the node gives the store, with the driver alone:
Wow's own run's append queue and saves over its window, a diagnostic of the calibration's Wow side: every SAMPLE_MILLIS, the node's append calls and the streams they carried, its lanes' groups waiting for a committer and its pool (the bench-pipeline line's sections, pipeline), and its save statements (saves, cumulative from the window's start). stop gives each half of the window's commands an append, append calls a second and snapshots a save, so a cold first half (slower calls, larger appends) shows, and over the whole window the mean groups waiting and threads waiting for a connection.
Properties
The calibration's case: today's, on Wow's ground.
The calibration's connections: Wow's run's concurrency.
The model's own shape beside the calibration, apart.
How late a paced flush may start before it counts as late.
The layout's names before and after a window, both sides', as the calibration reports them apart.
Functions
The calibration: each of checks' metrics per command of Wow's own run (wow, every counter's) against the calibrating step's, within its bound; apart's metrics reported beside them, unbounded.
The ceilings a figure of Wow's is compared with, by what it is compared with (RawCase.ceiling): of each, the candidate step that did the most commands a second. A candidate is a step of Wow's own shape, unpaced and read, with no snapshot its writers failed; a committed one only when its window's saves kept up with its appends (at least WowShape.SAVES_KEPT of them). None from an uncalibrated run (calibrated).
usage_usec of a cgroup v2 cpu.stat; null when the text has none.
A snapshot table's pages as they are, a diagnostic of the HOT share (an update stays on its page only while the page has room for the new version): its pages, live rows a page, a row's mean width, free bytes a page and dead rows, read with pgstattuple; empty when the extension is not there. suffix names when it was read (Before, After).
Versions of aggregates aggregates opened at version 1.
The percentile (0 to 100) of values, sorted in place; 0 when there are none.
Runs connections workers (worker by index, each with its own connection) of case: pace's warm-up unmeasured, then its measured seconds, as fast as they go or at its rate. The store container's CPU (cpu) and the store's own counters (counters) are read at the window's edges with every worker paused between flushes, so the units counted and the counters' growth cover the same writes. With a rate, a flush's latency starts at its scheduled time, and a flush that started more than LATE_NANOS after it counts as late.
Today's flush on either store: logBatch of owned's commands appended in one group (append), their snapshots kept with the worker's earlier ones and saved snapshotBatch a call (save), as Wow's writer saves them: behind its appends and across them, so a save may wait for several appends or follow one with several. A command counts once its snapshot was written, which is after its append.
A case's steps, one at each of connections: each on tables prepared afresh, its aggregates aggregates opened at version 1, so no step runs on what an earlier one left (dead tuples, grown indexes, a vacuum's work).