【问题标题】:Is there a limit of the number of tasks that can be launched by Mesos on a slave?Mesos 在 slave 上可以启动的任务数量是否有限制?
【发布时间】:2015-09-17 07:59:49
【问题描述】:

我目前正在使用 Mesos + Marathon 进行测试。

当我使用命令ping 8.8.8.8 启动大量任务时,有一次,从属服务器无法再启动任务。于是我查了out stderr的沙盒,然后就显示了

初始化失败,pthread_create

我用 0.00001 cpu 和 0.00001 mems 启动了任务,因此启动任务的足够资源保留在 slave 中。

Mesos 在 slave 上可以启动的任务数量是否有限制?

【问题讨论】:

  • 可以并行启动的 icmp 请求数量是否有限制?如果你使用不同的命令呢?
  • @JoSSte 即使我使用“while true; do sleep 1; done;”,问题也是一样的。命令。

标签: task mesos slave marathon


【解决方案1】:

我的第一个猜测是你的奴隶达到了ulimits 限制。 您可以尝试以下方法吗:

#Check max number of threads: $ ulimit -u 1024

顺便说一句:如果你只是想启动虚拟任务,我可能会使用sleep 3000 或类似的东西。

希望这会有所帮助 约尔格

【讨论】:

  • 命令“ulimit -u”的结果是1545932。这个问题发生时,总进程数是3074。我还不能解决。
猜你喜欢
  • 2020-12-02
  • 1970-01-01
  • 2017-10-22
  • 1970-01-01
  • 2013-05-03
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多