AppendQueueCounts

What a PartitionAppendQueue's calls to its log carried, and the lanes' groups waiting for a committer, from the first PartitionAppendQueue.counts on: a diagnostic, which the queue keeps only once something reads it.

  • calls, streams and full are cumulative: the calls to the log (one per merged call when the queue merges, one per lane's batch otherwise), the streams they carried, and the calls at their cap (AppendQueueOptions.mergeMax merged, AppendQueueOptions.maxBatch otherwise). Streams over calls is the mean call, and a call at its cap carried all it could.

  • handedGroups and handedStreams are now: the lanes' groups handed to the committers and not yet taken into a call, and their streams. A lane hands one group at a time and waits for it, so the groups are at most the log's partitions, and the streams at most the node's in-flight bound, which every append's command holds.

  • clock is cumulative: where each call's time went, from its group taken to its committer free (CallClock).

Each is an atomic add, per call or per group, never per append; nothing waits on a lock. So each is exact, but two are not one reading: a group being handed or taken may show in handedGroups before handedStreams, and a call in calls before streams.

Properties

Link copied to clipboard
val calls: Long
Link copied to clipboard

Where the calls' time went.

Link copied to clipboard
val full: Long
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard