Appearance
Detector catalog / Speed
SLOW
Slow stage
A stage runs for a long stretch of the job with no single cause flagged on it.
- Outcome
- Speed
- Scope
- Judged per stage
- Usual fix
- A change in the job code
- CI gate
- No budget flag: gate it with
--fail-on-introducedagainst a baseline
An example finding
Where you see it
Dashboard
The SLOW tag marks it in the action region of the dashboard, among the widgets that rank a fix. Every affected stage is flagged, not only the worst.How to read it in the findings guide.
Agent (MCP)
An assistant can read this entry with the list_detectors tool and its background with get_finding_documentation. The call and the response below come from a real run of the MCP server.
Call
{
"tool": "list_detectors",
"arguments": {
"type": "stageSlowness"
}
}Response
{
"count": 1,
"detectors": [
{
"type": "stageSlowness",
"name": "slow stage",
"tag": "SLOW",
"tagSharedWith": [],
"family": "speed",
"pitch": "A stage runs for a long stretch of the job with no single cause flagged on it.",
"region": "action",
"scope": "stage",
"fixEffort": "code",
"thresholdSummary": "a stage running far longer than its peers, not attributable to a single slow host",
"detectors": [
{
"detector": "stageSlowness",
"version": 2,
"thresholds": {
"infoMin": 15
},
"suppressedBy": "slowHost"
}
],
"pages": {
"catalog": "docs/detectors/stageSlowness.html",
"guide": "docs/user-guide/understanding-findings.html#slow"
},
"tuning": {
"kind": "section",
"anchor": "#bottleneck-stage-slowness",
"path": "docs/tuning-reference/bottleneck-slow-host.html#bottleneck-stage-slowness"
},
"gate": null
}
]
}get_finding_documentation call
{
"tool": "get_finding_documentation",
"arguments": {
"type": "stageSlowness"
}
}Its response, with each Markdown body replaced by its length
{
"type": "stageSlowness",
"name": "Slow Stage",
"detectionDoc": {
"tag": "SLOW",
"title": "Stage slowness",
"content": "<716 characters of Markdown>"
},
"tuningDoc": {
"anchor": "#bottleneck-stage-slowness",
"title": "Slow Host",
"content": "<6885 characters of Markdown>"
}
}CI (CLI)
List this entry from the command line. The output below is a real run of the command. Budgets and exit codes are in the CI guide.
sparkforensics-analyze detectors --type stageSlowness --format md# Detectors (1)
## Speed
| Tag | Type | Scope | Fix | Gate | What it finds |
| --- | --- | --- | --- | --- | --- |
| SLOW | `stageSlowness` | stage | code | | A stage runs for a long stretch of the job with no single cause flagged on it. |
Report only this finding type for a run with --type:
sparkforensics-analyze <event-log> --type stageSlowness --impact critical,warning,info It has no budget flag. Fail a build on a new one by comparing against a baseline with --fail-on-introduced.
Airflow
The operator has no budget parameter for it. Use fail_on_introduced with a baseline.
check_spark_job = SparkForensicsOperator(
task_id="check_spark_job",
log_source=...,
backend=SubprocessAnalyzeHook(),
baseline_log_source=...,
fail_on_introduced="critical",
)The operator works per run, and its summary counts findings per impact band. See the operator for its parameters.
How it is measured
Thresholds
A stage running far longer than its peers, not attributable to a single slow host.
stageSlowness version 2
| Threshold | Default |
|---|---|
infoMin | 15 |
Suppressed by slowHost: this detector drops its finding on any stage slowHost flagged in the same run.
Each rule's impact bands and fixed fallbacks are in the threshold tables.
Override a default per run with --thresholds; see Tuning detector thresholds.
Docs
- This finding is covered in a section of a tuning page: Spark tuning reference.
- Findings guide: SLOW in Understanding findings.