---
library: "bootstrap"
slug: "Warmup"
name: "Warmup"
ref: "Warmup#ed16"
hash: "sema:Warmup#mh:SHA-256:ed16f499e655d6d252a2bae39a8cc87ec8497426107905501920ac47644be9ef"
type: "Primitives"
layer: "Infrastructure"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/Warmup"
---

# Warmup

Gradual capacity increase to stabilize cold systems

Infrastructure · Primitives

## 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](https://semahash.org/vocabularies/bootstrap/patterns/Greet.md), [Throttle](https://semahash.org/vocabularies/bootstrap/patterns/Throttle.md).

## 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](https://semahash.org/vocabularies/bootstrap/patterns/System.md) state is inactive or reset

## Postconditions

- Accepted-load cap has reached full capacity
- [System](https://semahash.org/vocabularies/bootstrap/patterns/System.md) 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

- [Throttle](https://semahash.org/vocabularies/bootstrap/patterns/Throttle.md) (references)
- [Greet](https://semahash.org/vocabularies/bootstrap/patterns/Greet.md) (references)
- [System](https://semahash.org/vocabularies/bootstrap/patterns/System.md) (references)

## Used by

- [ContextFirst](https://semahash.org/vocabularies/bootstrap/patterns/ContextFirst.md) (references)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: Warmup#ed16
- Hash: sema:Warmup#mh:SHA-256:ed16f499e655d6d252a2bae39a8cc87ec8497426107905501920ac47644be9ef

## Links

- Page: https://semahash.org/vocabularies/bootstrap/patterns/Warmup
- JSON: https://semahash.org/vocabularies/bootstrap/patterns/Warmup.json
- Library: https://semahash.org/vocabularies/bootstrap
- Library index: https://semahash.org/vocabularies/bootstrap/index.json
