class WorkerType
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Glue.WorkerType |
Java | software.amazon.awscdk.services.glue.WorkerType |
Python | aws_cdk.aws_glue.WorkerType |
TypeScript (source) | @aws-cdk/aws-glue » 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
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as glue from '@aws-cdk/aws-glue';
const workerType = glue.WorkerType.G_1X;
Properties
Name | Type | Description |
---|---|---|
name | string | The name of this WorkerType, as expected by Job resource. |
static G_1 | Worker | Each worker maps to 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk), and provides 1 executor per worker. |
static G_2 | Worker | Each worker maps to 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk), and provides 1 executor per worker. |
static STANDARD | Worker | Each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker. |
name
Type:
string
The name of this WorkerType, as expected by Job resource.
static G_1X
Type:
Worker
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.
static G_2X
Type:
Worker
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.
static STANDARD
Type:
Worker
Each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker.
Methods
Name | Description |
---|---|
static of(workerType) | Custom worker type. |
static of(workerType)
public static of(workerType: string): WorkerType
Parameters
- workerType
string
— custom worker type.
Returns
Custom worker type.