Companion

object Companion

Properties

Link copied to clipboard
const val APPEND_CALL: String

The calls' times' names (CallTimes): an append call, its batches taken to their callers answered; a batch's wait, handed to taken; a save call, taken to answered.

Link copied to clipboard
const val APPEND_GAP: String
Link copied to clipboard
const val APPENDERS: Int = 2
Link copied to clipboard
const val FILL_MARGIN: Int = 4
Link copied to clipboard

A fill's least wait, and the margin over the time its streams or snapshots take to arrive (fillWaitOf).

Link copied to clipboard
const val MAX_BATCH: Int = 64
Link copied to clipboard
const val MERGE_MAX: Int = 512

Wow's own constants, which the runtime gives no option for (held to them by a test): AppendQueueOptions' defaults, and the snapshot writes' (SnapshotStore.DEFAULT_WRITES_IN_FLIGHT, SnapshotOptions.DEFAULT_WRITE_BATCH).

Link copied to clipboard
const val MORE_CALLERS: Int = 4

The what-if's appenders and writers: twice Wow's, a candidate's count to price.

Link copied to clipboard

A step's partitions an append call, its window's.

Link copied to clipboard
const val SAVE_CALL: String
Link copied to clipboard
const val SAVES_KEPT: Double = 0.97

The share of a window's appends its saves must reach for a committed step to count as sustained.

Link copied to clipboard

A step's ratio of its window's saves to its appends.

Link copied to clipboard

The calls' counters' names: the append calls, the partitions they took streams of, the save calls.

Link copied to clipboard
Link copied to clipboard

The counters' names: the streams appended, the snapshots saved.

Link copied to clipboard
Link copied to clipboard

The snapshots the writers failed or the store refused: a committed caller does not see them.

Link copied to clipboard
const val SHAPE_SAVED: String
Link copied to clipboard

The calls' maxima the what-if cases price beside Wow's: one lane's batch and four lanes'.

Link copied to clipboard
const val WRITER_MAX: Int = 256
Link copied to clipboard
const val WRITERS: Int = 2

Functions

Link copied to clipboard

The shape's cases, each a RawCase with its options: Wow's own shape answered at the append (the committed ceiling) and at the snapshot (the snapshot ceiling), and the what-if calls of up to 64 and 256 streams, which no runtime option gives (no ceiling).

Link copied to clipboard
fun fillWaitOf(fills: List<Int>, rate: Double?): Long

How long a call waits to fill to the larger of fills at rate commands a second: FILL_MARGIN times the time that many take to arrive, every one a stream and a snapshot, so two appenders or writers sharing them still fill theirs; FILL_WAIT_NANOS at least. A fixed wait left a slow runner's saves part full: fifteen snapshots at 714 a second take 21 ms.

Link copied to clipboard
fun ratios(growth: Map<String, Double>): Map<String, Double>

A step's shape ratios from its counters' growth: its saves per append, and its partitions an append call.