From ba170faac16305cb371dce93010a3761ac6aedc1 Mon Sep 17 00:00:00 2001 From: Rohin Bhargava Date: Thu, 10 Oct 2024 15:18:07 -0700 Subject: [PATCH] fix: increase redis cache size (#1648) --- servers/fdr-deploy/bin/fdr-deploy.ts | 2 ++ servers/fdr-deploy/scripts/fdr-deploy-stack.ts | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/servers/fdr-deploy/bin/fdr-deploy.ts b/servers/fdr-deploy/bin/fdr-deploy.ts index 6a5b9379dc..2bccbce413 100644 --- a/servers/fdr-deploy/bin/fdr-deploy.ts +++ b/servers/fdr-deploy/bin/fdr-deploy.ts @@ -34,6 +34,7 @@ async function main() { memory: 1024, cpu: 512, cacheName: "FernDocsCache3", + cacheNodeType: "cache.r7g.large", }, { env: { account: "985111089818", region: "us-east-1" }, @@ -55,6 +56,7 @@ async function main() { redisClusteringModeEnabled: true, cpu: 2048, cacheName: "FernDocsCache5", + cacheNodeType: "cache.r7g.xlarge", }, { env: { account: "985111089818", region: "us-east-1" }, diff --git a/servers/fdr-deploy/scripts/fdr-deploy-stack.ts b/servers/fdr-deploy/scripts/fdr-deploy-stack.ts index 7d48b57726..29782ba212 100644 --- a/servers/fdr-deploy/scripts/fdr-deploy-stack.ts +++ b/servers/fdr-deploy/scripts/fdr-deploy-stack.ts @@ -44,6 +44,7 @@ interface FdrStackOptions { cpu: number; memory: number; cacheName: string; + cacheNodeType: string; } export class FdrDeployStack extends Stack { @@ -165,7 +166,7 @@ export class FdrDeployStack extends Stack { numCacheShards: 1, numCacheReplicasPerShard: 0, clusterMode: "enabled", - cacheNodeType: "cache.r7g.large", + cacheNodeType: options.cacheNodeType, envType: environmentType, env: props?.env, ingressSecurityGroup: fdrSg,