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 fo

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 /var/run

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 the following for the deta

How to tell master which ip to connect.

2015-10-27 Thread Xiaodong Zhang
Hi teams: My scenarios is like this: My master nodes were deployed in AWS. My slaves were in AZURE.So they communicate via public ip. I got trouble when slaves try to register to master. Now slaves can get master’s public ip address,and can send register request.But they can only send there pri

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 wrote: > try add -

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 > communicate via public

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 strange that > /cgroup is empt

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 wrote: > >> :(. It does not work. Both l

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 worked by adding -v /sys:/sys, but not sure whethe

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 mailto:haosd...@gmail.com>> 答复: "user@mesos.apache.org

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 https://github.com/apache/mesos/blob/master/

Re: How to tell master which ip to connect.

2015-10-27 Thread Xiaodong Zhang
That is helpful. Thanks a lot. 发件人: haosdent mailto:haosd...@gmail.com>> 答复: "user@mesos.apache.org" mailto:user@mesos.apache.org>> 日期: 2015年10月28日 星期三 上午10:49 至: user mailto:user@mesos.apache.org>> 主题: Re: How to tell master which ip to connect. > SSL/TLS support w

Re: How to tell master which ip to connect.

2015-10-27 Thread Anindya Sinha
On Tue, Oct 27, 2015 at 7:43 PM, Xiaodong Zhang wrote: > It works! Thanks a lot. > Ok. So we should expose advertise_ip and advertise_port as command line options for mesos-slave as well (instead of using the environment variables)? Opened https://issues.apache.org/jira/browse/MESOS-3809. > >