Skip to content

Commit

Permalink
fix: change scale in to the longest expected processing time of 2 hou…
Browse files Browse the repository at this point in the history
…rs for scale-in protection in cases with just one instance, one video
  • Loading branch information
danellecline committed Nov 8, 2023
1 parent 1694f47 commit 886e17b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepsea_ai/cdk/app/lib/ecs_task_autoscaling.ts
Expand Up @@ -178,7 +178,7 @@ export class AutoScalingTaskStack extends cdk.Stack {
})

const scaleInQueueMetric = videoSqsQueue.metricApproximateNumberOfMessagesVisible({
period: cdk.Duration.minutes(60),
period: cdk.Duration.minutes(120),
statistic: "Average"
})

Expand Down

0 comments on commit 886e17b

Please sign in to comment.