recommendations schema
recommendations.json: what to change, by how much and why. Every value links to a node of the derivation graph, which holds its formula with the inputs substituted. Recomputable from the raw files by servtuner analyze.
Schema file: schema/json/bundle/recommendations.schema.json. Generated from servtuner commit 5b46cdad0e5c.
Top level
Section titled “Top level”| Field | Type | Required | Description |
|---|---|---|---|
analyzer_version |
string |
Yes | |
operating_point |
operatingPoint | Yes | |
policy |
sizingPolicy | Yes | |
recommendations |
array of recommendation | Yes | |
derivation |
object |
Yes | One graph for the whole run; recommendations name their node. |
Definitions
Section titled “Definitions”operatingPoint
Section titled “operatingPoint”The load the resources are sized for: the SLO-max stage, or the stage at or above target_rps. Unavailable when no stage is valid and meets the SLOs; then there are no sizing recommendations.
| Field | Type | Required | Description |
|---|---|---|---|
mode |
"slo_max", "target_rps", "unavailable" |
Yes | |
stage_index |
integer |
No | ≥ 0 |
rps |
number |
No | Achieved RPS of the operating-point stage. ≥ 0 |
target_rps |
number |
No | > 0 |
reason |
string |
No | Why the operating point is unavailable, or why target_rps was not used. |
caveats |
array of string |
No | Caveats about the operating point itself, such as an SLO-max that is only the highest stage tested. Every sizing recommendation also carries them, so one read alone keeps its context; a view of the whole document shows them once. |
sizingPolicy
Section titled “sizingPolicy”The limits policy and headroom that applied, after RunSpec defaults.
| Field | Type | Required | Description |
|---|---|---|---|
cpu_limit |
limitsPolicy | Yes | |
memory_limit |
limitsPolicy | Yes | |
qos |
"burstable", "guaranteed" |
Yes | |
headroom |
object |
Yes |
recommendationTarget
Section titled “recommendationTarget”The workload (and container) a recommendation is for. The bench pod itself is never a recommendation target.
| Field | Type | Required | Description |
|---|---|---|---|
role |
workloadRole | Yes | |
upstream_index |
integer |
No | ≥ 0 |
target_type |
targetType | Yes | |
namespace |
string |
Yes | |
container |
string |
No |
recommendationValue
Section titled “recommendationValue”A current or recommended setting: a number in the recommendation’s unit, a string (a quantity or a mode), a boolean, or null when unset.
Type: number or string or boolean or null
recommendationEvidence
Section titled “recommendationEvidence”| Field | Type | Required | Description |
|---|---|---|---|
text |
string |
Yes | |
stage_index |
integer |
No | ≥ 0 |
series |
string |
No | A stored series, <catalog>/<name>, or a chart file. |
recommendation
Section titled “recommendation”| Field | Type | Required | Description |
|---|---|---|---|
id |
string |
Yes | Unique in the file and stable across reruns of the same bundle. |
rule |
string |
Yes | The rule that produced it, for example sizing.cpu_request or B1. |
target |
recommendationTarget | Yes | |
subject |
object |
Yes | What to change: a resource (cpu.request, memory.limit), a target knob (bifrost.concurrency), replicas, an HPA setting, an environment variable, or advice: a finding to act on that is not one setting (recommended is then a short directive, for example ‘scale the upstream’). |
unit |
string |
No | |
current |
recommendationValue | No | |
recommended |
recommendationValue | Yes | |
min |
number |
No | |
max |
number |
No | |
tier |
"diagnostic", "empirical" |
Yes | |
confidence |
"high", "medium", "low" |
Yes | |
derivation_node |
string |
No | The derivation node whose value is recommended. |
evidence |
array of recommendationEvidence | Yes | |
caveats |
array of string |
Yes | |
is_urgent |
boolean |
No | Act on this first: the evidence shows harm now (for B2, requests dropped or a queue larger than the SLO allows). Absent means not urgent. |
followup_experiment |
string |
No | A run that would confirm or sharpen the recommendation. |
derivationBounds
Section titled “derivationBounds”| Field | Type | Required | Description |
|---|---|---|---|
min |
number |
No | |
max |
number |
No |
derivationNode
Section titled “derivationNode”One value of the derivation graph: measured, a parameter, derived by a formula, or hypothetical.
| Field | Type | Required | Description |
|---|---|---|---|
id |
string |
Yes | |
kind |
"measured", "parameter", "derived", "hypothetical" |
Yes | |
label |
string |
Yes | |
unit |
string |
No | |
value |
number |
Yes | |
formula |
string |
No | |
inputs |
array of string |
No | |
rendered |
string |
No | The formula with its inputs’ values substituted, and the result. It parses back to the same value. |
is_pinned |
boolean |
No | |
derivable_value |
number |
No | What the formula gives, when the value is pinned. |
default |
number |
No | |
bounds |
derivationBounds | No | |
doc |
string |
No | |
source |
object |
No | |
is_hypothetical |
boolean |
No |