I have 3 mesos master nodes, and 87 mesos slave nodes. All the node's Operating System are Ubuntu 14.04. On each mesos slave node, I have installed docker. I have two different crawlers, each of them are build into a docker container. Now I launch them via marathon.
On mesos slave node, I didn't find the two crawler container running on the same node. each node only running one crawler.
But I want each node run the two crawler container at same time. How can I do it? (forgive my poor English grammer).
The following code is marathon launch json.
{
"container": {
"type": "DOCKER",
"docker": {
"image": "slyang/final_crawlerv19"
}
},
"id": "crawler-part",
"instances": "30",
"cpus": "0.5",
"mem": "150",
"uris": [],
"constraints": [["hostname", "UNIQUE"]],
"cmd": "ip=`wget http://ip.lustfield.net/ -O - -q`;echo $ip; sleep 20; echo $ip > /app/hostip;python user_info_fetcher.py part"
}