Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Scale In and Out ECS tasks based on external parameter

Is it possible to scale AWS ECS tasks based on an external parameter?

I have hosted a service on AWS ECS and it is running with 2 ECS tasks. I want to scale-out the tasks based on some count that I get from a different service.

Would it possible for AWS ECS to scale the tasks based on the count that is returned from an external parameter/service?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Where do I have to publish this count to auto scale the containers?

>Solution :

Yes, you can do this through Application Auto Scaling for ECS. Specifically you can setup target tracking scaling policy with a custom CloudWatch metric.

So basically, you would have to create a custom metric based on the data from the external provider.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading