plan schema
plan.json: what to deploy for the requested traffic, one tier per capacity model, each value a node of the derivation graph, with the checks the overrides caused.
Schema file: schema/json/plan.schema.json. Generated from servtuner commit 5b46cdad0e5c.
Top level
Section titled “Top level”| Field | Type | Required | Description |
|---|---|---|---|
analyzer_version |
string |
Yes | |
tiers |
array of planTier | Yes | |
derivation |
object |
Yes | |
checks |
array of planCheck | Yes |
Definitions
Section titled “Definitions”planCheck
Section titled “planCheck”A consequence check of the plan: ok, a warning, a value that contradicts the measurements, or a guard rail that blocks the plan.
| Field | Type | Required | Description |
|---|---|---|---|
status |
"ok", "warning", "violates_measured", "blocked" |
Yes | |
tier |
string |
No | |
text |
string |
Yes |
planTier
Section titled “planTier”| Field | Type | Required | Description |
|---|---|---|---|
key |
string |
Yes | The tier’s prefix in the derivation node ids. pattern ^[A-Za-z][A-Za-z0-9_]*$ |
run_id |
string |
Yes | |
target_type |
targetType | Yes | |
is_blocked |
boolean |
Yes | A guard rail stops this tier; blocked_reason says which and what run would unblock it. |
blocked_reason |
string |
No | |
rps_per_replica |
number |
No | The SLO-max per replica at the requested SLO. > 0 |
is_interpolated |
boolean |
No | |
limiting_slo |
string |
No | |
replicas_peak |
integer |
No | ≥ 1 |
replicas_baseline |
integer |
No | ≥ 1 |
hpa |
object |
No | |
per_replica |
modelPerReplica | No | |
totals |
object |
No | |
utilization_at_peak |
number |
No | Planned per-replica load over the per-replica SLO-max: the real headroom. ≥ 0 |
sensitivity |
array of object |
No | Replicas at +25%, +50% and +100% traffic. |
queue |
object |
No | Concurrency per replica at the planned load, from the model’s W (Poisson-based: there is no measured L(t) at this load). |
memory |
planTierMemory | No | |
scope |
array of string |
Yes | Labels every number of the tier carries: hardware, workload, arrival process, scale-out. |
confidence |
"high", "medium", "low" |
Yes | |
warnings |
array of string |
No | Default: []. |
planTierMemory
Section titled “planTierMemory”Bytes per in-flight request at the planned request size, m(s) = m_0 + k × s, and the working set it implies at the planned C plus the run’s B.
| Field | Type | Required | Description |
|---|---|---|---|
payload_bytes |
number |
No | The request size planned for; absent when the run reported no request sizes. > 0 |
basis |
"measured", "fitted", "extrapolated", "assumed" |
Yes | measured: the size the run used. fitted: within the sizes of a payload series. extrapolated: outside them. assumed: one measured size, so k is the 1× to 3× assumption and the values are a range. |
bytes_per_in_flight |
number |
Yes | m at the planned size; the upper end (k = 3×) when assumed. ≥ 0 |
bytes_per_in_flight_low |
number |
No | The lower end (k = 1×), only when assumed. ≥ 0 |
working_set_bytes |
number |
Yes | WS_0 + m × (C + B) with the limit headroom; the upper end when assumed. ≥ 0 |
working_set_bytes_low |
number |
No | ≥ 0 |
runs |
array of string |
No | Runs the line m(s) came from. |