BenchPipeline
The saga pipeline's depths and the append queue's calls, logged once a second as bench-pipeline {json} at WARN, only with bench.pipeline.enabled=true (off by default, so every other run measures a node that counts none of it): where a command's chain queues between one commit and the next, which the executor's in-flight count does not see. One line a second for the node, the shape of bench-signals' and bench-query-limits': {"t": <seconds since start>, "<section>": {"<field>": <number>, …}, …}, every value a number, so a reader takes a section it knows and passes over one it does not. A section is left out while the node has nothing for it.
appendDepth, now, summed over the contexts:queued, the appends not taken into a batch yet (thewow.log.append_queue.depthgauge's read);handedGroupsandhandedStreams, the lanes' groups handed to the committers and not yet taken into a call.appendCalls, cumulative from this line's first read:callsto the log, thestreamsthey carried, and the callsfullat their cap (mergeMaxmerged). Streams over calls between two lines is the mean call of that second.appendClock, cumulative from this line's first read, in microseconds summed over the calls (the queue'sCallClock): thecallsclocked, each one'scallfrom its group taken to the log's call returned and itscompletefrom there to its outcomes handed back and its committer free; over themarkedcalls (those whose log marks the instants only it sees, PostgreSQL's and MongoDB's groups),enterto the log's call,hopto the thread of its blocking work,acquireto its connection (MongoDB's driver checks one out within each command, so none there),bindto its first statement or command sent (its tables found, its statement prepared, its streams' parameters bound and encoded; on MongoDB its documents built and sequenced),statementto its last result read,releaseto its connection given back, andhopBackto the call returned, which sum to theircall; and, over thecommandedcalls (MongoDB's, whose driver reports each command's time to this line's listener),command, the driver's own time of the commands withinstatement, sostatementlesscommandis the driver's work around them (a command's encoding, a connection's check-out); and, ofbind, where the log tells (MongoDB's group),encode, the streams' documents built, andlookup, thelookupsof an aggregate's last sequence it did not remember, sobindless both is the sequencing, andbindCommandoverbindCommands, the driver's time of the commands sent while building (its counter writes and lookups). Each between two lines, over that second's calls, is the mean of a call's step.snapshotClock, cumulative from this line's first read, the same for the snapshot subscriptions' writes (each subscription'sSnapshotWrites, a write onesaveAllof a leader's batch): thesavesthe leaders took and thesnapshotsthey wrote (an aggregate's highest version a write),writingnow (the leaders in a store's call),allowednow (how many may lead: the store's writes in flight, or its catch-up count while the writes are behind), and the clock's fields. A write'scallruns from its batch taken to the store's call returned (a failed batch's saves again alone among it),completeto its saves ended; on PostgreSQL the transaction's commit is inrelease. Of the entries handled without a view, theloadsof their snapshots inloadCallsof the store, and thetails, the log's reads of a rebuild or of an aggregate's first stream: the round trips a snapshot written cost.handoff, cumulative from the node's start: the entries the tailsdeliveredfrom memory and theirstoreReads.windowandwindowMax, now, per subscription: the entries its workers took above their watermarks, summed over the partitions and the largest one partition's, against its in-flight bound (wow.subscription.max-in-flight).pool, now, the store's connection pool: on PostgreSQL, HikariCP'sactiveandidleconnections, the threadswaitingfor one and itsmax(its public pool MXBean; the server sets no size, so HikariCP's default of 10 is every append, snapshot write, checkpoint, tail read and load of the node); on MongoDB, the check-outswaitingand a server pool'smax(MongoPoolGauge, which the client is built with).pool.<bean>for each, when there are several.outcomes, cumulative from the node's start: what the node names to its observers, counted by BenchOutcomes, the line's one observer: the commands that arrived and were refused, the forwards taken from peers and those that failed by outcome, the executions, the appends' outcomes and the state cache's.
Every read is of an atomic or volatile field, with no lock taken on the path a command or an entry runs. The append queue counts its calls and handed groups only once read (PartitionAppendQueue.counts): an atomic add per call and per group, none per append; while read, each call also carries its marks (StoreCallMarks, nine clock reads) in its coroutine context, which the log marks and the queue sums, thirteen adds a call. The snapshot writes count the same way, once read (SnapshotSubscription.writeCounts): three adds and a clock a write, none per save. With the line on, the server's MongoDB client is built with the command listener (commandClock), which the driver then calls for every command of the node; it adds to a call's marks only while the call holds them. The hand-off's channels have no depth to read without a count on every entry, and the throttle's waiters are behind its monitor, so neither is here; the throttled partitions are the partitionThrottled less partitionUnthrottled of bench-signals.
The node's queues are Wow's internal API, which an application does not use (the architecture's internal opt-in rule): this class is the benchmark server's one exception, a reader of the node it measures that calls nothing on its write path. No other class of the server names those types, so a change to them breaks this file alone.