Appearance
Threshold tables
The threshold tables for every bottleneck detector, and where each finding's impact band comes from.
Bottleneck thresholds
Every change to a detector entry under packages/core/src/detectors/ should reference this table.
Every detector entry declares a required bandPolicy, and analyzer.ts calls gradeFinding() (packages/core/src/impact-band.ts) once per finding after estimateImpact():
derived: when the finding'simpactEstimatecarries awallClockestimate,.impactBandis set purely fromwallClock.highas a fraction of the app's total duration (>= 2%critical,>= 0.5%warning, else info:IMPACT_FLOOR_PCT_CRIT/IMPACT_FLOOR_PCT_WARN, whichskew'sfloorPctWarnandstraggler'sfloorPctWarn/floorPctCritdefault to, so a tail those gates admit grades at least warning; a tunedskeworstragglerfloor also grades that entry's own findings, see Tuning thresholds). For these rules, the table below documents their firing gate plus their fixed fallback constant, which surfaces only when this run's finding of that type didn't get a wallClock estimate (a stage excluded from the occupancy sweep).own: the detector's own band stands (resourceOnly/informationalbasis, e.g.configAudit, or a rule that keeps its own ratio-tiered classification, e.g.failures). The tiers in Findings that are never wallClock-derived are the real, displayed classification.failure: the detector's own band stands whatever the stage costs (stageFailed,jobFailureRate).FAILURE_TYPESis the set of types whose entry declares it.
An entry can grade one finding under another policy with gradeAs: partitionSizing's maxPartitionTooBig rule carries a wallClock estimate but is a hardcoded-critical OOM/crash-risk safety signal, not a time-recovery one, so it grades as failure and stays critical however small that estimate is relative to the run.
gradeFinding() then caps a critical finding at warning, under every policy but failure, when its stage carries under CRITICAL_MIN_TASK_TIME_SHARE = 2% of the run's task time. A finding on no single stage and anything without recorded task time keep critical.
Default thresholds
The table lists, for every finding type, the criterion that fires it and the default thresholds of each detector that emits it. It is generated from the detector catalog, so it always matches the entries in packages/core/src/detectors/.
| Finding type | Fires when | Default thresholds |
|---|---|---|
skew | P95 task time over 3× the median (the longest task on stages under 20 tasks), and the slow tasks read correspondingly more data | ratioWarn = 3minTasksForP95 = 20dataShareMin = 0.5floorPctWarn = 0.005 |
stageShape | under 0.5 tasks per core, output over 10× input, or one task spanning over 50% of the stage's wall-clock at over 3× the median task | pRatioMax = 0.5oiRatioMax = 10skewWarn = 3stageShareMin = 0.5lowParallelismFloorPct = 0.005taskStageSkewFloorPct = 0.005 |
shuffle | stage shuffle read above 50 MiB | minBytes = 52428800stageFloorPct = 0.005 |
partitionSizing | a shuffle partition over 5× the median or over 5 GiB, or 1 GiB of shuffle on 7 tasks or fewer | skewRatio = 5skewFloorBytes = 268435456singleKeyShare = 0.9lowParTotalBytes = 1073741824lowParMaxTasks = 7maxPartBytes = 5368709120 |
spill | single-task disk spill above 1 GiB | singleTaskDiskGiB = 1singleTaskMemGiB = 4highDiskGiB = 1highTaskDiskMB = 512highMemGiB = 4medDiskMB = 256medMemGiB = 1skewRatio = 5skewDiskFloorMB = 128skewMemFloorMB = 256skewMinTasks = 10stageFloorPct = 0.005wideRowRatio = 10wideRowMinInputMB = 64peakNearShareRatio = 0.8 |
gc | GC above 10% (or below 5%) of executor run time | warnPct100 = 10lowInfoPct100 = 5minRunTimeMs = 10000lowInfoFloorPct = 0.005 |
slowHost | a host 2× slower than its peers by mean task time (per-executor figures from 1.33×, and only when the stage's own task-time spread cannot explain the gap) | minHosts = 3minTasks = 15ratioWarn = 2minShare = 0.2shareWarn = 0.75taskShareWarn = 0.5ratioTiers = [1.33,1.78,3.16,10]floorMs = 1000floorBytes = 67108864stageFloorPct = 0.005outlierAlpha = 0.005 |
stageSlowness | a stage running far longer than its peers, not attributable to a single slow host | infoMin = 15 |
stageFailed | a stage that failed outright | none |
failures | over 5% of a stage's tasks failing | minTasks = 10warnRate = 0.05critRate = 0.2 |
straggler | one or more tasks finishing far after the rest of their stage, for a reason other than reading more data | minTasks = 10shareWarn = 0.05shareWarnAtFloor = 0.025warnPct = 0.1critPct = 0.2floorPctWarn = 0.005floorPctCrit = 0.02 |
speculationWaste | 5+ discarded speculative attempts wasting at least 60s | minWasted = 5minWasteMs = 60000 |
retryWaste | 3+ retried attempts wasting at least 30s | minWasted = 3minWasteMs = 30000 |
tinyTask | 100+ tasks with a median of 500ms or less and a P95 of 1000ms or less | minTasks = 100maxP50 = 500maxP95 = 1000stageFloorPct = 0.005 |
incompleteRun | an event log missing its terminal ApplicationEnd event | none |
coldStart | the first stage waiting over 30s for an executor | gapSeconds = 30 |
utilization | average executor utilization below 60% | minUtil = 0.6criticalUtil = 0.3 |
rightSizing | the model finds the stages run within 10% of their real time on at most 75% of the peak cores (model error under 20%) | tolerancePct = 10maxCoreShare = 0.75minBaselineCores = 8maxModelErrorPct = 20 |
memoryUtilization | executor heap usage outside the configured band | idleCoreWarn = 0.5bandTooHigh = 0.7wasteBufferMultiplier = 1.5 |
cacheUtilization | cached partitions evicted or spilled to disk | cachedRatioWarn = 0.5cachedRatioInfo = 0.9diskRatioWarn = 0.4diskRatioInfo = 0.15 |
coreLocality | task placement missing data-local core assignment | minTasks = 50warnRatio = 0.15critRatio = 0.35 |
autoscalingChurn | over 30% of removed executors living under 2 minutes | shortLivedMs = 120000warningPct = 0.3criticalPct = 0.6minExecutors = 5 |
cachingOpportunity | a dataset re-read from source multiple times with no cache/persist | minExecutions = 2 |
jobFailureRate | at least 10% of jobs failing | infoRate = 0.1warnRate = 0.3critRate = 0.5 |
configAudit | a Spark conf value outside the recommended range | configAudit v1noneconfigAudit v1noneconfigAudit v1floorMB = 384floorPct = 0.1 |
duplicatePlanSubtree | the same physical plan subtree executed more than once | minSubtreeSize = 3minOccurrences = 2stageFloorPct = 0.005 |
smallFiles | over 100 files averaging under 3 MiB | minFiles = 100maxAvgFileSizeMB = 3 |
overBroadcast | a broadcast over 1 GiB | broadcastSizing v3broadcastTiers = [10485760,104857600,1073741824]comparisonTiers = [10737418240,322122547200]overBroadcastBytes = 1073741824minSmallerSideBytes = 1048576 |
underBroadcast | a join side its type can broadcast, between 1 MiB and 1 GiB, that skipped broadcast | broadcastSizing v3broadcastTiers = [10485760,104857600,1073741824]comparisonTiers = [10737418240,322122547200]overBroadcastBytes = 1073741824minSmallerSideBytes = 1048576 |
pythonUdf | over 64 MiB sent to Python workers by stages running over 30 s | minBytesSent = 67108864minStageMs = 30000 |
nestedLoopJoin | a nested-loop or cartesian join with over 1,000,000 output rows, at least 10x its larger input | minOutputRows = 1000000minExpansion = 10 |
mergeRewrite | a MERGE that rewrote at least 100,000 unmodified rows, at least 2x the rows it changed, or kept 90% of at least 8 target files after skipping while changing at most 50% of the partitions it scanned | minCopiedRows = 100000minCopiedToChangedRatio = 2minTargetFiles = 8minFilesKeptShare = 0.9maxTouchedPartitionShare = 0.5 |
unprunedScan | a filtered scan of a partitioned table with no partition filter that read at least 2 partitions and 1 GiB | minBytesRead = 1073741824minPartitionsRead = 2 |
joinKeyCast | a shuffled join with a cast in its key, followed by an exchange on the uncast column | none |
How the gates combine
The generated table holds every number. The notes below name threshold keys only and say how they work together, which the catalog does not carry.
Gates that pick the firing condition
skew: the stage's P95 over P50 task duration must exceedratioWarn(the max over P50 for a stage underminTasksForP95tasks). P50 is the textbook median, the mean of the two middle values on an even count; P95 stays nearest-rank. The occupancy-clipped tail recovery (tailRecoveryMs,finalizeStage's replay of the stage with every slow task capped at P50) must also reachfloorPctWarnof the app runtime. The clip floors the claim at the longest task the fix leaves and at the core work it leaves over every core. Last, the tail must be data:tailAttributionmust give the slow tasks' input plus shuffle-read volume at leastdataShareMinof their extra time. Anunattributedtail goes tostraggler.straggler: fires on a stage with at leastminTaskstasks that lasts at leastfloorPctWarnof the run, when any speculative task ran, the straggler share exceedsshareWarn, or it exceedsshareWarnAtFloorwith the clipped tail recovery already atfloorPctWarn. It reads skew's thresholds as resolved for the run (DetectorCtx.skewThresholds), not its own: a tail skew's gate admits but data does not explain is reported here without the share test. Tuningskewalone never drops a tail from both.warnPct/critPctandfloorPctWarn/floorPctCritdo not set the band; they rank the straggler and speculative tiers that pick which metric the finding reports. A straggler share has no critical tier of its own.shuffle,spill,tinyTask,duplicatePlanSubtree,slowHostand the low-GC note skip a stage shorter than theirstageFloorPct(lowInfoFloorPctfor GC) share of the run, because the claim is clipped to the stage and would gradeinfo. A zero-length stage or an unknown run duration passes.partitionSizing: the skew rule needsshuffleReadMaxoverskewRatiotimes P50 and overskewFloorBytes; it is a single-key shuffle when P50 is 0 and the max holds at leastsingleKeyShareof the read. Low parallelism needslowParTotalBytesread by at mostlowParMaxTaskstasks.maxPartBytesflags an oversized partition.gc: both directions needminRunTimeMsof executor run time. The high-GC rule is the warning tier and fires when GC time exceedswarnPct100of executor run time. The low-GC note underlowInfoPct100is checked only when the high-GC rule did not fire and the log has no measured executor heap peak.slowHost: every rule first needsminHostshosts or executors,minTaskstasks and the stage floor. The mean-duration rule then needsratioWarn,minShareof the tasks andfloorMs; the duration-share rule needsshareWarnof the task time andtaskShareWarnof the tasks.stageSlowness: the absolute fallback atinfoMinminutes, suppressed whenslowHostalready fired. The band comes from the partitioning-headroom estimate, not the duration.
slowHost multi-dimensional chance test
The multi-dimensional rule compares each executor with the median on task time, input bytes, shuffle bytes and storage memory. A sample must also clear floorMs (task time) or floorBytes (the byte dimensions). The ratio grades against ratioTiers: index 0 is the info cut, index 1 warning and index 3 critical; index 2 is not read.
The task-time dimension also has to pass a chance test, because the slowest of many executors always tops the median. On the log scale of task duration, the executor's mean minus the median executor's mean, over the stage's task spread divided by the root of the executor's task count, must reach √(2 ln(executors ÷ (2 × outlierAlpha))). An executor with fewer tasks, or a stage with more executors, needs a larger gap. The spread is rebuilt from each executor's logDurationSum and logDurationM2. A stage with under two tasks, no spread, or an executor missing either field flags no executor on task time. Of the executors that pass, the one with the largest mean is reported.
The task-time dimension carries a wallClock estimate, so its band is the fixed fallback below until gradeFinding replaces it. The byte dimensions never get one and keep their ratio tier.
Findings that are never wallClock-derived
These detector entries set impactBand themselves, and nothing overwrites it. Each line names the warning key and the critical key.
failures: warning abovewarnRate, critical abovecritRate, on a stage with at leastminTaskstasks.stageFailed: always critical when astageFailureReasonis present.jobFailureRate: info frominfoRate, warning fromwarnRate, critical fromcritRate.autoscalingChurn: the share of removed executors alive undershortLivedMs, warning abovewarningPct, critical abovecriticalPct, with at leastminExecutorsremoved.coreLocality: warning fromwarnRatio, critical fromcritRatio, with at leastminTaskstasks.cacheUtilization: partial caching is info undercachedRatioInfoand warning undercachedRatioWarn; disk spillover (MEMORY_AND_DISK*only) is info overdiskRatioInfoand warning overdiskRatioWarn. Storage unobserved is a single info caveat for persisted RDDs with no block-update evidence.stageShape: info only. PRatio fires underpRatioMaxtasks per core on a stage at leastlowParallelismFloorPctof the run; OIRatio overoiRatioMaxoutput per input byte; TaskStageSkew when the longest task spans overstageShareMinof the stage and runs overskewWarntimes the median, on a multi-task stage at leasttaskStageSkewFloorPctof the run. The median gate is needed because on a single wave of even tasks the longest task spans the whole stage too.utilization: always warning underminUtilbusy over allocated core time. The verdict's idle note and the Scorecard's Unused core time flag read the same idle share: notable from1 - minUtilidle, critical from1 - criticalUtilidle.memoryUtilization: idle cores warning aboveidleCoreWarn; the memory band is an info over-provisioning note underbandTooHigh. It has no near-capacity band, since heap used counts uncollected garbage.rightSizing: always warning and low confidence. It needs a run peak of at leastminBaselineCorescores, and fires when the smallest core count whose modeled stage time stays withintolerancePctof the observed one is at mostmaxCoreShareof that peak. It stays silent when the model error at the peak exceedsmaxModelErrorPct.cachingOpportunity: a single info tier. It fires when the same input relation, or join or union subtree, is scanned by at leastminExecutionsSQL executions in one run.speculationWaste: always warning, with at leastminWastedlosing speculative copies wasting at leastminWasteMsof core time. It is cost-only: losing copies run on spare slots beside their originals, so it has no wallClock estimate.configAudit:spark.executor.memoryOverheadbelow the larger of the minimum and the factor times executor memory is info. The minimum isspark.executor.minMemoryOverheadon Spark 4+, elsefloorMB; the factor isspark.executor.memoryOverheadFactoron Spark 3.3+, elsefloorPct.
Fixed fallback bands
These rules have no band tiers in packages/core/src/detectors/ (gradeFinding sets a derived entry's band whenever a wallClock estimate is available); the band in the table is only a floor-case fallback. A straggler share has no critical tier of its own.
| Rule | Fallback band |
|---|---|
| Task skew | warning |
| Shuffle read | info |
| Partition sizing: skew | warning |
| Partition sizing: low parallelism | warning |
| Partition sizing: oversized partition | critical |
| GC | warning |
| GC (low / cost) | info |
| Spill | warning |
| Cold start | warning |
| Slow host: mean-duration ratio | warning |
| Slow host: duration-share | warning |
| Slow host: multi-dimensional, task-time dimension | info |
Stage slowness: absolute fallback, suppressed when slowHost already fired | info |
| Straggler / speculative-execution | info |
| Retry waste | warning |
| Tiny tasks | info |
| Duplicate plan subtree | warning |
| Small files read/write | warning |
| Nested loop join | info |
| Join key cast | info |
| MERGE rewrite | info |
| Unpruned scan | info |
| Python UDF | info |
| Broadcast sizing: missed | info |
| Broadcast sizing: oversized | warning |
Spill magnitude tiers
The spill row's band is a fixed warning fallback, but computeSpillMagnitude (packages/core/src/detectors/spill/detect.ts) runs on every spill finding and sets its spillMagnitude field, which the Spill widget displays. Its tiers, in evaluation order (first match wins, null when nothing matches):
| Condition | Magnitude |
|---|---|
Single-task stage: spillDiskMax ≥ singleTaskDiskGiB or spillMemMax ≥ singleTaskMemGiB | severe |
Multi-task stage: spillDiskMax ≥ highDiskGiB, or spillDiskMax / taskCount ≥ highTaskDiskMB (per-task proxy), or spillMemMax ≥ highMemGiB | high |
Multi-task stage: spillDiskMax ≥ medDiskMB or spillMemMax ≥ medMemGiB | medium |
Skew (taskCount ≥ skewMinTasks): spillDiskMax / spillDiskP50 > skewRatio and spillDiskMax ≥ skewDiskFloorMB | high |
Skew (taskCount ≥ skewMinTasks): spillMemMax / spillMemP50 > skewRatio and spillMemMax ≥ skewMemFloorMB | medium |
Disk spill is weighted worse than memory spill by design: the memory thresholds sit well above their disk counterparts at every tier.
The finding also reports spillToInputRatio, the memory spill over inputBytes plus shuffleReadBytes, and sets wideRows from wideRowRatio. A stage with under wideRowMinInputMB of input gets no ratio. Neither threshold changes the band or the magnitude.
A volume spill adds a spark.executor.cores fix when peakExecutionMemoryMax is at least peakNearShareRatio of the execution memory per task slot.
Cache and spill notes
The RDD Info cache figures on stage events (Number of Cached Partitions, Memory Size, Disk Size) are always 0 since Spark 2.3; Spark 1.x fills them only on StageCompleted. Real cache evidence is SparkListenerBlockUpdated, written only with spark.eventLog.logBlockUpdates.enabled=true (recordBlockUpdate in event-handlers.ts); the corpus cache-memory-only/cache-memory-and-disk logs carry it. Count a block's sizes only where its storage level says it lives: a drop to disk still reports the dropped bytes as Memory Size.
Spill classification: ≥80% tasks with zero spill → skew; <20% zero → volume; else unclassified. The classification badge is always shown in both compact and expanded spill widget states. This is independent of the magnitude tiers above: classification says what kind of spill, magnitude says how much.
Evidence fields (stageFailed / retryWaste)
Beyond a scalar metric/value, both entries' detect() attach to the finding:
numTasks:stage.taskCountat detection time.memoryBytesSpilled:stage.memoryBytesSpilledat detection time.stageFailedonly:failedTaskDetails: up to 20FailedTaskSamplerecords (taskId,attemptNumber,host,executorId,reason,peakExecMem,memSpilled,shuffleWrite) for tasks still marked failed when the stage was finalized (finalizeStage,stage-quantiles.ts).retryWasteonly:retriedTaskDetails: up to 20FailedTaskSamplerecords for attempts discarded by the retry-dedup logic inaccumulateTask(event-handlers.ts): captured at the moment they'd otherwise be thrown away, since by finalize time only the winning attempt survives.
Both sample arrays are capped at 20 entries, filled in first-encountered order (finalize order for failedTaskDetails, discard order for retriedTaskDetails), not spread across distinct hosts/executors: a stage with failures clustered on one bad host could fill the cap before a more informative failure elsewhere in the stage is ever sampled.
Evidence fields (failures)
dominantReason: the most frequent end-reason tag (ExceptionFailure,ExecutorLostFailure, ...) among tasks still failed at finalize.dominantError: the error behind that tag, from its largest failure group: the exception class, or<tag>: <loss reason>; falls back to the tag. The recommendation names it and never embeds a message.failureGroups: up to 5TaskFailureGroups (reason,className,message,lossReason,stackExcerpt,count), most frequent first: one group per distinct tag, class, message and loss reason, one excerpt each.otherFailedTasks: failed tasks that no shown group covers.
packages/core/src/task-failure.ts reads the details from Task End Reason (Class Name, Description, Full Stack Trace, Loss Reason, FetchFailed Message, Kill Reason) and bounds them at ingest: a message or loss reason to its first line (for a Python traceback, its final error line), 300 characters; an excerpt to the header, 8 frames, a Python traceback's error line and the last Caused by: line, 2000 characters in all. While parsing, a stage keeps at most 50 distinct failures (StageRecord.failureDetails, freed at finalize); later ones count only toward the tag. Redaction (redact.ts) replaces every failureGroups[].message and strips message text from stackExcerpt.
Threshold sources
Where each threshold that is not read from Spark's own source comes from.
| Threshold | Source status |
|---|---|
IMPACT_FLOOR_PCT_WARN = 0.5% and IMPACT_FLOOR_PCT_CRIT = 2% (impact-band.ts), and every runtime floor that defaults to them or to 0.5% (floorPctWarn, floorPctCrit, stageFloorPct, lowInfoFloorPct, lowParallelismFloorPct, taskStageSkewFloorPct) | Our own noise floors, unvalidated |
CRITICAL_MIN_TASK_TIME_SHARE = 2% (impact-band.ts) | IMPACT_FLOOR_PCT_CRIT applied to a stage's share of the run's task time. Our own noise floor, unvalidated |
SPILL_TASK_TIME_SHARE_PER_PASS = 50% and SPILL_TASK_TIME_SHARE_MAX = 60% (impact-model.ts) | Share of a stage's task time one pass of its read bytes through disk spill costs in serialization and sort CPU, and the cap. Measured on local sort stages, where one full pass cost 34-56% of the stage's time |
skew dataShareMin = 0.5 | Our own majority cut |
gc minRunTimeMs = 10 s | Our own noise floor, so a stage that barely ran flags in neither direction |
gc warnPct100 = 10 and lowInfoPct100 = 5 | Carried over unchanged from an external GC heuristic |
memoryUtilization idleCoreWarn = 0.50 | Carried over from an external wasted-cores heuristic |
rightSizing tolerancePct, maxCoreShare, minBaselineCores and maxModelErrorPct | Our own cuts; the model they gate is idealized. In the corpus gate, 65 of the 66 public logs have an application end, 9 hold a peak of 8 or more cores (3 with dynamic allocation), 1 of those 9 has a model error at or under 20%, and no log fires the finding. Only 2 logs remove an executor. No corpus log fires or misfires at the cuts, and the corpus has too few large, dynamic-allocation or executor-churn runs to tune them |
memoryUtilization wasteBufferMultiplier = 1.5 | Unverified buffer |
unprunedScan minBytesRead, minPartitionsRead | Our own cuts. The public Delta corpus logs scan small partitioned tables, so no default finding fires on them; the rule is tested on them with minBytesRead set to 0, and on synthetic plans |
mergeRewrite minCopiedRows, minCopiedToChangedRatio, minTargetFiles, minFilesKeptShare and maxTouchedPartitionShare | Our own cuts. The public corpus MERGE logs rewrite 2.7 times the rows they change and keep every target file, on a target with 4 partitions. No public log has skipping that fails on a partitioned target, so weakSkipping is checked on synthetic plans only |
joinKeyCast has no thresholds | The pattern is the signal; it is always info because a cast between small integer types is harmless |
nestedLoopJoin minOutputRows = 1,000,000 and minExpansion = 10 | Our own noise floors; the stage time the finding is graded on decides how much it matters |
pythonUdf minBytesSent and minStageMs | Conservative guesses, not tuned against a real workload |
The assumed throughputs and overheads in impact-model.ts | Starting assumptions, unvalidated |
Spark defaults by release
sparkConfDefault() (packages/core/src/spark-conf.ts) answers a property's default for the run's Spark version from this table. A property introduced by a release has no default before it.
| Property | Default | From |
|---|---|---|
spark.speculation.multiplier | 1.5, then 3 | 4.0.0 |
spark.speculation.quantile | 0.75, then 0.9 | 4.0.0 |
spark.sql.adaptive.enabled | false, then true | 3.2.0 |
spark.sql.adaptive.skewJoin.enabled, spark.sql.adaptive.coalescePartitions.enabled | true | 3.0.0 |
spark.sql.adaptive.skewJoin.skewedPartitionFactor = 5, spark.sql.adaptive.skewJoin.skewedPartitionThresholdInBytes = 256MB | A partition is skewed above both the factor times the median partition and the threshold | 3.0.0 |
spark.sql.adaptive.forceOptimizeSkewedJoin | false; true accepts the extra shuffle a split can cost | 3.3.0 |
spark.sql.adaptive.advisoryPartitionSizeInBytes | 64MB (falls back to spark.sql.adaptive.shuffle.targetPostShuffleInputSize) | 3.0.0 |
spark.sql.adaptive.coalescePartitions.parallelismFirst | true; AQE then sizes merged tasks from defaultParallelism too, so a larger advisory size alone does not merge more | 3.2.0 |
spark.executor.memoryOverheadFactor | 0.1 (0.4 for Kubernetes non-JVM jobs, which the log does not tell apart); overhead is max(factor x executor memory, minimum) when spark.executor.memoryOverhead is unset | 3.3.0 |
spark.executor.minMemoryOverhead | 384m | 4.0.0 |
spark.sql.execution.pythonUDF.arrow.enabled | false, then true | 3.4.0 (introduced), 4.2.0 (on) |
The remaining keys in the table (spark.speculation, spark.executor.memory, spark.serializer, spark.shuffle.service.enabled, spark.locality.wait, the spark.eventLog switches, the dynamic-allocation bounds, spark.sql.shuffle.partitions, spark.sql.autoBroadcastJoinThreshold, spark.sql.files.maxPartitionBytes) have one default on every release.
Calibration data
Calibrated on 14 real logs. Each figure counts findings or groups the default thresholds produce on them. A 0.5% runtime floor drops findings on stages that barely ran, where the claim is clipped to the stage and would grade info; the condition is still true there.
| Detector | Calibration figure |
|---|---|
duplicatePlanSubtree | 270 of 546 duplicate groups differ beyond AQE query-stage numbers (occurrencesIdentical: false); 340 of 545 findings sit on repeats whose stages are shorter than the floor; a WholeStageCodegen wrapper or an Exchange write half is the only operator outside the subtree on 426 stages |
stageShape (lowParallelism) | 2,839 of 3,005 findings fall under the floor, 2,168 of them on sub-second stages |
shuffle | 182 of 284 findings fall under the floor |
spill | 12 of 38 findings fall under the floor, all info |
gc (low GC) | 464 of 685 low-GC notes fall under the floor (701 gc findings in all) |
slowHost | 324 of 452 findings fall under the floor, all info |
straggler | 671 of 753 findings fall under the floor, none above info. Scored against a task-level replay of every stage (recoverable = replay with each task over 4x P50 capped at P50), admitting 2.5-5% shares whose clipped tail already clears floorPctWarn finds 3 stages (10-48 s) for 1 borderline miss; admitting every 2.5% share adds 86 findings below the floor |
tinyTask | 132 of 151 findings fall under the floor |
coldStart | The driver's own startup before the first job takes 36-47 s on every log, so the gap is measured from the first stage's submission, not from application start |