-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature suggestion for ECS Patterns: Time based service scaling construct #3638
Comments
This could be partially addressed by first implementing an |
Why does the scheduled scaling that Application AutoScaling support not suffice? |
I think that only target tracking and step scaling are supported via Application Auto Scaling for the moment: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-auto-scaling.html |
Actually it looks from the AWS Auto Scaling docs like ECS services are also supported, so it should be possible with the default Application AutoScaling. There is an example in the official docs for the commandline:
|
This is actually pretty easy to do with an extra couple lines. Not sure a new construct would be valuable here, an example in the examples repo as well as the README might be enough. Something along the lines of:
Thoughts? @rix0rrr @nathanpeck |
Added to README: #5079 |
The pattern for creating a service that scales according to a time schedule is quite complicated, requiring at least two CloudWatch Events and a Lambda function: https://aws.amazon.com/premiumsupport/knowledge-center/ecs-time-based-scaling/
This would make a nice pattern in ecs-patterns to more easily abstract the creation of a service that can scale down during the night but scale up during business hours
The text was updated successfully, but these errors were encountered: