0

In a Mesos ecosystem(master + scheduler + slave), with the master executing tasks on the slaves, is there a configuration that allows modifying number of tasks executed on each slave?

Say for example, currently a mesos master runs 4 tasks on one of the slaves(each task is using 1 cpu). Now, we have 4 slaves(4 cores each) and except for this one slave the other three are not being used.
So, instead of this execution scenario, I'd rather prefer the master running 1 task on each of the 4 slaves.

I found this stackoverflow question and these configurations relevant to this case, but still not clear on how to use the --isolation=VALUE or --resources=VALUE configuration here.

Thanks for the help!

4

1 回答 1

0

通过将以下属性添加到 mesos 代理的启动脚本中,能够减少一次在单个主机上执行的任务数量。
--resources="cpus:<<value>>"--cgroups_enable_cfs=true

然而,这并没有解决并发调度问题,即要求每个代理同时执行一个任务。为此,需要查看上面建议的调度程序代码。

于 2020-09-03T15:15:59.047 回答