简体   繁体   中英

How to scale Docker containers hosted on AWS ECS programmatically?

I have created a microservice cluster on AWS ECS with four microservices, each one with its Docker images. But looking in the ESC cli I cannot find a way to scale these images.

My goal is to create an application responsible to scale this microservice, but I could not find a way to execute it, does anyone has any clue how can I scale the images?

Thanks.

You need to change the "desired count" in the ECS service. You would do this programmatically through the UpdateService API.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM