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,