From 9c51646575646aa47560d5c2ad455ba3242da8c5 Mon Sep 17 00:00:00 2001 From: akash1810 Date: Mon, 23 Sep 2024 21:26:40 +0100 Subject: [PATCH] Update capacity to be more production-like This is to make a more compelling demonstration and will be reverted soon. --- cdk/lib/__snapshots__/cdk-playground.test.ts.snap | 12 ++++++------ cdk/lib/cdk-playground.ts | 3 +-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/cdk/lib/__snapshots__/cdk-playground.test.ts.snap b/cdk/lib/__snapshots__/cdk-playground.test.ts.snap index 42dabdb..18a5404 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": 1, + "Count": 3, "Timeout": "PT3M", }, }, @@ -138,7 +138,7 @@ Object { "AsgRollingUpdatePolicy2A1DDC6F", ], "Properties": Object { - "DesiredCapacity": "1", + "DesiredCapacity": "3", "HealthCheckGracePeriod": 120, "HealthCheckType": "ELB", "LaunchTemplate": Object { @@ -152,13 +152,13 @@ Object { ], }, }, - "MaxSize": "2", + "MaxSize": "6", "MetricsCollection": Array [ Object { "Granularity": "1Minute", }, ], - "MinSize": "1", + "MinSize": "3", "Tags": Array [ Object { "Key": "App", @@ -210,8 +210,8 @@ Object { "Type": "AWS::AutoScaling::AutoScalingGroup", "UpdatePolicy": Object { "AutoScalingRollingUpdate": Object { - "MaxBatchSize": 2, - "MinInstancesInService": 1, + "MaxBatchSize": 6, + "MinInstancesInService": 3, "MinSuccessfulInstancesPercent": 100, "PauseTime": "PT3M", "SuspendProcesses": Array [ diff --git a/cdk/lib/cdk-playground.ts b/cdk/lib/cdk-playground.ts index 25223f0..b402954 100644 --- a/cdk/lib/cdk-playground.ts +++ b/cdk/lib/cdk-playground.ts @@ -52,8 +52,7 @@ export class CdkPlayground extends GuStack { }, monitoringConfiguration: { noMonitoring: true }, scaling: { - minimumInstances: 1, - maximumInstances: 2, + minimumInstances: 3, }, applicationLogging: { enabled: true,