AWS Glue worker types
Overview
AWS Glue provides multiple worker types to accommodate different workload requirements, from small streaming jobs to large-scale, memory-intensive data processing tasks. This section provides comprehensive information about all available worker types, their specifications, and usage recommendations.
Worker type categories
AWS Glue offers two main categories of worker types:
-
G Worker Types: General-purpose compute workers optimized for standard ETL workloads
-
R Worker Types: Memory-optimized workers designed for memory-intensive Spark applications
On AWS Glue version 6.0 or later, the G and R worker types can also run on the arm64 architecture using AWS Graviton workers. For more information, see AWS Graviton (arm64) workers.
Data Processing Units (DPUs)
The resources available on AWS Glue workers are measured in DPUs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory.
Memory-Optimized DPUs (M-DPUs): R type workers use M-DPUs, which provide double the memory allocation for a given size compared to standard DPUs. This means that while a standard DPU provides 16 GB of memory, an M-DPU in R type workers provides 32GB of memory optimized for memory-intensive Spark applications.
Available worker types
G.1X
DPU: 1 DPU (4 vCPUs, 16 GB memory)
Storage: 94GB disk (approximately 44GB free)
Use Case: Data transforms, joins, and queries - scalable and cost-effective for most jobs
G.2X
DPU: 2 DPU (8 vCPUs, 32 GB memory)
Storage: 138GB disk (approximately 78GB free)
Use Case: Data transforms, joins, and queries - scalable and cost-effective for most jobs
G.4X
DPU: 4 DPU (16 vCPUs, 64 GB memory)
Storage: 256GB disk (approximately 230GB free)
Use Case: Demanding transforms, aggregations, joins, and queries
G.8X
DPU: 8 DPU (32 vCPUs, 128 GB memory)
Storage: 512GB disk (approximately 485GB free)
Use Case: Demanding transforms, aggregations, joins, and queries
G.12X
DPU: 12 DPU (48 vCPUs, 192 GB memory)
Storage: 768GB disk (approximately 741GB free)
Use Case: Very large and resource-intensive workloads requiring significant compute capacity
G.16X
DPU: 16 DPU (64 vCPUs, 256 GB memory)
Storage: 1024GB disk (approximately 996GB free)
Use Case: Largest and most resource-intensive workloads requiring maximum compute capacity
R.1X - Memory-Optimized*
DPU: 1 M-DPU (4 vCPUs, 32 GB memory)
Use Case: Memory-intensive workloads with frequent out-of-memory errors or high memory-to-CPU ratio requirements
R.2X - Memory-Optimized*
DPU: 2 M-DPU (8 vCPUs, 64 GB memory)
Use Case: Memory-intensive workloads with frequent out-of-memory errors or high memory-to-CPU ratio requirements
R.4X - Memory-Optimized*
DPU: 4 M-DPU (16 vCPUs, 128 GB memory)
Use Case: Large memory-intensive workloads with frequent out-of-memory errors or high memory-to-CPU ratio requirements
R.8X - Memory-Optimized*
DPU: 8 M-DPU (32 vCPUs, 256 GB memory)
Use Case: Very large memory-intensive workloads with frequent out-of-memory errors or high memory-to-CPU ratio requirements
* You may encounter higher startup latency with these workers. To resolve the issue, try the following:
Wait a few minutes and then submit your job again.
Submit a new job with a reduced number of workers.
Submit a new job using a different worker type or size.
AWS Graviton (arm64) workers
On AWS Glue version 6.0 or later, you can run Spark jobs on the arm64 architecture using
AWS Graviton workers. The G and R worker types run on either x86 or AWS Graviton (arm64)
workers. To use Graviton, add a .GRAVITON suffix to the worker type (for
example, G.1X.GRAVITON); the worker provides the same DPU, vCPU, memory, and disk
resources as the same worker type on x86.
The following worker types are available on AWS Graviton workers:
G worker types:
G.1X.GRAVITON,G.2X.GRAVITON,G.4X.GRAVITON,G.8X.GRAVITON,G.12X.GRAVITON, andG.16X.GRAVITONR worker types:
R.1X.GRAVITON,R.2X.GRAVITON,R.4X.GRAVITON, andR.8X.GRAVITON
As with the standard worker types, streaming jobs support only the smaller worker types. On
Graviton, streaming jobs support G.1X.GRAVITON and
G.2X.GRAVITON; the larger G worker types and all R worker types on Graviton are for
AWS Glue Spark (batch) jobs.
The .GRAVITON suffix is required to run on the arm64 architecture.
Without it, a worker type (for example, R.1X) runs on the x86 architecture. Before you
run on Graviton, make sure any native libraries your job depends on are compatible with the arm64
architecture.
AWS Graviton workers are supported on AWS Glue version 6.0 or later. Availability can vary by AWS Region and account.
Worker type specifications table
| Worker Type | DPU per Node | vCPU | Memory (GB) | Disk (GB) | Approximate Free Disk Space (GB) | Spark Executors per Node |
|---|---|---|---|---|---|---|
| G.1X | 1 | 4 | 16 | 94 | 44 | 1 |
| G.2X | 2 | 8 | 32 | 138 | 78 | 1 |
| G.4X | 4 | 16 | 64 | 256 | 230 | 1 |
| G.8X | 8 | 32 | 128 | 512 | 485 | 1 |
| G.12X | 12 | 48 | 192 | 768 | 741 | 1 |
| G.16X | 16 | 64 | 256 | 1024 | 996 | 1 |
| R.1X | 1 | 4 | 32 | 94 | 44 | 1 |
| R.2X | 2 | 8 | 64 | 138 | 78 | 1 |
| R.4X | 4 | 16 | 128 | 256 | 230 | 1 |
| R.8X | 8 | 32 | 256 | 512 | 485 | 1 |
Note: R worker types have memory-optimized configurations with specifications optimized for memory-intensive workloads.
Important considerations
Startup latency
G.12X and G.16X worker types, as well as all R worker types (R.1X through R.8X), may encounter higher startup latency. To resolve the issue, try the following:
Wait a few minutes and then submit your job again.
Submit a new job with a reduced number of workers.
Submit a new job using a different worker type and size.
Choosing the right worker type
For standard ETL workloads
G.1X or G.2X: Most cost-effective for typical data transforms, joins, and queries
G.4X or G.8X: For more demanding workloads with larger datasets
For large-scale workloads
G.12X: Very large datasets requiring significant compute resources
G.16X: Maximum compute capacity for the most demanding workloads
For memory-intensive workloads
R.1X or R.2X: Small to medium memory-intensive jobs
R.4X or R.8X: Large memory-intensive workloads with frequent OOM errors
Cost Optimization Considerations
Standard G workers: Provide a balance of compute, memory and networking resources, and can be used for a variety of diverse workloads at lower cost
R workers: Specialized for memory-intensive tasks with fast performance for workloads that process large data sets in memory
Best practices
Worker selection guidelines
Start with standard workers (G.1X, G.2X) for most workloads
Use R workers when experiencing frequent out-of-memory errors or workloads with memory-intensive operations like caching, shuffling, and aggregating
Consider G.12X/G.16X for compute-intensive workloads requiring maximum resources
Account for capacity constraints when using new worker types in time-sensitive workflows
Performance optimization
Monitor CloudWatch metrics to understand resource utilization
Use appropriate worker counts based on data size and complexity
Consider data partitioning strategies to optimize worker efficiency