Warmup
Gradual capacity increase to stabilize cold systems
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.
Invariants
- Capacity Limit: Accepted_Load <= Current_Warmup_Cap(t)
Parameters
- curve: type=Enum, range={Linear, Exponential, Step}, description=Default: Linear
- initial_capacity: type=Float, range=[0.0, 1.0], description=Starting capacity as fraction of full (0 = cold start)
- ramp_duration: type=Duration, range=[10s, 1h], description=Time to reach full capacity from initial
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
Failure modes
- Premature Load: Traffic arrives before warmup completes.
- False Warmth: Timer completes but internal state (e.g. cache) is still cold.
Where this came from
—
Builds on
Used by
- ContextFirst references
Identity
- Ref:
Warmup#ed16 - Hash: sema:Warmup#mh:SHA-256:ed16f499e655d6d252a2bae39a8cc87ec8497426107905501920ac47644be9ef
- Library: bootstrap 0.11.0, root a6a3d1ff0f98
- License: Not stated; check the repository