From 2b95fd1cfedd1bd4f129bd10b8e13c0a45a797ee Mon Sep 17 00:00:00 2001 From: Daniel Roberts Date: Wed, 28 Jun 2023 15:33:24 -0400 Subject: [PATCH 1/2] Use maxmemory-policy=allkeys-lru on production redis --- environments/production/terraform.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/environments/production/terraform.yml b/environments/production/terraform.yml index e85efcd560..f64a79b725 100644 --- a/environments/production/terraform.yml +++ b/environments/production/terraform.yml @@ -608,6 +608,8 @@ elasticache_cluster: cache_node_type: "cache.r6g.2xlarge" cache_engine_version: "7.x" cache_prameter_group: "default.redis7" + params: + maxmemory-policy: 'allkeys-lru' automatic_failover: true transit_encryption: false at_rest_encryption: true From a6cdb0a9cf32b71c41c9a862d79788ccf558396a Mon Sep 17 00:00:00 2001 From: Daniel Roberts Date: Wed, 28 Jun 2023 15:35:29 -0400 Subject: [PATCH 2/2] Downsize production elasticache cluster to cache.r6g.xlarge --- environments/production/terraform.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/environments/production/terraform.yml b/environments/production/terraform.yml index f64a79b725..57b4968406 100644 --- a/environments/production/terraform.yml +++ b/environments/production/terraform.yml @@ -605,7 +605,7 @@ elasticache: elasticache_cluster: create: yes - cache_node_type: "cache.r6g.2xlarge" + cache_node_type: "cache.r6g.xlarge" cache_engine_version: "7.x" cache_prameter_group: "default.redis7" params: