mesosphere / marathon

Deploy and manage containers (including Docker) on top of Apache Mesos at scale.
https://mesosphere.github.io/marathon/
Apache License 2.0
4.07k stars 845 forks source link

[Question] Marathon resources role behavior #2871

Closed fengyuleidian0615 closed 8 years ago

fengyuleidian0615 commented 8 years ago

I'm trying to understand marathon resource role behavior by experimenting with following config. slave1: set with default_role as "busybox" slave2: set with default_role as "ubuntu" master: marathon-0.13.0-1.0.440.el7.x86_64

Test1:

Test2:

Is above behavior by design or I'm mis-configured somewhere? My understanding is: marathon will not bound with any particular role, it will schedule application with defined role to the corresponding resources, but from the test it's opposite.

thanks!

gkleiman commented 8 years ago

Until MESOS-1763 is fixed, Marathon can register to Mesos using just one role.

You might be able to achieve what you're trying to do using Mesos Agent Attributes and Marathon Constraints.

fengyuleidian0615 commented 8 years ago

@gkleiman dunk!