Re: what's the best practice when set work_dir bakced by multiple disks

2015-10-27 Thread Du, Fan
I thought about device mapper and RAID, it seems RAID looks a good way to try first. On 2015/10/26 16:46, haosdent wrote: Or suppose you mount /dev/sdb in /mnt/sdb, you could mount /dev/sdc to /mnt/sdb/slaves. And use /mnt/sdb as your work_dir. But it still waste disk resource because slaves

Re: How to enable docker container in Mesos-Agent within a Docker

2015-10-27 Thread haosdent
try add -e MESOS_LAUNCHER=posix On Oct 28, 2015 9:49 AM, "Klaus Ma" wrote: > Hi team, > > I'd like to start a mesos-agent in Docker with docker container, I can run > sleep docker within a ubuntu docker with following args; but I can not > start an Mesos Agent. Refer to

How to enable docker container in Mesos-Agent within a Docker

2015-10-27 Thread Klaus Ma
Hi team, I'd like to start a mesos-agent in Docker with docker container, I can run sleep docker within a ubuntu docker with following args; but I can not start an Mesos Agent. Refer to the following for the detail of output: $sudo docker run --privileged --net=host -v /cgroup:/cgroup -v

Re: How to enable docker container in Mesos-Agent within a Docker

2015-10-27 Thread haosdent
could use `cat /proc/self/mountinfo` to check this. On Wed, Oct 28, 2015 at 10:26 AM, haosdent wrote: > maybe it is because of you cgroup mount point is /sys/fs/cgroup, not > /cgroup > > On Wed, Oct 28, 2015 at 10:25 AM, Klaus Ma wrote: > >> It

Re: How to tell master which ip to connect.

2015-10-27 Thread Xiaodong Zhang
It works! Thanks a lot. Another question. Do masters and slaves communicate each other via a safety way?Is the data encrypted? I want to make sure deploy masters and slaves into different IaaS is PROD-READY. 发件人: haosdent > 答复:

Re: How to enable docker container in Mesos-Agent within a Docker

2015-10-27 Thread Klaus Ma
:(. It does not work. Both linux & posix are tested. And according to the description of launcher, linux is necessary for docker. It's strange that /cgroup is empty, but I can start mesos-slave with docker container outside the docker. On Wed, Oct 28, 2015 at 9:54 AM, haosdent

Re: How to tell master which ip to connect.

2015-10-27 Thread haosdent
Do you try `export LIBPROCESS_ADVERTISE_IP=xxx` and `LIBPROCESS_ADVERTISE_PORT` when start slave? On Wed, Oct 28, 2015 at 10:16 AM, Xiaodong Zhang wrote: > Hi teams: > > My scenarios is like this: > > My master nodes were deployed in AWS. My slaves were in AZURE.So they >

Re: How to tell master which ip to connect.

2015-10-27 Thread haosdent
> SSL/TLS support was added to libprocess in Mesos 0.23.0, which encypts the low-level communication that Mesos uses for network communication ? between Mesos components. Additionally, HTTPS support was added to the Mesos WebUI. I think you refer to ssl

Re: How to enable docker container in Mesos-Agent within a Docker

2015-10-27 Thread haosdent
maybe it is because of you cgroup mount point is /sys/fs/cgroup, not /cgroup On Wed, Oct 28, 2015 at 10:25 AM, Klaus Ma wrote: > It worked by adding -v /sys:/sys, but not sure whether any security > concern. > > On Wed, Oct 28, 2015 at 10:22 AM, Klaus Ma

Re: How to enable docker container in Mesos-Agent within a Docker

2015-10-27 Thread Klaus Ma
It worked by adding -v /sys:/sys, but not sure whether any security concern. On Wed, Oct 28, 2015 at 10:22 AM, Klaus Ma wrote: > :(. It does not work. Both linux & posix are tested. And according to the > description of launcher, linux is necessary for docker. It's

Re: How to tell master which ip to connect.

2015-10-27 Thread Xiaodong Zhang
That is helpful. Thanks a lot. 发件人: haosdent > 答复: "user@mesos.apache.org" > 日期: 2015年10月28日 星期三 上午10:49 至: user >