Skip to content

Commit 72e6092

Browse files
Update CODE ECS resources.
1 parent 28a580f commit 72e6092

4 files changed

Lines changed: 95 additions & 105 deletions

File tree

dotcom-rendering/cdk/bin/cdk.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,15 @@ export const TagPageRenderingPropsCODE: RenderingCDKStackProps = {
113113
instanceType: InstanceType.of(InstanceClass.T4G, InstanceSize.SMALL),
114114
ecsProps: {
115115
imageIdentifier: getImageIdentifier(),
116-
taskCpu: 1024,
117-
taskMemoryLimitMiB: 2048,
116+
taskCpu: 2048,
117+
taskMemoryLimitMiB: 4096,
118118
scaling: {
119119
minimumTasks: 1,
120120
maximumTasks: 9,
121121
cpuScaling: {
122122
targetValue: 20,
123123
scaleInCooldown: Duration.seconds(60),
124-
scaleOutCooldown: Duration.seconds(60),
124+
scaleOutCooldown: Duration.seconds(10),
125125
},
126126
},
127127
},

dotcom-rendering/cdk/lib/__snapshots__/renderingStack.test.ts.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2329,15 +2329,15 @@ exports[`The RenderingCDKStack matches the snapshot for Tag Page Rendering CODE
23292329
"ReadonlyRootFilesystem": true,
23302330
},
23312331
],
2332-
"Cpu": "1024",
2332+
"Cpu": "2048",
23332333
"ExecutionRoleArn": {
23342334
"Fn::GetAtt": [
23352335
"EcsTaskDefinitionExecutionRoleBE450C73",
23362336
"Arn",
23372337
],
23382338
},
23392339
"Family": "TagPageRenderingCODEEcsTaskDefinition616FF027",
2340-
"Memory": "2048",
2340+
"Memory": "4096",
23412341
"NetworkMode": "awsvpc",
23422342
"RequiresCompatibilities": [
23432343
"FARGATE",
@@ -3679,7 +3679,7 @@ systemctl start tag-page-rendering",
36793679
"PredefinedMetricType": "ECSServiceAverageCPUUtilizationHighResolution",
36803680
},
36813681
"ScaleInCooldown": 60,
3682-
"ScaleOutCooldown": 60,
3682+
"ScaleOutCooldown": 10,
36833683
"TargetValue": 20,
36843684
},
36853685
},

dotcom-rendering/cdk/lib/renderingStack.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,6 @@ export class RenderingCDKStack extends CDKStack {
223223
});
224224

225225
const { stack: guStack, region, account } = this;
226-
const { guApp, stage, instanceType, scaling, domainName, ecsProps } =
227-
props;
228226

229227
const artifactsBucket =
230228
GuDistributionBucketParameter.getInstance(this).valueAsString;

0 commit comments

Comments
 (0)