Infrastructure · Primitives
Warmup
Gradual capacity increase to stabilize cold systems
Definition
Mechanism
On activation, accept load at `initial_capacity` and raise the accepted-load cap to full over `ramp_duration`, following `curve`. This prevents a thundering herd against a cold system. What the ramp establishes is the cap, not readiness — a system whose cap has reached full may still be cold inside. Utilizes Greet, Throttle.
Preconditions
- System state is inactive or reset
Postconditions
- Accepted-load cap has reached full capacity
- System is accepting load at full cap — readiness of internal state (caches, compiled paths) is a separate signal this pattern does not assert
Invariants
- Capacity Limit: Accepted_Load <= Current_Warmup_Cap(t)
Risks
Failure modes
Premature Load
Traffic arrives before warmup completes.
False Warmth
Timer completes but internal state (e.g. cache) is still cold.
Relationships
Builds on
Used by
References
Mind
Load state before acting
Reference
Parameters
curveEnum, {Linear, Exponential, Step}- Default: Linear
initial_capacityFloat, [0.0, 1.0]- Starting capacity as fraction of full (0 = cold start)
ramp_durationDuration, [10s, 1h]- Time to reach full capacity from initial
