You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mesos.apache.org by Qi Feng <At...@outlook.com> on 2016/07/21 10:35:42 UTC

max_executors_per_agent does not take effect on mesos docker executor

I build mesos-1.0.0-rc2 with network isolator. And try to set max_executors_per_agent=10 to test if docker task would be limited in 10 on every mesos agent. In fact, my case is launching 40 tasks (0.1core 0.1M mem each) on three different agent machine, and both agent launched more than 10 tasks.


I found mesos master hold executor data in a haspmap, and the key is ExecutorID.

https://github.com/apache/mesos/blob/1.0.x/src/master/master.hpp#L306

https://github.com/apache/mesos/blob/1.0.x/src/master/master.cpp#L5747


Then I get state.json from mesos master to looking for any executor information. Then I found executer_id is empty string in taskInfo json. Is there any relation between the empty executor id and max_executors_per_agent issue?


My OS is centos 7.2.


Thanks for any reply [😊] .


Re: max_executors_per_agent does not take effect on mesos docker executor

Posted by Jie Yu <yu...@gmail.com>.
Can you create a ticket on this? I think this might be a bug related to how
we handle command tasks.

- Jie

On Thu, Jul 21, 2016 at 3:35 AM, Qi Feng <At...@outlook.com> wrote:

> I build mesos-1.0.0-rc2 with network isolator. And try to set max_executors_per_agent=10
> to test if docker task would be limited in 10 on every mesos agent. In
> fact, my case is launching 40 tasks (0.1core 0.1M mem each) on three
> different agent machine, and both agent launched more than 10 tasks.
>
>
> I found mesos master hold executor data in a haspmap, and the key is
> ExecutorID.
>
> https://github.com/apache/mesos/blob/1.0.x/src/master/master.hpp#L306
>
> https://github.com/apache/mesos/blob/1.0.x/src/master/master.cpp#L5747
>
>
> Then I get state.json from mesos master to looking for any executor
> information. Then I found executer_id is empty string in taskInfo json. Is
> there any relation between the empty executor id and
> max_executors_per_agent issue?
>
>
> My OS is centos 7.2.
>
>
> Thanks for any reply [image: 😊].
>
>
>