0

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?

user1438038
  • 5,821
  • 6
  • 60
  • 94
DHPark
  • 5
  • 3
  • could there be a limit to the number of icmp requests you can start in parallell? what if you use a different command? – JoSSte Sep 17 '15 at 08:45
  • @JoSSte The issue was same even if I use "while true; do sleep 1; done;" command. – DHPark Sep 18 '15 at 05:35

1 Answers1

2

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

js84
  • 3,676
  • 2
  • 19
  • 23
  • The result of command "ulimit -u" is 1545932. When that issue was happened, the number of total process was 3074. I can't resolve it yet. – DHPark Sep 18 '15 at 08:31