Skip to content

Commit

Permalink
Fixing health check and bumping up autoscaling limits (#784)
Browse files Browse the repository at this point in the history
* Fixing health check and bumping up autoscaling limits
  • Loading branch information
shreyas-ram authored Feb 28, 2024
1 parent a7854c4 commit edbb400
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cdk/lib/app-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export class AppStack extends cdk.Stack {
});

fargateService.targetGroup.configureHealthCheck({
path: "/api/health",
path: production ? "https://www.codu.co/api/health" : "https://www.dev1.codu.co/api/health",
interval: cdk.Duration.seconds(30),
timeout: cdk.Duration.seconds(5),
healthyHttpCodes: "200",
Expand All @@ -247,11 +247,11 @@ export class AppStack extends cdk.Stack {
});

scaling.scaleOnCpuUtilization("CpuScaling", {
targetUtilizationPercent: 70,
targetUtilizationPercent: 90,
});

scaling.scaleOnMemoryUtilization("MemoryScaling", {
targetUtilizationPercent: 70,
targetUtilizationPercent: 90,
});

fargateService.service.connections.allowFromAnyIpv4(
Expand Down

0 comments on commit edbb400

Please sign in to comment.