Skip to content

Commit

Permalink
fix: increase redis cache size (#1648)
Browse files Browse the repository at this point in the history
  • Loading branch information
RohinBhargava authored Oct 10, 2024
1 parent 912cb55 commit ba170fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions servers/fdr-deploy/bin/fdr-deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ async function main() {
memory: 1024,
cpu: 512,
cacheName: "FernDocsCache3",
cacheNodeType: "cache.r7g.large",
},
{
env: { account: "985111089818", region: "us-east-1" },
Expand All @@ -55,6 +56,7 @@ async function main() {
redisClusteringModeEnabled: true,
cpu: 2048,
cacheName: "FernDocsCache5",
cacheNodeType: "cache.r7g.xlarge",
},
{
env: { account: "985111089818", region: "us-east-1" },
Expand Down
3 changes: 2 additions & 1 deletion servers/fdr-deploy/scripts/fdr-deploy-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ interface FdrStackOptions {
cpu: number;
memory: number;
cacheName: string;
cacheNodeType: string;
}

export class FdrDeployStack extends Stack {
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit ba170fa

Please sign in to comment.