Read less, group small files, size workers to the work, keep the driver idle — and measure before you tune.
Turn on the Spark UI (--enable-spark-ui true + --spark-event-logs-path; Glue flushes event logs to S3 every 30 seconds) to see stages, task counts, task-time spread and spill. Job run insights (Glue 2.0+, on by default) add, for failed runs, the script line that failed, the last Spark action and a root-cause recommendation in extra CloudWatch log streams.
--enable-metrics publishes job metrics; --enable-observability-metrics true adds metrics such as glue.driver.workerUtilization and glue.driver.skewness.stage. Match the symptom to the fix instead of adding workers by reflex.
symptom where to look usual fix
long wait before stage 1 driver log, S3 listing pushdown predicate
few tasks, idle workers Spark UI: tasks/stage groupFiles, repartition
one task 10x slower skewness metrics AQE skew join, salting
spill or OOM Spark UI, job insights bigger worker type
low worker utilisation observability metrics fewer workers, autoscaleReach the last step for the run summary: the key takeaways from this lesson.