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. A grant is never larger than LocalHeddle.MAX_RESERVATION whatever this says (#3353): the weight budget is sized for one lease that large, so a larger grant could carry a child whose weight fits the budget past its position ceiling.

Link copied to clipboard

bounded virtual-time credit a clamped waker may keep, in the wakeOffset clamp: a child this peer saw idle but never saw stop asking. A child it saw stop comes back moved by its parent's net-service clock, and this credit does not apply to it, since it would only add credit (#3376). Defaults to 0 — the design default, "no unlimited idle credit" (§10.6). Non-negative, and at most LocalHeddle.MAX_RESERVATION: the credit a waker may keep is bounded (§10.6), and one lease is the bound.