← Blog

Glue Spark jobs need an Optimization Agent, not tribal tuning

AWS Glue ETL’s Apache Spark Optimization Agent analyzes completed job runs and returns cost- or performance-oriented config changes with telemetry evidence — via the Glue console or SageMaker Unified Studio MCP — at no extra charge for Glue 4.0+ outside GovCloud and China.

Data EngineeringLakehouseEnterprise

Spark tuning still lives in Slack folklore: bump executors, guess skew, hope spill goes away. Completed runs already hold the evidence; most teams never systematically read it.

AWS announced on November 18, 2026 the Apache Spark Optimization Agent for AWS Glue ETL. Select a completed job run and a cost or performance goal; the agent returns specific configuration changes with telemetry evidence and reasoning. It runs from the AWS Glue console or through the Amazon SageMaker Unified Studio MCP Server. A deterministic recommendation engine reads the job’s configuration, logs, and Spark telemetry together to flag drivers of runtime and cost — insufficient parallelism, skewed join keys, memory pressure and spill, idle executors, or over-provisioned capacity — and when cost and performance trade off, improves the chosen metric while keeping regression of the other within defined limits. Recommendations are labeled by area: infrastructure, Spark configuration, code, or data layout, and may include platform practices such as a newer Glue version or Graviton. Access uses IAM and is logged in CloudTrail. The agent is available at no additional charge for Glue 4.0 and later in all Glue Regions except AWS GovCloud (US) and China.

What data-platform leads should wire before the next “make it faster” ticket:

  • Point on-call and FinOps at post-run Optimization Agent reviews instead of one-off notebook experiments
  • Pick an explicit cost vs performance goal per pipeline so trade-offs are intentional, not accidental
  • Track recommendation categories (infra vs code vs layout) to decide who owns the fix

Glue jobs leave a telemetry trail. An Optimization Agent is how that trail becomes actionable config instead of another tribal Slack thread.