AdaptiveLimitOptions

class AdaptiveLimitOptions(val floor: Int = DEFAULT_FLOOR, val interval: Duration = DEFAULT_INTERVAL, val latencyFactor: Double = DEFAULT_LATENCY_FACTOR, val minRise: Duration = DEFAULT_MIN_RISE, val connectionWaits: Int = DEFAULT_CONNECTION_WAITS, val periods: Int = DEFAULT_PERIODS)

How an AdaptiveQueryLimit reads its store's write pressure: a period presses when the appends' 90th percentile latency is above latencyFactor times its baseline and at least minRise above it, or when at least connectionWaits callers wait for a connection; periods pressing periods in a row in which the queries contend halve the limit, down to floor. A period is interval long.

Constructors

Link copied to clipboard
constructor(floor: Int = DEFAULT_FLOOR, interval: Duration = DEFAULT_INTERVAL, latencyFactor: Double = DEFAULT_LATENCY_FACTOR, minRise: Duration = DEFAULT_MIN_RISE, connectionWaits: Int = DEFAULT_CONNECTION_WAITS, periods: Int = DEFAULT_PERIODS)

Types

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
val floor: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String