Skip to content

Commit

Permalink
Update capacity to be more production-like
Browse files Browse the repository at this point in the history
This is to make a more compelling demonstration
and will be reverted soon.
akash1810 committed Sep 23, 2024

Verified

This commit was signed with the committer’s verified signature.
ilblackdragon Illia Polosukhin
1 parent 5242719 commit 9c51646
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
@@ -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 {
@@ -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 [
3 changes: 1 addition & 2 deletions cdk/lib/cdk-playground.ts
Original file line number Diff line number Diff line change
@@ -52,8 +52,7 @@ export class CdkPlayground extends GuStack {
},
monitoringConfiguration: { noMonitoring: true },
scaling: {
minimumInstances: 1,
maximumInstances: 2,
minimumInstances: 3,
},
applicationLogging: {
enabled: true,

0 comments on commit 9c51646

Please sign in to comment.