I used to treat AWS Glue like a black box: point it at some data, wait, and hope the job finished before the bill arrived. After a few jobs that ran long, failed silently, or cost far more than the data was worth, I changed how I work with it. These six habits are what stuck.
1. Let job bookmarks do the tracking, but verify them.
Glue job bookmarks are supposed to process only new data since the last run, and they mostly do. The habit that matters is verifying: after a bookmarked run, check the row counts in and out before you trust it. A schema change or a renamed source folder can quietly reset what "new" means, and a job that reprocesses everything looks successful right up until the bill lands.
2. Partition early, and partition on what you actually filter by.
Glue crawlers and jobs both get dramatically cheaper when data is partitioned on the column your queries filter on — usually a date. Partitioning on a high-cardinality column like a user ID, on the other hand, creates thousands of tiny files and slows everything down. I pick one stable, low-cardinality partition key and stick with it.
3. Push filters down instead of scanning everything.
A job that reads an entire table and filters in memory is paying to scan data it will throw away. Predicate pushdown — filtering at the source, in the query or the DynamicFrame — means Glue reads only the partitions it needs. This one change has cut more of my Glue costs than any instance tuning ever did.
4. Keep the crawler honest with a schema-change habit.
Crawlers are convenient, but an unchecked crawler will happily add columns, change types, or rename fields after a source system changes. I review crawler runs the way I review deploys: if the schema changed, I want to know before the next job reads it, not after a downstream dashboard breaks.
5. Set timeouts, retries, and alerts before the first failure, not after.
A Glue job with no timeout can run for hours on a stuck shuffle. I set a sensible timeout, one retry for transient failures, and a CloudWatch alarm on job failure and on run duration crossing its usual range. The alarm on duration matters most — a job that suddenly takes twice as long is usually the first sign of a data problem.
6. Watch the DPUs, not just the runtime.
Glue bills on DPUs, and the default worker count is generous. For small jobs I start small — fewer workers, then scale up only if the job is genuinely slow. I also check the job's CloudWatch metrics after tuning: if workers sit idle, I am paying for capacity I never used.
Key takeaways: verify job bookmarks with row counts; partition on what you filter by; push filters down to avoid full scans; review crawler schema changes like deploys; alarm on failure AND on unusual duration; and size DPUs to the job, not the default.
What is the one Glue habit that saved you the most time or money? I am still tuning my own jobs, so I would love to hear what worked for you.
Loading article