Skip to content

Commit

Permalink
Merge pull request #532 from guardian/aa/increase-capacity
Browse files Browse the repository at this point in the history
Update capacity to be more production-like
  • Loading branch information
akash1810 authored Sep 23, 2024
2 parents 5242719 + 9c51646 commit 3e88f02
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
12 changes: 6 additions & 6 deletions cdk/lib/__snapshots__/cdk-playground.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,15 @@ Object {
"MinSuccessfulInstancesPercent": 100,
},
"ResourceSignal": Object {
"Count": 1,
"Count": 3,
"Timeout": "PT3M",
},
},
"DependsOn": Array [
"AsgRollingUpdatePolicy2A1DDC6F",
],
"Properties": Object {
"DesiredCapacity": "1",
"DesiredCapacity": "3",
"HealthCheckGracePeriod": 120,
"HealthCheckType": "ELB",
"LaunchTemplate": Object {
Expand All @@ -152,13 +152,13 @@ Object {
],
},
},
"MaxSize": "2",
"MaxSize": "6",
"MetricsCollection": Array [
Object {
"Granularity": "1Minute",
},
],
"MinSize": "1",
"MinSize": "3",
"Tags": Array [
Object {
"Key": "App",
Expand Down Expand Up @@ -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 [
Expand Down
3 changes: 1 addition & 2 deletions cdk/lib/cdk-playground.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ export class CdkPlayground extends GuStack {
},
monitoringConfiguration: { noMonitoring: true },
scaling: {
minimumInstances: 1,
maximumInstances: 2,
minimumInstances: 3,
},
applicationLogging: {
enabled: true,
Expand Down

0 comments on commit 3e88f02

Please sign in to comment.