Explicity setting max percent value on nginx

This commit is contained in:
shockrah 2023-10-30 22:28:38 -07:00
parent 49be08d169
commit 175ae5f1e5
2 changed files with 13 additions and 0 deletions

View File

@ -43,6 +43,10 @@ resource "aws_ecs_service" "beta_reverse_proxy" {
task_definition = aws_ecs_task_definition.beta.arn
desired_count = 1
launch_type = "FARGATE"
# Allowing doubling over when we request a new container for quick refreshes
# to the ecs service allowing for super fast and 0 down time deployments
deployment_maximum_percent = 200
deployment_minimum_healthy_percent = 100
load_balancer {
target_group_arn = var.lb_target_group
container_name = local.nginx_name

View File

@ -1,5 +1,14 @@
# Fargate configuration
## Blue/Green Deployments
Services such as `nginx/beta` ( which serves static content ) are deployed &
updated using a blue green deployment method which is facilitated by allowing
overflow containers to spawn and replace older containers. This is most common
for `nginx` because we often want to update content stored in S3 however
the container itself will not refresh for sometime so we can force a refresh
and get content out much faster this way.
## Alpha Cluster
### nginx/beta