From c008cf8337a6287d7342331b250db69b2fedacbf Mon Sep 17 00:00:00 2001 From: Peter Ovchinnikov Date: Mon, 4 Nov 2024 19:44:33 +0200 Subject: [PATCH] [OSDEV-1171] Decrease RDS instance type for staging and test (#399) - RDS instances for `staging` and `test` have beed decreased to `db.t3.large` --- deployment/environments/terraform-staging.tfvars | 2 +- deployment/environments/terraform-test.tfvars | 2 +- doc/release/RELEASE-NOTES.md | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/deployment/environments/terraform-staging.tfvars b/deployment/environments/terraform-staging.tfvars index f3a7aa3ef..cec644e83 100644 --- a/deployment/environments/terraform-staging.tfvars +++ b/deployment/environments/terraform-staging.tfvars @@ -14,7 +14,7 @@ bastion_instance_type = "t3.nano" rds_allocated_storage = "128" rds_engine_version = "12" rds_parameter_group_family = "postgres12" -rds_instance_type = "db.t3.xlarge" +rds_instance_type = "db.t3.large" rds_database_identifier = "opensupplyhub-enc-stg" rds_database_name = "opensupplyhub" rds_multi_az = false diff --git a/deployment/environments/terraform-test.tfvars b/deployment/environments/terraform-test.tfvars index 682671db0..2cbed5d08 100644 --- a/deployment/environments/terraform-test.tfvars +++ b/deployment/environments/terraform-test.tfvars @@ -16,7 +16,7 @@ bastion_instance_type = "t3.nano" rds_allocated_storage = "128" rds_engine_version = "12" rds_parameter_group_family = "postgres12" -rds_instance_type = "db.t3.2xlarge" +rds_instance_type = "db.t3.large" rds_database_identifier = "opensupplyhub-enc-tst" rds_database_name = "opensupplyhub" rds_multi_az = false diff --git a/doc/release/RELEASE-NOTES.md b/doc/release/RELEASE-NOTES.md index 3e7a70c7a..4d4f18cf6 100644 --- a/doc/release/RELEASE-NOTES.md +++ b/doc/release/RELEASE-NOTES.md @@ -24,6 +24,7 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html * The OpenSearch version has been increased to 2.15. * [OSDEV-1335](https://opensupplyhub.atlassian.net/browse/OSDEV-1335) - The new "moderation events" Logstash pipeline has been configured and implemented to collect moderation event data from the current PostgreSQL database and save it to OpenSearch. This setup allows for fast searches on the moderation events data. * [OSDEV-1387](https://opensupplyhub.atlassian.net/browse/OSDEV-1387) - The SQL query for generating tiles from PostgreSQL+PostGIS has been reimplemented to avoid using the JOIN + GROUP BY clause. This change reduces the number of subqueries and their asymptotic complexity. Additionally, an option to set an upper limit on facility counts in the 'count' clause has been introduced, capped at 100, which doubles the query's performance. Throttling has been removed for tile generation endpoints. +* [OSDEV-1171](https://opensupplyhub.atlassian.net/browse/OSDEV-1171) - RDS instances for `staging` and `test` have beed decreased to `db.t3.large` ### Bugfix * [OSDEV-1335](https://opensupplyhub.atlassian.net/browse/OSDEV-1335) - Fixed the assertion in the test for the `country.rb` filter of the "production locations" Logstash pipeline. The main issue was with the evaluation of statements in the Ruby block. Since only the last statement is evaluated in a Ruby block, all the checks were grouped into one chain of logical statements and returned as a `result` variable at the end.