From 1fc2b159c512e9c50ad8d7e9ed0d4d6ddfac8422 Mon Sep 17 00:00:00 2001 From: Tony Date: Wed, 19 Jun 2019 13:44:09 +0900 Subject: [PATCH] add `HealthCheckGracePeriodSeconds` When `PrismaService` deployed, ELB checks the health of `PrismaService` everytime. But, `PrismaService` needs a little time to healthy. So, `PrismaService` repeats creation and deletion until health check timing is perfect. In this situation, if add `HealthCheckGracePeriodSeconds: 30` in `PrismaService`, It resolves health check timing issue. https://github.com/prisma/prisma-templates/issues/28 --- aws/fargate.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/aws/fargate.yml b/aws/fargate.yml index 5491b81..5c03990 100644 --- a/aws/fargate.yml +++ b/aws/fargate.yml @@ -304,6 +304,7 @@ Resources: DeploymentConfiguration: MaximumPercent: 200 MinimumHealthyPercent: 50 + HealthCheckGracePeriodSeconds: 30 TaskDefinition: !Ref TaskDefinition LoadBalancers: - ContainerName: prisma-container