Skip to content

Commit

Permalink
feat(deadline): upgraded default Worker instance type to t3.large (#1225
Browse files Browse the repository at this point in the history
)
  • Loading branch information
rondeau-aws authored Aug 8, 2024
1 parent 2c85e85 commit dfb8536
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion integ/lib/sep-worker-struct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class SepWorkerStruct extends Construct {
maxCapacity: 1,
workerMachineImage: MachineImage.genericLinux({ [Stack.of(this).region]: linuxAmi }),
deadlineGroups: ['sep_group'],
instanceTypes: [new InstanceType('t2.micro')],
instanceTypes: [new InstanceType('t3.micro')],
logGroupProps: {
logGroupPrefix: `/${Stack.of(this).stackName}-${id}/`,
retention: RetentionDays.TWO_MONTHS,
Expand Down
6 changes: 3 additions & 3 deletions packages/aws-rfdk/lib/deadline/lib/worker-fleet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ export interface WorkerInstanceFleetProps extends WorkerSettings {
readonly workerMachineImage: IMachineImage;

/**
* Type of instance to launch for executing repository installer.
* Type of instance to launch for the Workers.
*
* @default - a T2-Large type will be used.
* @default - a T3-Large type will be used.
*/
readonly instanceType?: InstanceType;

Expand Down Expand Up @@ -450,7 +450,7 @@ export class WorkerInstanceFleet extends WorkerInstanceFleetBase {
// Launching the fleet with deadline workers.
this.fleet = new AutoScalingGroup(this, 'Default', {
vpc: props.vpc,
instanceType: (props.instanceType ? props.instanceType : InstanceType.of(InstanceClass.T2, InstanceSize.LARGE)),
instanceType: (props.instanceType ? props.instanceType : InstanceType.of(InstanceClass.T3, InstanceSize.LARGE)),
machineImage: props.workerMachineImage,
keyName: props.keyName,
vpcSubnets,
Expand Down
4 changes: 2 additions & 2 deletions packages/aws-rfdk/lib/deadline/test/worker-fleet.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ test('default worker fleet is created correctly', () => {
// THEN
Template.fromStack(wfstack).resourceCountIs('AWS::AutoScaling::AutoScalingGroup', 1);
Template.fromStack(wfstack).hasResourceProperties('AWS::AutoScaling::LaunchConfiguration', {
InstanceType: 't2.large',
InstanceType: 't3.large',
IamInstanceProfile: {
Ref: Match.stringLikeRegexp('^workerFleetInstanceProfile.*'),
},
Expand Down Expand Up @@ -374,7 +374,7 @@ test('default worker fleet is created correctly with linux image', () => {
// 3 = repository + renderqueue + worker fleet
Template.fromStack(stack).resourceCountIs('AWS::AutoScaling::AutoScalingGroup', 3);
Template.fromStack(stack).hasResourceProperties('AWS::AutoScaling::LaunchConfiguration', {
InstanceType: 't2.large',
InstanceType: 't3.large',
IamInstanceProfile: {
Ref: Match.stringLikeRegexp('^workerFleetInstanceProfile.*'),
},
Expand Down

0 comments on commit dfb8536

Please sign in to comment.