ContainerSolutions / mesos-starter

https://container-solutions.com/mesos-starter/
45 stars 10 forks source link

Add support for orchestration "strategy" and "filter" #16

Open philwinder opened 8 years ago

philwinder commented 8 years ago

Applications have different requirements to orchestrate the application. For example, some applications need to spread across hosts, whereas others want to maximise instance usage.

To do this, follow the precident set by Swarm to implement a Strategy (i.e. how to rank/sort hosts) and a filter (how to position). https://docs.docker.com/swarm/scheduler/strategy/ https://docs.docker.com/swarm/scheduler/filter/

*See swarm filter page for more options. My main use case is to only allow a single task on each host. So I would enter something like: mesos.resources.filter: executorName!=elasticsearch-task