Skip to content

Commit

Permalink
build: adjust health checks for ECS
Browse files Browse the repository at this point in the history
Ref. metriport/metriport-internal#1040

Signed-off-by: Rafael Leite <[email protected]>
  • Loading branch information
leite08 committed Jul 30, 2024
1 parent 0b48c3c commit 0be6e01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion infra/lib/fhir-server-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,9 @@ export class FHIRServerStack extends Stack {
// See for details: https://docs.aws.amazon.com/elasticloadbalancing/latest/network/target-group-health-checks.html
fargateService.targetGroup.configureHealthCheck({
healthyThresholdCount: 2,
interval: Duration.seconds(30),
unhealthyThresholdCount: 4,
interval: Duration.seconds(20),
timeout: Duration.seconds(15),
path: "/",
port: `${listenToPort}`,
protocol: Protocol.HTTP,
Expand Down

0 comments on commit 0be6e01

Please sign in to comment.