Repository navigation
Add Spark job performance tuning skill and prompt - #60
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a paired Skillbook skill and Promptbook prompt for Spark job performance tuning — the first data-platform entry focused on runtime performance rather than pipeline design.
spark-job-tuning-guardrails— baseline first on representative data, read the physical plan (explain(mode="formatted"), SQL tab) before touching configs, keep AQE on and tune its thresholds instead of disabling it, prune/filter before joins, broadcast only reliably small sides, confirm skew from stage metrics (max vs p75) and handle what AQE can't see with pre-aggregation / hot-key isolation / salting, size shuffle partitions by bytes, treat spill as a partitioning signal, cache only reused results, prefer built-ins or pandas UDFs over row UDFs, write healthy file sizes with compaction, keep stats fresh, and keep tuning configs in the job definition with evidence. Includes Copilot / Claude Code / Codex placement notes. Points contracts, idempotency, and PII at data-platform-pipeline-review rather than repeating them.tune-spark-job-performance— one-shot task with{{JOB_PATH}}/{{PLATFORM}}/{{SPARK_VERSION}}/{{INPUTS}}/{{OUTPUT}}/{{SYMPTOM}}/{{EVIDENCE}}/{{CLUSTER}}/{{TARGET}}placeholders to inventory the job, diagnose hotspots from the plan and stage metrics, apply one fix per hotspot in a fixed priority order, and return a hotspot table, a minimal diff, and a before/after metrics comparison with output-correctness checks.Catalogs: 30 → 31 skills, 30 → 31 prompts.
Test plan
node scripts/site-check.mjslocally (OK, 0 warnings)