remind101 / empire

A PaaS built on top of Amazon EC2 Container Service (ECS)
BSD 2-Clause "Simplified" License
2.69k stars 158 forks source link

Support placement constraints/strategy in Procfile #1057

Open ejholmes opened 7 years ago

ejholmes commented 7 years ago

We don't have an issue tracking this yet. Placement constraints are a great way to specify the machine/security requirements for an application http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html

This should be supported in the Procfile with something like this:

web:
  placement:
    constraints:
      - type: memberOf
        expression: "attribute:ecs.instance-type =~ t2.*"
    strategy:
      - type: spread
        field: "attribute:ecs.availability-zone"
gposton commented 7 years ago

+1 on this, we see response time increases when stacking web containers on the same host w/ ALBs, but would like to continue to use ALB's for other reasons.