View Spark Recommendations
Use the Recommendations tab to view optimization recommendations generated for completed Spark applications.
Navigation
- In the Pulse UI, go to Compute in the left navigation panel.
- Select Spark > Applications.
- Select a completed Spark application.
- Select the Recommendations tab.
The Recommendations tab displays the recommendations generated for the selected application.


Recommendation Details
Each recommendation includes the following information.
Recommendation Summary
- Title – A short name for the detected issue.
- Summary – Describes the issue detected in the completed workload run.
Detection Details
- Scope – Identifies where the issue was detected, such as Application, Job, Stage, or Cluster, along with the relevant identifiers.
- Severity – Indicates the impact level of the issue: Low, Medium, or High.
- Impact – Shows the estimated percentage of the workload runtime affected by the issue.
Occurrence Information
- Occurrence Count – Indicates how many times the issue was detected within the current deduplication window.
- First Seen – Displays when the issue was first detected.
- Last Seen – Displays when the issue was most recently detected.
Suggested Actions
- Suggested Actions – Lists the recommended tuning or configuration changes to apply before running the workload again.
Note
Recommendations are generated from completed workload runs.
They provide guidance for optimizing future executions of the same workload and do not represent real-time alerts for running applications.
App-Scoped Recommendations
App-scoped recommendations identify issues that span the entire application run rather than a single job or stage.

Under-Provisioned Executors
Code: SPARK_UNDER_PROVISIONED_EXECUTORS_APP
The completed application showed sustained high CPU utilization combined with elevated scheduling delay. This combination indicates that executor capacity was insufficient for the workload — tasks were waiting for execution slots rather than running.
Suggested actions:
- Review spark.executor.instances for future runs if the workload was waiting on execution slots.
- Review spark.executor.cores if task parallelism and cluster shape support larger executors.
- Review queue contention or resource placement if scheduling delay was driven by cluster-wide pressure.
High GC Overhead
Code: SPARK_HIGH_GC_OVERHEAD_APP
The completed application spent a significant portion of its runtime in garbage collection. This indicates memory pressure, excessive object allocation in UDFs or aggregations, or executor sizing that does not align with the workload's memory profile.
Suggested actions:
- Review executor memory allocation for future runs of this workload.
- Inspect spill-heavy stages, in-memory cache usage, or oversized executors that may be contributing to GC pressure.
- Review UDFs, map operations, and aggregation paths for high object churn.
Job-Scoped Recommendations
Job-scoped recommendations identify issues concentrated within a specific Spark job. A recommendation is emitted when the same signal appears across at least 3 stages within the job and the combined runtime impact crosses the minimum threshold.

CPU-Bound Stages
Code: SPARK_CPU_BOUND_JOB
Multiple stages in the completed job showed very high CPU utilization with low shuffle amplification. This indicates the job was compute-bound — either due to intensive processing logic or insufficient executor parallelism to distribute the workload.
Suggested actions:
- Review task parallelism to confirm available cluster capacity is being fully utilized.
- Review spark.executor.instances for future runs if execution slots were the bottleneck.
- Review spark.executor.cores only if larger executors fit the cluster shape without worsening GC or task imbalance.
Data Skew
Code: SPARK_DATA_SKEW_JOB
Multiple stages in the completed job showed skewed task duration distribution, with a small number of tasks taking significantly longer than the median. This typically indicates hotspot keys or uneven data partitioning.
Suggested actions:
- Review Adaptive Query Execution (AQE) skew handling for future runs.
- Inspect join and aggregation keys for null-heavy or highly concentrated value distributions.
- Consider salting, repartitioning on a more selective key, or pre-aggregation where skew is persistent.
Skew with Spill
Code: SPARK_SKEW_WITH_SPILL_JOB
Multiple stages in the completed job showed both data skew and significant memory spill. This combination is typically more severe than either issue in isolation: skewed partitions drive oversized tasks that also exhaust executor memory, causing spill to disk and extended stage runtime.
Suggested actions:
- Review AQE skew handling for subsequent runs of this workload.
- Inspect join and aggregation keys for concentrated values that may be producing outsized partitions.
- Review executor memory or memory overhead for stages that are both skewed and spill-heavy.
High Spill
Code: SPARK_HIGH_SPILL_JOB
Multiple stages in the completed job spilled significant data to disk, indicating that per-task working sets exceeded available executor memory. Spill adds disk I/O overhead and can significantly extend stage runtime.
Suggested actions:
- Review spark.executor.memory and spark.executor.memoryOverhead for future runs.
- Review spark.sql.shuffle.partitions if oversized shuffle partitions are contributing to per-task memory pressure.
- Investigate whether data skew or large aggregations are amplifying spill in specific stages.
Shuffle Fetch Bottleneck
Code: SPARK_SHUFFLE_FETCH_BOTTLENECK_JOB
Multiple stages in the completed job spent significant time waiting for shuffle data to be fetched from remote executors. This can indicate network pressure, shuffle service instability, or skew concentrating shuffle reads into a small number of tasks.
Suggested actions:
- Review shuffle stability and remote fetch patterns for future runs.
- Review external shuffle service configuration where applicable.
- Investigate whether data skew is concentrating shuffle reads into a small number of tasks.
Shuffle Partitions Too Large
Code: SPARK_SHUFFLE_PARTITIONS_TOO_LARGE_JOB
Multiple stages in the completed job produced oversized shuffle partitions. Large partitions increase the risk of memory spill and long-tail task execution, as individual tasks are assigned disproportionate amounts of data.
Suggested actions:
- Increase spark.sql.shuffle.partitions for future runs to produce smaller, more evenly sized partitions.
- Review whether AQE partition coalescing is collapsing too many partitions and inadvertently creating large ones.
- Check whether data skew is causing a subset of partitions to grow disproportionately large.
Shuffle Partitions Too Small
Code: SPARK_SHUFFLE_PARTITIONS_TOO_SMALL_JOB
Multiple stages in the completed job produced many very small shuffle partitions. Excessive small partitions create a large number of short-lived tasks, increasing scheduling overhead and reducing overall throughput.
Suggested actions:
- Reduce spark.sql.shuffle.partitions for future runs if per-stage partition sizes are consistently small.
- Consider coalescing partitions after wide transformations where safe.
- Review whether the default partition count is too high for the typical data volume of this workload.
Cluster-Scoped Recommendations
Cluster-scoped recommendations identify recurring performance patterns across multiple application runs. Unlike application-, job-, or stage-scoped recommendations, they are not associated with a single workload. Instead, they highlight cluster-wide trends that may require changes to cluster configuration or default workload settings.
Note
Pulse generates a cluster-scoped recommendation only when the same qualifying issue is detected in at least three distinct application runs within the evaluation window.
A single application or job anomaly does not generate a cluster-scoped recommendation.
Navigation:
- In the Pulse UI, go to the Recommendation pane on the left.
- The recommendations are categorized as low, medium, and low.


Recurring CPU-Bound Workloads
Code: SPARK_CPU_BOUND_CLUSTER
Multiple recent Spark workloads completed with repeated CPU-bound behavior across their stages. When this pattern is widespread across the cluster, it may indicate that cluster capacity, executor sizing defaults, or workload scheduling are not aligned with the compute demands of the current workload mix.
Evaluation window: 6 hours across at least 3 distinct application runs.
Suggested actions:
- Review cluster capacity and queue allocation for recurring CPU-heavy workloads.
- Review default executor sizing configuration used by recurring Spark jobs.
- Use this trend to guide tuning for future workload runs rather than remediating individual jobs one at a time.
Recommendation Thresholds
Pulse generates a recommendation only when the detected issue exceeds the minimum runtime impact threshold. The following table lists the threshold and evaluation window for each recommendation.
Recommendation | Scope | Minimum Runtime Impact | Evaluation Window |
Under-Provisioned Executors | Application | 20% | 60 minutes |
High GC Overhead | Application | 20% | 60 minutes |
CPU-Bound Stages | Job | 20% | 60 minutes |
Data Skew | Job | 20% | 60 minutes |
Skew with Spill | Job | 10% | 60 minutes |
High Spill | Job | 20% | 60 minutes |
Shuffle Fetch Bottleneck | Job | 20% | 60 minutes |
Shuffle Partitions Too Large | Job | 20% | 60 minutes |
Shuffle Partitions Too Small | Job | 20% | 60 minutes |
Recurring CPU-Bound Workloads | Cluster | 20% | 6 hours |
Note
Pulse generates a recommendation only when the detected issue meets or exceeds the minimum runtime impact threshold within the specified evaluation window. This helps reduce noise by filtering out low-impact observations.

Have a suggestion?