From 3cfcd9f1155e7f89084fa0553d54501ebe510645 Mon Sep 17 00:00:00 2001 From: vladsha-dev Date: Mon, 13 May 2024 11:47:51 +0200 Subject: [PATCH] Reduce the number of ECS tasks from 8 to 6 for the staging env (#199) In response to recent stability observations of the staging environment, resource allocation has been optimized by reducing the number of ECS tasks from 8 to 6 for the Django app instances, thus maintaining system stability. Note: Starting April 23rd 2024, the staging environment has 6 ECS tasks for the Django app instances that are up and running, with no detected outages. --- deployment/environments/terraform-staging.tfvars | 2 +- doc/release/RELEASE-NOTES.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/deployment/environments/terraform-staging.tfvars b/deployment/environments/terraform-staging.tfvars index 217e4c336..b0b03521c 100644 --- a/deployment/environments/terraform-staging.tfvars +++ b/deployment/environments/terraform-staging.tfvars @@ -21,7 +21,7 @@ rds_database_name = "opensupplyhub" rds_multi_az = false rds_storage_encrypted = true -app_ecs_desired_count = "8" +app_ecs_desired_count = "6" app_ecs_deployment_min_percent = "100" app_ecs_deployment_max_percent = "400" app_fargate_cpu = "1024" diff --git a/doc/release/RELEASE-NOTES.md b/doc/release/RELEASE-NOTES.md index 58f244b09..8ad40a862 100644 --- a/doc/release/RELEASE-NOTES.md +++ b/doc/release/RELEASE-NOTES.md @@ -44,6 +44,7 @@ database: * [OSDEV-1002](https://opensupplyhub.atlassian.net/browse/OSDEV-1002) - The following changes have been done: * Prepared initial AWS infrastructure via Terraform for the Logstash service, including configuring AWS EFS storage to save the pointer of the last run for the jdbc plugin. Essentially, after deploying updated Terraform code to an environment, ECS task definition, ECR repository, ECS service, along with EFS storage, will be set up for Logstash to function. * Moved the PoC solution of the Logstash + Elasticsearch setup to the repository to avoid losing it. Further work is needed as the solution requires development and is not functioning smoothly. +* In response to recent stability observations of the staging environment, resource allocation has been optimized by reducing the number of ECS tasks from 8 to 6 for the Django app instances, thus maintaining system stability. ### Bugfix