Appearance
Detector catalog / Setup
CFG
Config audit
Spark properties that leave the cluster uncapped or the serializer slow.
- Outcome
- Setup
- Scope
- Judged on the Spark configuration
- Usual fix
- A Spark configuration change
- CI gate
- No budget flag: gate it with
--fail-on-introducedagainst a baseline
An example finding
Where you see it
Dashboard
The CFG tag marks it in the action region of the dashboard, among the widgets that rank a fix. 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": "configAudit"
}
}Response
{
"count": 1,
"detectors": [
{
"type": "configAudit",
"name": "config audit",
"tag": "CFG",
"tagSharedWith": [],
"family": "setup",
"pitch": "Spark properties that leave the cluster uncapped or the serializer slow.",
"region": "action",
"scope": "config",
"fixEffort": "config",
"thresholdSummary": "a Spark conf value outside the recommended range",
"detectors": [
{
"detector": "configAudit",
"version": 1,
"thresholds": {}
},
{
"detector": "configAudit",
"version": 1,
"thresholds": {}
},
{
"detector": "configAudit",
"version": 1,
"thresholds": {
"floorMB": 384,
"floorPct": 0.1
}
}
],
"pages": {
"catalog": "docs/detectors/configAudit.html",
"guide": "docs/user-guide/understanding-findings.html#cfg"
},
"tuning": null,
"gate": null
}
]
}get_finding_documentation call
{
"tool": "get_finding_documentation",
"arguments": {
"type": "configAudit"
}
}Its response, with each Markdown body replaced by its length
{
"type": "configAudit",
"name": "Config Audit",
"detectionDoc": {
"tag": "CFG",
"title": "Configuration audit",
"content": "<1375 characters of Markdown>"
},
"tuningDoc": null
}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 configAudit --format md# Detectors (1)
## Setup
| Tag | Type | Scope | Fix | Gate | What it finds |
| --- | --- | --- | --- | --- | --- |
| CFG | `configAudit` | config | config | | Spark properties that leave the cluster uncapped or the serializer slow. |
Report only this finding type for a run with --type:
sparkforensics-analyze <event-log> --type configAudit --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 Spark conf value outside the recommended range.
configAudit version 1, check 1 of 3
| Threshold | Default |
|---|---|
| No thresholds. | |
configAudit version 1, check 2 of 3
| Threshold | Default |
|---|---|
| No thresholds. | |
configAudit version 1, check 3 of 3
| Threshold | Default |
|---|---|
floorMB | 384 |
floorPct | 0.1 |
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
- There is no tuning page for this type.
- Findings guide: CFG in Understanding findings.