From b113adbd8d797bfab5aaa89fb395a726a774d6ee Mon Sep 17 00:00:00 2001 From: Connor OMalley Date: Wed, 29 Jul 2026 15:43:14 +0100 Subject: [PATCH 1/2] Matching Prod instance types for CODE stage --- dotcom-rendering/cdk/bin/cdk.ts | 2 +- .../cdk/lib/__snapshots__/renderingStack.test.ts.snap | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dotcom-rendering/cdk/bin/cdk.ts b/dotcom-rendering/cdk/bin/cdk.ts index ed16e84ea4e..6b5b96a3188 100644 --- a/dotcom-rendering/cdk/bin/cdk.ts +++ b/dotcom-rendering/cdk/bin/cdk.ts @@ -102,7 +102,7 @@ export const TagPageRenderingPropsCODE: RenderingCDKStackProps = { stage: 'CODE', domainName: 'tag-page-rendering.code.dev-guardianapis.com', scaling: { minimumInstances: 1, maximumInstances: 3 }, - instanceType: InstanceType.of(InstanceClass.T4G, InstanceSize.SMALL), + instanceType: InstanceType.of(InstanceClass.C8G, InstanceSize.MEDIUM), imageIdentifier: process.env.IMAGE_DIGEST ?? 'DEV', }; diff --git a/dotcom-rendering/cdk/lib/__snapshots__/renderingStack.test.ts.snap b/dotcom-rendering/cdk/lib/__snapshots__/renderingStack.test.ts.snap index 86619d8b422..2cd37b170e2 100644 --- a/dotcom-rendering/cdk/lib/__snapshots__/renderingStack.test.ts.snap +++ b/dotcom-rendering/cdk/lib/__snapshots__/renderingStack.test.ts.snap @@ -3257,7 +3257,7 @@ exports[`The RenderingCDKStack matches the snapshot for Tag Page Rendering CODE "ImageId": { "Ref": "AMITagpagerendering", }, - "InstanceType": "t4g.small", + "InstanceType": "c8g.medium", "MetadataOptions": { "HttpTokens": "required", "InstanceMetadataTags": "enabled", From f05aeee2832682b9f654f3346060fe9660c5c865 Mon Sep 17 00:00:00 2001 From: Connor OMalley Date: Fri, 31 Jul 2026 15:04:47 +0100 Subject: [PATCH 2/2] Reduce memory and CPU for load test. --- dotcom-rendering/cdk/lib/renderingStack.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dotcom-rendering/cdk/lib/renderingStack.ts b/dotcom-rendering/cdk/lib/renderingStack.ts index 05b116e337b..5b53d409fc9 100644 --- a/dotcom-rendering/cdk/lib/renderingStack.ts +++ b/dotcom-rendering/cdk/lib/renderingStack.ts @@ -279,10 +279,8 @@ export class RenderingCDKStack extends CDKStack { ecsProps: { repositoryName: 'guardian/dotcom-rendering', imageIdentifier, - - // TODO tune these values - memoryLimitMiB: 2048, - cpu: 1024, + memoryLimitMiB: 1024, + cpu: 512, scaling: { minimumTasks: 1, maximumTasks: 2,