PolicyConfig

data class PolicyConfig(val quantum: Long, val perChildOutstandingCap: Long = Long.MAX_VALUE, val sleeperCredit: Long = 0)

Tuning for one allocation round (design §7.3). Every field is a hard cap in service units; the round grants the smallest of all the applicable caps.

Constructors

Link copied to clipboard
constructor(quantum: Long, perChildOutstandingCap: Long = Long.MAX_VALUE, sleeperCredit: Long = 0)

Properties

Link copied to clipboard

ceiling on a child's outstanding entitlement; a grant is trimmed so outstanding never crosses it. Defaults to unbounded.

Link copied to clipboard

the largest single grant per pick (configuredQuantum); must be > 0.

Link copied to clipboard

bounded virtual-time credit a waking child may keep, in the wakeOffset clamp. Defaults to 0 — the design default, "no unlimited idle credit" (§10.6). Non-negative.