Re: Why I always get No master is currently leading ... at master:port 5050

2014-10-01 Thread Yan Xu
'20141001-000931-218235146-5050-13321-' Master: I1001 00:27:31.279867 13563 hierarchical_allocator_process.hpp:442] Added slave 20140930-135338-201457930-5050-13549-0 (ucs02) with cpus(*):8; mem(*):6845; disk(*):9642; ports(*):[31000-32000] (and cpus(*):8; mem(*):6845; disk(*):9642; ports

Re: running mysql on mesos, marathon, docker

2014-10-01 Thread Zia Bhatti
With mesos .20 and marathon .71 and using docker containers, the method that works for me is to specify no ports in the json task spec: { container: { type: DOCKER, docker: { image: johncosta/redis }, volumes : [] }, id: redis-server, instances: 1, cpus: 0.5,

Mesos Slave gets registered with lower memory than available

2014-10-01 Thread Stefan Eder
Hi, I'm relatively new to Mesos and trying to setup a cluster for Jenkins slaves. Currently I have three machines running master, slave and zookeepers and one only running a slave. Everything works fine so far, except that the slaves registered on the master have a lover memory value than

Re: Mesos Slave gets registered with lower memory than available

2014-10-01 Thread Tim Chen
Hi Stefan, Yes it's a feature where we leave some space on each slave and not fully allocate all the memory and cpu. You can override how much resource your slave advertises by passing in the --resources flag when you start your slave. Tim On Wed, Oct 1, 2014 at 9:22 AM, Stefan Eder

Re: Mesos Slave gets registered with lower memory than available

2014-10-01 Thread Vinod Kone
Stefan, mind filing a ticket http://VirtualChannel about the documentation gap? On Wed, Oct 1, 2014 at 9:27 AM, Tim Chen t...@mesosphere.io wrote: Hi Stefan, Yes it's a feature where we leave some space on each slave and not fully allocate all the memory and cpu. You can override how much

Re: Release of jesos 1.0 - pure java bindings for Apache Mesos

2014-10-01 Thread Tim St Clair
Thanks Henning! - Original Message - From: Henning Schmiedehausen henn...@schmiedehausen.org To: mesos d...@mesos.apache.org, user@mesos.apache.org Sent: Tuesday, September 30, 2014 10:31:02 PM Subject: Release of jesos 1.0 - pure java bindings for Apache Mesos Hi, I am happy

Re: Task Reconciliation [MESOS-1453]

2014-10-01 Thread Benjamin Mahler
Updated timestamps will be generated. On Tue, Sep 30, 2014 at 6:21 AM, Whitney Sorenson wsoren...@hubspot.com wrote: That makes sense and I suppose your first sentence was the real summary/confirmation of the change in 0.20 that I was looking for. A quick question - can we trust that the

Mesos Compilation error

2014-10-01 Thread Diptanu Choudhury
Hi Guys, We are trying to build Mesos 0.20.1 and getting the following compilation error - In file included from ./linux/routing/filter/ip.hpp:36:0, from ./slave/containerizer/isolators/network/port_mapping.hpp:42, from

Mesos 0.20.1 still using -net=host when launching Docker containers

2014-10-01 Thread Andy Grove
Hi, I'm making better progress but have run into another issue that I need help tracking down. I've actually packaged up my code in a github repo now and will be writing up a tutorial on this once I have everything working. https://github.com/codefutures/mesos-docker-tutorial The README.md

Re: Mesos Compilation error

2014-10-01 Thread Jie Yu
I think this is a bug. We forgot to include that header file in libmesos_no_3rdparty_la_SOURCES. Could you please open a ticket? To workaround, you can checkout the source from git using tag 0.20.1. - Jie On Wed, Oct 1, 2014 at 12:46 PM, Diptanu Choudhury dipta...@gmail.com wrote: Hi Guys,

Re: Mesos 0.20.1 still using -net=host when launching Docker containers

2014-10-01 Thread Andy Grove
I managed to resolve this thanks to code completion hints in my IDE. I needed to configure bridge networking: dockerInfoBuilder.setNetwork(Protos.ContainerInfo.DockerInfo.Network.BRIDGE); I'd recommend adding this to the documentation as most people will probably expect this to be the default

Re: Mesos Compilation error

2014-10-01 Thread Diptanu Choudhury
Thanks, opening a ticket now. So I am trying to compile from - https://github.com/apache/mesos/archive/0.20.1.tar.gz Hopefully this would work. Wondering how did it work for others? On Wed, Oct 1, 2014 at 12:59 PM, Jie Yu yujie@gmail.com wrote: Just committed a fix to the master. On

Re: Mesos Compilation error

2014-10-01 Thread Diptanu Choudhury
Created - https://issues.apache.org/jira/browse/MESOS-1855 On Wed, Oct 1, 2014 at 1:20 PM, Diptanu Choudhury dipta...@gmail.com wrote: Thanks, opening a ticket now. So I am trying to compile from - https://github.com/apache/mesos/archive/0.20.1.tar.gz Hopefully this would work. Wondering how

Lifecycle of the Mesos Driver

2014-10-01 Thread Diptanu Choudhury
Hi, In our Titan Framework, when a scheduler instance looses leadership, because of zookeeper connectivity etc, we stop the Mesos driver by calling driver.stop(true) And if the same instance gets leadership back again, we call driver.start(). Note that the driver instance remains the same, as in

Re: Mesos 0.20.1 still using -net=host when launching Docker containers

2014-10-01 Thread Vinod Kone
On Wed, Oct 1, 2014 at 12:54 PM, Andy Grove andy.gr...@codefutures.com wrote: I'd recommend adding this to the documentation as most people will probably expect this to be the default behavior. I'd also be happy to contribute this example code to be shipped with Mesos if there's any interest

Re: Mesos 0.20.1 still using -net=host when launching Docker containers

2014-10-01 Thread Tim St Clair
inline below - From: Andy Grove andy.gr...@codefutures.com To: user@mesos.apache.org Sent: Wednesday, October 1, 2014 2:47:54 PM Subject: Mesos 0.20.1 still using -net=host when launching Docker containers Hi, I'm making better progress but have run into another issue that I need help

Re: Mesos 0.20.1 still using -net=host when launching Docker containers

2014-10-01 Thread Timothy Chen
Sorry for the documentation, I didn't update the docs as part of 0.20.1 which we added the network modes. Please if you like submit a patch and I can help submit it. Tim On Oct 1, 2014, at 2:25 PM, Tim St Clair tstcl...@redhat.com wrote: inline below - From: Andy Grove

Re: Mesos Compilation error

2014-10-01 Thread Diptanu Choudhury
The compilation failed once again even when building from the 0.20.1 tag. linux/routing/.libs/libmesos_no_3rdparty_la-route.o linux/routing/route.cpp:23:26: fatal error: netlink/addr.h: No such file or directory #include netlink/addr.h Any idea? On Wed, Oct 1, 2014 at 1:25 PM, Diptanu

Re: Mesos Compilation error

2014-10-01 Thread Diptanu Choudhury
So I am guessing that header comes from libnl, we have libnl 3.2.25 installed on our build slave and the configure went through as well in the beginning of the build. On Wed, Oct 1, 2014 at 2:32 PM, Diptanu Choudhury dipta...@gmail.com wrote: The compilation failed once again even when building

Re: Mesos Compilation error

2014-10-01 Thread Jie Yu
Yeah, the header is from libnl3. Can you post the location where your libnl3 headers are installed? - Jie On Wed, Oct 1, 2014 at 2:40 PM, Diptanu Choudhury dipta...@gmail.com wrote: So I am guessing that header comes from libnl, we have libnl 3.2.25 installed on our build slave and the

Re: Mesos Compilation error

2014-10-01 Thread Diptanu Choudhury
So my libnl3 headers are installed in - /usr/local/include/libnl3/netlink I had to compile libnl3 from source and do a make install because the ubuntu trusty package repo didn't have the libnl3 3.2.25, but had some older version. Any idea how I could fix it? On Wed, Oct 1, 2014 at 2:44 PM, Jie

Re: Mesos Compilation error

2014-10-01 Thread Jie Yu
Hum, we expect libnl3 headers to be installed under /usr/include/libnl3: On Wed, Oct 1, 2014 at 2:51 PM, Diptanu Choudhury dipta...@gmail.com wrote: So my libnl3 headers are installed in - /usr/local/include/libnl3/netlink I had to compile libnl3 from source and do a make install because the

Re: Mesos Compilation error

2014-10-01 Thread Jie Yu
configure.ac: LIBNL_CFLAGS=-I/usr/include/libnl3 Is it possible to install your libnl3 to --prefix=/usr ? On Wed, Oct 1, 2014 at 3:06 PM, Jie Yu yujie@gmail.com wrote: Hum, we expect libnl3 headers to be installed under /usr/include/libnl3: On Wed, Oct 1, 2014 at 2:51 PM, Diptanu

ApacheCon EU - Mesos Talk

2014-10-01 Thread Tim St Clair
Greetings Folks - I'm on the docket for ApacheCon EU, and was planning on giving a state-of-the-state talk for Mesos seeing how I didn't see others on the schedule. I'd be happy to collaborate on the content if there are certain features folks wanted to highlight, or if you're just

Re: Mesos 0.20.1 still using -net=host when launching Docker containers

2014-10-01 Thread Tim Chen
Hi Andy, The docs is sitting at the docs folder in the source tree, and there is a docker containerization doc markdown file. Simply modify it and put a patch on reviewboard, and assign to the mesos group and me. Let me know if you need more specific steps around this. Tim On Wed, Oct 1, 2014