简体   繁体   中英

ECS task definition for spread not binpack

How do I set a task definition to balance containers on different nodes instead of filling up one first (binpack).

I can set placement "constraints" in a task definition but I see no option for "spread"

You need to specify task placement strategy, not constraint. This can be done in create service or run task. Here's the AWS documentation on this - https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-strategies.html

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