From a9d1f2d50954ec9f2e6e840a82ad88ce78ac4f18 Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Sun, 10 Oct 2021 20:29:30 -0700 Subject: [PATCH] Decrease health check interval to 10 minutes We aren't running mission critical services over here. Heartbeating every 10 seconds has a nontrivial network cost. --- fargate-services/2017-fargate-api.yaml | 2 +- fargate-services/2019-fargate-api.yaml | 2 +- fargate-services/fargate-endpoints-catalog.yaml | 2 +- fargate-services/fargate-frontend.yaml | 2 +- services/homeless-service/service.yaml | 2 +- services/housing-affordability-service/service.yaml | 2 +- services/transport-service/service.yaml | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/fargate-services/2017-fargate-api.yaml b/fargate-services/2017-fargate-api.yaml index ca5f6f2..ea10094 100644 --- a/fargate-services/2017-fargate-api.yaml +++ b/fargate-services/2017-fargate-api.yaml @@ -202,7 +202,7 @@ Resources: TargetType: ip Matcher: HttpCode: 200-299 - HealthCheckIntervalSeconds: 10 + HealthCheckIntervalSeconds: 600 HealthCheckPath: !Ref HealthCheckPathName HealthCheckProtocol: HTTP HealthCheckTimeoutSeconds: 5 diff --git a/fargate-services/2019-fargate-api.yaml b/fargate-services/2019-fargate-api.yaml index 7a3d20d..5bd31c2 100644 --- a/fargate-services/2019-fargate-api.yaml +++ b/fargate-services/2019-fargate-api.yaml @@ -188,7 +188,7 @@ Resources: Matcher: # HttpCode: 200-299 HttpCode: 200-299,404 # Civic Devops issue #254 - HealthCheckIntervalSeconds: 10 + HealthCheckIntervalSeconds: 600 HealthCheckPath: !Ref HealthCheckPathName HealthCheckProtocol: HTTP HealthCheckTimeoutSeconds: 5 diff --git a/fargate-services/fargate-endpoints-catalog.yaml b/fargate-services/fargate-endpoints-catalog.yaml index 9c9b132..3f4435f 100644 --- a/fargate-services/fargate-endpoints-catalog.yaml +++ b/fargate-services/fargate-endpoints-catalog.yaml @@ -189,7 +189,7 @@ Resources: Matcher: # HttpCode: 200-299 HttpCode: 200-299,404 # Civic Devops issue #254 - HealthCheckIntervalSeconds: 10 + HealthCheckIntervalSeconds: 600 HealthCheckPath: !Ref HealthCheckPathName HealthCheckProtocol: HTTP HealthCheckTimeoutSeconds: 5 diff --git a/fargate-services/fargate-frontend.yaml b/fargate-services/fargate-frontend.yaml index 7b3a318..e40dfa2 100644 --- a/fargate-services/fargate-frontend.yaml +++ b/fargate-services/fargate-frontend.yaml @@ -179,7 +179,7 @@ Resources: TargetType: ip Matcher: HttpCode: 200-299 - HealthCheckIntervalSeconds: 45 + HealthCheckIntervalSeconds: 600 HealthCheckPath: !Ref HealthCheckPathName HealthCheckProtocol: HTTP HealthCheckTimeoutSeconds: 40 diff --git a/services/homeless-service/service.yaml b/services/homeless-service/service.yaml index f78eb59..133c8df 100644 --- a/services/homeless-service/service.yaml +++ b/services/homeless-service/service.yaml @@ -116,7 +116,7 @@ Resources: Protocol: HTTP Matcher: HttpCode: 200-299 - HealthCheckIntervalSeconds: 45 + HealthCheckIntervalSeconds: 600 HealthCheckPath: /homeless/ HealthCheckProtocol: HTTP HealthCheckTimeoutSeconds: 40 diff --git a/services/housing-affordability-service/service.yaml b/services/housing-affordability-service/service.yaml index 8ade5ce..ee56363 100644 --- a/services/housing-affordability-service/service.yaml +++ b/services/housing-affordability-service/service.yaml @@ -96,7 +96,7 @@ Resources: Protocol: HTTP Matcher: HttpCode: 200-299 - HealthCheckIntervalSeconds: 45 + HealthCheckIntervalSeconds: 600 HealthCheckPath: /housing-affordability/ HealthCheckProtocol: HTTP HealthCheckTimeoutSeconds: 40 diff --git a/services/transport-service/service.yaml b/services/transport-service/service.yaml index c6be44f..a7e1194 100644 --- a/services/transport-service/service.yaml +++ b/services/transport-service/service.yaml @@ -116,7 +116,7 @@ Resources: Protocol: HTTP Matcher: HttpCode: 200-299 - HealthCheckIntervalSeconds: 45 + HealthCheckIntervalSeconds: 600 HealthCheckPath: /transport/ HealthCheckProtocol: HTTP HealthCheckTimeoutSeconds: 40