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": "

Re: running mysql on mesos, marathon, docker

2014-09-30 Thread Yonatan Ryabinski
I found an answer to my own question. I guess I need marathon 0.7.1. And than use the format below: { "id": "bridged-webapp", "cmd": "python3 -m http.server 8080", "cpus": 0.5, "mem": 64.0, "instances": 2, "container": { "type": "DOCKER", "docker": { "image": "python:3",

Re: running mysql on mesos, marathon, docker

2014-09-30 Thread Luyi Wang
Hey Steve: Nice to having this script. Really helpful. -Luyi. On Tue, Sep 30, 2014 at 1:32 PM, Steve Domin wrote: > Hi Luyi, > > By "how internally these instances are connected" do you refer to some > kind of service discovery? If so, there's nothing really built into > Marathon for that,

Re: running mysql on mesos, marathon, docker

2014-09-30 Thread Yonatan Ryabinski
Hey, How can one expose docker ports via marathon? There is the ports key of the .json file but that doesn't seem to expose the docker ports. Please advise. -- Thanks, Yoni. PGP Public Key On Tue, Sep 30, 2014 at 4:32 PM, Steve Domin wrote:

Re: running mysql on mesos, marathon, docker

2014-09-30 Thread Steve Domin
Hi Luyi, By "how internally these instances are connected" do you refer to some kind of service discovery? If so, there's nothing really built into Marathon for that, you'll have to use another service. There's a script provided by Marathon

running mysql on mesos, marathon, docker

2014-09-30 Thread Luyi Wang
Hey all : My question is what's the best way to running mysql or postgresq on mesos with marathon. I saw my posts just mentioned the way doing the scale using marathon, but didn't explain how internally these instances are connected ? Can anyone point out the places I can refer to or give me s