enum WorkerType
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.StepFunctions.Tasks.WorkerType |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctionstasks#WorkerType |
Java | software.amazon.awscdk.services.stepfunctions.tasks.WorkerType |
Python | aws_cdk.aws_stepfunctions_tasks.WorkerType |
TypeScript (source) | aws-cdk-lib » aws_stepfunctions_tasks » WorkerType |
The type of predefined worker that is allocated when a job runs.
If you need to use a WorkerType that doesn't exist as a static member, you
can instantiate a WorkerType
object, e.g: WorkerType.of('other type')
.
Example
new tasks.GlueStartJobRun(this, 'Task', {
glueJobName: 'my-glue-job',
workerConfiguration: {
workerType: tasks.WorkerType.G_1X, // Worker type
numberOfWorkers: 2, // Number of Workers
},
});
Members
Name | Description |
---|---|
STANDARD | Each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker. |
G_025X | Each worker maps to 0.25 DPU (2 vCPU, 4 GB of memory, 64 GB disk), and provides 1 executor per worker. Suitable for low volume streaming jobs. |
G_1X | Each worker maps to 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk), and provides 1 executor per worker. |
G_2X | Each worker maps to 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk), and provides 1 executor per worker. |
G_4X | Each worker maps to 4 DPU (16 vCPU, 64 GB of memory, 256 GB disk), and provides 1 executor per worker. |
G_8X | Each worker maps to 8 DPU (32 vCPU, 128 GB of memory, 512 GB disk), and provides 1 executor per worker. |
Z_2X | Each worker maps to 2 high-memory DPU [M-DPU] (8 vCPU, 64 GB of memory, 128 GB disk). |
STANDARD
Each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker.
G_025X
Each worker maps to 0.25 DPU (2 vCPU, 4 GB of memory, 64 GB disk), and provides 1 executor per worker. Suitable for low volume streaming jobs.
G_1X
Each worker maps to 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk), and provides 1 executor per worker.
Suitable for memory-intensive jobs.
G_2X
Each worker maps to 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk), and provides 1 executor per worker.
Suitable for memory-intensive jobs.
G_4X
Each worker maps to 4 DPU (16 vCPU, 64 GB of memory, 256 GB disk), and provides 1 executor per worker.
We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for AWS Glue version 3.0 or later jobs.
G_8X
Each worker maps to 8 DPU (32 vCPU, 128 GB of memory, 512 GB disk), and provides 1 executor per worker.
We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for AWS Glue version 3.0 or later jobs.
Z_2X
Each worker maps to 2 high-memory DPU [M-DPU] (8 vCPU, 64 GB of memory, 128 GB disk).
Supported in Ray jobs.