Skip to content

Read the results

Read the bundle from the first run in the order servtuner does: can you trust it, what did it measure, and what follows from it?

  • The quickstart-run bundle.
  • jq, or any JSON viewer.
  1. Check the grade and its reasons.

    Terminal window
    jq '.quality.grade, [.quality.issues[].code]' quickstart-run/analysis.json
    Output
    "degraded"
    [
    "catalog_missing"
    ]
  2. Check that each stage is valid, and compare offered with achieved load.

    Terminal window
    jq -c '.quality.stages[] | {stage_index, is_valid, is_excluded}' quickstart-run/analysis.json
    jq -c '.stages[] | {offered_rps, achieved_rps}' quickstart-run/analysis.json
  3. Read the capacity answer.

    Terminal window
    jq '.capacity.slo_max' quickstart-run/analysis.json
    Output from one run
    {
    "is_interpolated": false,
    "rps": 19.983333333333334,
    "valid_stage_index": 2
    }

    No stage failed an SLO, so this is a lower bound. The target was never pushed past its limit. Extend the ladder to find the limit.

  4. Read a percentile with its confidence interval.

    Terminal window
    jq '.stages[2].ttft.p95_seconds' quickstart-run/analysis.json
  5. Read the recommendations and what each one rests on.

    Terminal window
    jq '.recommendations' quickstart-run/recommendations.json

A percentile with too few requests has an insufficient_samples_reason and no value. p99 needs 1,000 requests in a stage, so the first two stages here have none.

Recompute the analysis from the raw files:

Terminal window
./servtuner analyze quickstart-run
Output
ok: wrote analysis.json (quality degraded, 3 stage(s))