Search code examples
taskmesosslavemarathon

Is there a limit of the number of tasks that can be launched by Mesos on a slave?


I am currently using Mesos + Marathon for the test.

When I launch a lot of tasks with command ping 8.8.8.8, at one point, slaves cannot launch a task any more. So I checked out stderr of sandbox, then it shows

Failed to initialize, pthread_create

I launched tasks with 0.00001 cpus and 0.00001 mems, so enough resources to launch a task remained in slaves.

Is there a limit of the number of tasks that can be launched by Mesos on a slave?


Solution

  • My first guees would be you are hitting a ulimits limit on your slaves. Can you try the following:

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

    Btw: If you just want to launch dummy tasks I would probably use sleep 3000 or something like that.

    Hope this helps Joerg