ECS

ECS Components

Task Placement Strategy

Determine how the tasks will be placed between instances. ECS supports 3 types of Task Placement Strategies

  1. binpack: Placed task by using least amount of CPU or memory. This minimize the number of instances are being used
  2. random: Place tasks randomly. Make sure tasks are scheduled in instances with enough resources.
  3. spread: Placed tasks based on specified value like instance id, host, az etc. For example, if the field is instanceId the task will be distributed evenly in different instances. Another example, if the field is az, the tasks will be evenly distributed among availability zones.