Re: Regarding Public slave and marathon-lb

2016-05-02 Thread Dhiraj Thakur
Thanks David, Instruction on that blog worked for me. -Dhiraj From: David Greenberg > Reply-To: "user@mesos.apache.org" > Date: Monday, 2 May 2016 7:06 pm To:

Re: How to use a complete host

2016-05-02 Thread Sharma Podila
This can't be achieved with the offer model as it stands today, unless you have only a single framework in the cluster. There is no visibility into what other resources are available on the agent which weren't offered to your framework. However, for the short term, you can use a hack to put in

Re: How to use a complete host

2016-05-02 Thread Jeff Schroeder
In addition to actually using roles, you might also consider subscribing to MESOS-4138, which will implement this idea in a generic way (but won't help you today). On Monday, May 2, 2016, Christoph Heer wrote: > Hi everyone, > > sometimes in my Mesos use-case it's

Status of MESOS-2533?

2016-05-02 Thread Jeff Schroeder
Some frameworks like Aurora use custom executors to distribute the healthchecks with the tasks. This allows the task to survive a network partition without the scheduler setting it to TASK_LOST. Marathon uses mesos-health-check for command based health checks, but does TCP and HTTP healthchecks

Re: Passing command trough configuration json

2016-05-02 Thread Evan Krall
Your command /usr/sbin/sshd -D && mkdir /tmp/test will run sshd in the foreground, wait until it finishes, and then run mkdir. Perhaps you want to put mkdir before sshd, since mkdir should complete quickly. On Mon, May 2, 2016 at 1:13 PM, Rayees Namathponnan wrote: > Hi

Passing command trough configuration json

2016-05-02 Thread Rayees Namathponnan
Hi All, In Docker file i have entry point ENTRYPOINT ["/usr/sbin/sshd", "-D"] I want to run run some command (eg : mkdir /tmp/test ) while staring the container, since you add command in configuration your default entry point wont work, so I added command like "/usr/sbin/sshd -D && mkdir

Re: How to install marathon-lb

2016-05-02 Thread Kamil Wokitajtis
Did you try to run docker command from shell? Does it work for you? Do you have also slave running on 131.154.96.27? In my case entry was "constraints": [["hostname", "CLUSTER", "master-1"]], because on host master-1 I have both master and slave running. If you don't have slave running on

Re: How to use a complete host

2016-05-02 Thread haosdent
It sounds like you could reserve resources by a role in that machine. And then your framework launched by that role. On Tue, May 3, 2016 at 1:57 AM, Christoph Heer wrote: > Hi everyone, > > sometimes in my Mesos use-case it's required to ensure that my own > framework

How to use a complete host

2016-05-02 Thread Christoph Heer
Hi everyone, sometimes in my Mesos use-case it's required to ensure that my own framework is able to schedule a task which consume all resources of a machine. Do you have some advises how to implement such a scheduler. Is there another scheduler which already implemented something similar?

Re: Offers to a framework

2016-05-02 Thread Joseph Wu
Both the Mesos master and Marathon have metrics that tell you how many offers have been sent, but not the contents of said offers. Marathon does not keep offers long enough for them to show up as "outstanding offers" in the Mesos UI. As far as I know, one way to get the offer contents is by

Re: Offers to a framework

2016-05-02 Thread haosdent
If you could modify the framework code, you could inject this login in `resourceOffers`. On Mon, May 2, 2016 at 9:46 PM, Vaibhav Khanduja wrote: > For a use-case, we need to know offers been sent to a registered > framework. For e.g. if we are using marathon as a

Re: How to install marathon-lb

2016-05-02 Thread Stefano Bianchi
Here it is: { "id": "marathon-lb", "volumes": [], "cpus": 1, "mem": 512, "instances": 1, "container": { "type": "DOCKER", "docker": { "image": "mesosphere/marathon-lb", "network": "HOST", "parameters": [ { "key": "env", "value":

Re: How to install marathon-lb

2016-05-02 Thread Kamil Wokitajtis
Please paste your modified marathon-lb.json file. Can you see any error messages in the marathon and mesos logs ? We are mapping ports 80, 9090,10004,10005, those need to be open. Docker command is as follows: docker run --privileged -e PORTS=9090 --net=host -p 80:80 -p 9090:9090

Re: How to install marathon-lb

2016-05-02 Thread Stefano Bianchi
Can you please tell me which is the correspondent marathon-lb.json docker command? 2016-05-02 16:55 GMT+02:00 Stefano Bianchi : > All those ports must be open? Because i am on openstack environment and i > need to know if there is something to open > > 2016-05-02 15:52

Re: How to install marathon-lb

2016-05-02 Thread Stefano Bianchi
All those ports must be open? Because i am on openstack environment and i need to know if there is something to open 2016-05-02 15:52 GMT+02:00 Stefano Bianchi : > i changed all but i see waiting app. > > 2016-05-02 15:26 GMT+02:00 Kamil Wokitajtis : >

Re: How to install marathon-lb

2016-05-02 Thread Stefano Bianchi
i changed all but i see waiting app. 2016-05-02 15:26 GMT+02:00 Kamil Wokitajtis : > I am using private docker registry (https://docs.docker.com/registry/). > In my case I can pull image from local repository installed on node > master-1 (master-1:5000/marathon-lb): >

Offers to a framework

2016-05-02 Thread Vaibhav Khanduja
For a use-case, we need to know offers been sent to a registered framework. For e.g. if we are using marathon as a framework, the master would send offers to it based on DRF as soon as a slave is available. The marathon would then accept the offer if it requires to start a job. Is there is way to

Re: How to install marathon-lb

2016-05-02 Thread Kamil Wokitajtis
I am using private docker registry (https://docs.docker.com/registry/). In my case I can pull image from local repository installed on node master-1 (master-1:5000/marathon-lb): "image": "master-1:5000/marathon-lb" If you don't have private registry, you have to pull image from the docker hub

Re: How to install marathon-lb

2016-05-02 Thread Stefano Bianchi
Thanks your your answer. I understood what you are telling me, just a thing, what you mean with docker registry? 2016-05-02 13:31 GMT+02:00 Kamil Wokitajtis : > Hi, > > Fastest way is to run marathon-lb docker image. > You have to update marathon-lb.json code below with

Regarding Public slave and marathon-lb

2016-05-02 Thread Dhiraj Thakur
Hi I have done the setup of dcos by following doc here https://dcos.io/docs/1.7/administration/installing/custom/cli/ I can't find any info on how can we mark any slave as public slave? Right now I have 7 slave deployed on cluster out of that 2 slave are on internet subnet and dcos is able to

Re: How to install marathon-lb

2016-05-02 Thread Kamil Wokitajtis
Hi, Fastest way is to run marathon-lb docker image. You have to update marathon-lb.json code below with yours (or public) docker registry, IPs and hostnames. When you add application to marathon and you want it to be load balanced via marathon-lb, you have to add labels section eg.: "labels": {

Re: DC/OS dynamic reservation dosen't work

2016-05-02 Thread caogaojin
thanks @haosdent, here is the explanation https://github.com/mesosphere/marathon/issues/3851#issuecomment-216192331 -- Best Regards, GaoJin CAO ChinaMobile(Suzhou) R Mail:caogaojin at cmss.chinamobile.com

How to install marathon-lb

2016-05-02 Thread Stefano Bianchi
Hello all I'm not using DC/OS, and i would like to know how to install marathon-lb on my mesos cluster. Is there any tutorial that does not involve dcos instructions? Thanks for replies.

Re: Mesos Web UI

2016-05-02 Thread Adam Bordelon
Backported to 0.28.x and 0.27.x. The relevant change/typo wasn't introduced until 0.27.x, so I left 0.26.x alone. On Fri, Apr 29, 2016 at 9:57 AM, Vinod Kone wrote: > Adam, since you committed this, feel free to backport it to the relevant > stable branches (26.x, 27.x,