Skip to content

Commit

Permalink
(fix): scale fdr based on request account (#800)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi authored May 5, 2024
1 parent 353d26d commit 1b42955
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions servers/fdr-deploy/scripts/fdr-deploy-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,11 @@ export class FdrDeployStack extends Stack {
if (options.redis) {
const scalableTaskCount = fargateService.service.autoScaleTaskCount({
maxCapacity: options.maxTaskCount,
minCapacity: options.desiredTaskCount,
});
scalableTaskCount.scaleOnCpuUtilization("CpuUtilizationScaling", {
targetUtilizationPercent: 50,
scalableTaskCount.scaleOnRequestCount("RequestCountScaling", {
targetGroup: fargateService.targetGroup,
requestsPerTarget: 1000,
});
}

Expand Down

0 comments on commit 1b42955

Please sign in to comment.