Skip to content

Commit 4ab965b

Browse files
Update CODE ECS resources.
1 parent 96eedbc commit 4ab965b

2 files changed

Lines changed: 6 additions & 6 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
@@ -2300,15 +2300,15 @@ exports[`The RenderingCDKStack matches the snapshot for Tag Page Rendering CODE
23002300
"ReadonlyRootFilesystem": true,
23012301
},
23022302
],
2303-
"Cpu": "1024",
2303+
"Cpu": "2048",
23042304
"ExecutionRoleArn": {
23052305
"Fn::GetAtt": [
23062306
"EcsTaskDefinitionExecutionRoleBE450C73",
23072307
"Arn",
23082308
],
23092309
},
23102310
"Family": "TagPageRenderingCODEEcsTaskDefinition616FF027",
2311-
"Memory": "2048",
2311+
"Memory": "4096",
23122312
"NetworkMode": "awsvpc",
23132313
"RequiresCompatibilities": [
23142314
"FARGATE",
@@ -3649,7 +3649,7 @@ systemctl start tag-page-rendering",
36493649
"PredefinedMetricType": "ECSServiceAverageCPUUtilizationHighResolution",
36503650
},
36513651
"ScaleInCooldown": 60,
3652-
"ScaleOutCooldown": 60,
3652+
"ScaleOutCooldown": 10,
36533653
"TargetValue": 20,
36543654
},
36553655
},

0 commit comments

Comments
 (0)