capacity schema
capacity.json (Replicas and HPA): what each traffic level would take of the workload under test, from the per-replica SLO-max RPS and the per-replica sizing. Always written; rows is empty, with a reason, when the run has no SLO-max. capacity.csv holds the same rows.
Schema file: schema/json/bundle/capacity.schema.json. Generated from servtuner commit 5b46cdad0e5c.
Top level
Section titled “Top level”| Field | Type | Required | Description |
|---|---|---|---|
analyzer_version |
string |
Yes | |
reason |
string |
No | Why there are no rows. |
rps_per_replica |
number |
No | SLO-max RPS of one replica (analysis.json capacity.per_replica). > 0 |
replica_headroom |
number |
No | h_rep: each replica is planned at rps_per_replica × (1 − h_rep). ≥ 0; < 1 |
gpus_per_replica |
integer |
No | ≥ 1 |
per_replica |
object |
No | The recommended requests of one replica: the sum over the workload’s containers. |
is_scale_out_verified |
boolean |
No | True only when runs at two or more replica counts showed per-replica RPS within 10%; otherwise linear scale-out is assumed. |
rows |
array of capacityRow | Yes | |
caveats |
array of string |
Yes | |
infra_cost |
infraCost | No | What a replica costs, which the rows’ cost_per_hour multiplies (capacity_model.json infra_cost). |
token_cost |
tokenCost | No | Token cost per request at the SLO-max stage (capacity_model.json token_cost). |
Definitions
Section titled “Definitions”capacityRow
Section titled “capacityRow”| Field | Type | Required | Description |
|---|---|---|---|
rps |
number |
Yes | > 0 |
replicas |
integer |
Yes | ≥ 1 |
gpus |
integer |
No | ≥ 0 |
cpu_request_cores |
number |
Yes | ≥ 0 |
memory_request_bytes |
number |
Yes | ≥ 0 |
cost_per_hour |
number |
No | Infrastructure cost when pricing is set. ≥ 0 |
is_target_rps |
boolean |
Yes | The row of analysis.target_rps; its replicas are what the patches use. |