From 42233393549334d20122ec247636181d18eba76d Mon Sep 17 00:00:00 2001 From: Akash Askoolum Date: Tue, 24 Sep 2024 14:34:53 +0100 Subject: [PATCH] Revert "Update capacity to be more production-like" --- cdk/lib/__snapshots__/cdk-playground.test.ts.snap | 12 ++++++------ cdk/lib/cdk-playground.ts | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/cdk/lib/__snapshots__/cdk-playground.test.ts.snap b/cdk/lib/__snapshots__/cdk-playground.test.ts.snap index 18a5404..42dabdb 100644 --- a/cdk/lib/__snapshots__/cdk-playground.test.ts.snap +++ b/cdk/lib/__snapshots__/cdk-playground.test.ts.snap @@ -130,7 +130,7 @@ Object { "MinSuccessfulInstancesPercent": 100, }, "ResourceSignal": Object { - "Count": 3, + "Count": 1, "Timeout": "PT3M", }, }, @@ -138,7 +138,7 @@ Object { "AsgRollingUpdatePolicy2A1DDC6F", ], "Properties": Object { - "DesiredCapacity": "3", + "DesiredCapacity": "1", "HealthCheckGracePeriod": 120, "HealthCheckType": "ELB", "LaunchTemplate": Object { @@ -152,13 +152,13 @@ Object { ], }, }, - "MaxSize": "6", + "MaxSize": "2", "MetricsCollection": Array [ Object { "Granularity": "1Minute", }, ], - "MinSize": "3", + "MinSize": "1", "Tags": Array [ Object { "Key": "App", @@ -210,8 +210,8 @@ Object { "Type": "AWS::AutoScaling::AutoScalingGroup", "UpdatePolicy": Object { "AutoScalingRollingUpdate": Object { - "MaxBatchSize": 6, - "MinInstancesInService": 3, + "MaxBatchSize": 2, + "MinInstancesInService": 1, "MinSuccessfulInstancesPercent": 100, "PauseTime": "PT3M", "SuspendProcesses": Array [ diff --git a/cdk/lib/cdk-playground.ts b/cdk/lib/cdk-playground.ts index b402954..25223f0 100644 --- a/cdk/lib/cdk-playground.ts +++ b/cdk/lib/cdk-playground.ts @@ -52,7 +52,8 @@ export class CdkPlayground extends GuStack { }, monitoringConfiguration: { noMonitoring: true }, scaling: { - minimumInstances: 3, + minimumInstances: 1, + maximumInstances: 2, }, applicationLogging: { enabled: true,