Return-Path: X-Original-To: apmail-mesos-user-archive@www.apache.org Delivered-To: apmail-mesos-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3042019692 for ; Mon, 29 Feb 2016 14:26:01 +0000 (UTC) Received: (qmail 88234 invoked by uid 500); 29 Feb 2016 14:26:00 -0000 Delivered-To: apmail-mesos-user-archive@mesos.apache.org Received: (qmail 88169 invoked by uid 500); 29 Feb 2016 14:26:00 -0000 Mailing-List: contact user-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@mesos.apache.org Delivered-To: mailing list user@mesos.apache.org Received: (qmail 88159 invoked by uid 99); 29 Feb 2016 14:26:00 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Feb 2016 14:26:00 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 2E52718065B for ; Mon, 29 Feb 2016 14:26:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.18 X-Spam-Level: *** X-Spam-Status: No, score=3.18 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, KAM_BADIPHTTP=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id oW14-6dnnXVL for ; Mon, 29 Feb 2016 14:25:58 +0000 (UTC) Received: from mail-vk0-f53.google.com (mail-vk0-f53.google.com [209.85.213.53]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 7B5955FB50 for ; Mon, 29 Feb 2016 14:25:58 +0000 (UTC) Received: by mail-vk0-f53.google.com with SMTP id c3so134966673vkb.3 for ; Mon, 29 Feb 2016 06:25:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=qAYkejueBNKk4r7RP5i7pD1CRJ7T7cZGOK8r5R0thqY=; b=aySkXQ3Ah7ZLkZycDyiHOxIzrRWreq7sDxActNyM3PcAAvo2HMqdcOQejh2asEOaCY J3/GJBhyZ6lq7bjwaCk70vavr4EsSJAEcUBAEqQ07tq1CZBVQtpvoFkxSlspYNULZxS3 s6nn9le1btJUC4tZeNl36lX7ZVgJcVVrSe8s5aZXz4F/A3m6jLxbbU4wtuopFx8PZtt8 buCYpzhejbbrUzjE1buiMU93OnsY8Avaw7iRUWrahsDmiXDFcEwHoSFfodiEhIaLHJ1+ 9R5y8M1s4zFX5t3hbaEv1RPUCrdSbxYoZhWwWxfB2yqC+WCGktw8lCgOlLgE7RTcqyXy NQuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=qAYkejueBNKk4r7RP5i7pD1CRJ7T7cZGOK8r5R0thqY=; b=VmbpjbLqUWsjt0PJoSBNG9ukeO8MSf8UzjOpbKJh+g2QkZKRcoQlCMM36lTUDE2IZx RLycbnChDRBPmdKWW9EBlAGlfaN0/GhSLnM72+Na3UAWycxWN0EHZ0u8rABQtScJ5imC QNWyr2vr/EHIQBIIFy7XUwewecKUolp5rvOMeLF/PwtbMcF3Ng97zjxI1m4SS5SlKWZ9 ByrwLjO3Ue/0yVL4FT9Q1JMAxqzYgkWRTS9G8N70yc41k2YbYjOMS7nNZz9+0t1TreC8 57arYI8F2sn/UKVWsJgR/AMsGE3VH3e1IXGJmKiX/8xM5i5umiqBLmzNNxzLgoSJpyVn GPtA== X-Gm-Message-State: AD7BkJIy3j7b4gxJEbF+hBsyBLgPZiC8WyB4MhGKU76Mz0wd8tIV/KFI7V4B/LD9YHKvxkVSWb+z8km0ItQsxA== MIME-Version: 1.0 X-Received: by 10.31.153.85 with SMTP id b82mr12185991vke.121.1456755957830; Mon, 29 Feb 2016 06:25:57 -0800 (PST) Received: by 10.31.52.2 with HTTP; Mon, 29 Feb 2016 06:25:57 -0800 (PST) Date: Mon, 29 Feb 2016 06:25:57 -0800 Message-ID: Subject: [MESOS][MARATHON][MESOS_DNS][DOCKER] From: Manoj Gunawardena To: user@mesos.apache.org Content-Type: multipart/alternative; boundary=001a1140f7146419a0052ce96d2b --001a1140f7146419a0052ce96d2b Content-Type: text/plain; charset=UTF-8 Hi All, In my environment running mesos-slave, mesos-master marathon and mesos-dns in standalone mode. I deployed mysql app to marathon to run as docker container. MySql app configurations as follows. { "id": "mysql", "cpus": 0.5, "mem": 512, "instances": 1, "container": { "type": "DOCKER", "docker": { "image": "mysql:5.6.27", "network": "BRIDGE", "portMappings": [ { "containerPort": 3306, "hostPort": 32000, "protocol": "tcp" } ] } }, "constraints": [ [ "hostname", "UNIQUE" ]], "env": { "MYSQL_ROOT_PASSWORD": "password" }, "minimumHealthCapacity" :0, "maximumOverCapacity" : 0.0 } Then I deploy app called mysql client. Mysql client app needs to connect to mysql app. mysql app config as follows. { "id": "mysqlclient", "cpus": 0.3, "mem": 512.0, "cmd": "/scripts/create_mysql_dbs.sh", "instances": 1, "container": { "type": "DOCKER", "docker": { "image": "mysqlclient:latest", "network": "BRIDGE", "portMappings": [{ "containerPort": 3306, "hostPort": 0, "protocol": "tcp" }] } }, "env": { "MYSQL_ENV_MYSQL_ROOT_PASSWORD": "password", "MYSQL_PORT_3306_TCP_ADDR": "mysql.marathon.slave.mesos.", "MYSQL_PORT_3306_TCP_PORT": "32000" }, "minimumHealthCapacity" :0, "maximumOverCapacity" : 0.0 } >From the host machines I can ping to mysql.marathon.slave.mesos. But from the mysql client docker conatiner I couldnt reach host "mysql.marathon.slave.mesos." My mess-dns configurations as follows. { "zk": "zk://127.0.0.1:2181/mesos", "masters": ["127.0.0.1:5050"], "refreshSeconds": 60, "ttl": 60, "domain": "mesos", "port": 53, "resolvers": ["127.0.0.1"], "timeout": 5, "httpon": true, "dnson": true, "httpport": 8123, "externalon": true, "listener": "127.0.0.1", "SOAMname": "ns1.mesos", "SOARname": "root.ns1.mesos", "SOARefresh": 60, "SOARetry": 600, "SOAExpire": 86400, "SOAMinttl": 60, "IPSources": ["mesos", "host"] } *I tried with giving dns as parameter to mysql client app. But that also not work. What is the reason for this?* Thanks --001a1140f7146419a0052ce96d2b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi All,

In my environment = running mesos-slave, mesos-master marathon and mesos-dns in standalone mode= .=C2=A0
I deployed mysql app to marathon= to run as docker container.

<= div style=3D"font-size:13px">MySql app configurations as follows.

{
"id": "= mysql",
"c= pus": 0.5,
&quo= t;mem": 512,
&q= uot;instances": 1,
"container": {
"type": "DOCKER",
"docker": {
"image": "mysql:5.6.27"= ;,
"network&q= uot;: "BRIDGE",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "portMappings= ": [
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= "containerPort": 3306,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "hostPort": 32000,
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "protocol&= quot;: "tcp"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 }
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 ]
}
},
"constraints": [
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 "hostname",
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 "UNIQUE"
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 ]],
"env": {
= "MYSQL_ROOT_PASSWORD": "password"
},
=C2=A0 =C2=A0 =C2=A0 "minimumHealthCapacit= y" :0,
=C2=A0 =C2=A0 =C2=A0 "maximumOverCapacity" = : 0.0
}

Then I deploy app called mysql client. Mysql client= app needs to connect to mysql app.

=
mysql app config as follows.

{
"id": "m= ysqlclient",
&q= uot;cpus": 0.3,
"mem": 512.0,
"cmd": "/scripts/create_mysql_dbs.sh",
<= span style=3D"white-space:pre-wrap"> "instances": 1,
=
"container": {<= /div>
"type": &= quot;DOCKER",
= "docker": {
"image": "mysqlclient:latest",
"network": "BRIDGE"= ;,
"portMappings": [{
"containerPort": 3306= ,
"hostPort&= quot;: 0,
"p= rotocol": "tcp"
}]
}
},
"env": {
"MYSQL_ENV_MYSQL_ROOT_PASSWORD&qu= ot;: "password",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 "MYSQ= L_PORT_3306_TCP_ADDR": "mysql.marathon.slave.mesos.",
<= div> =C2=A0=C2=A0 =C2=A0"M= YSQL_PORT_3306_TCP_PORT": "32000"
= },
=C2=A0 =C2=A0 =C2=A0 "minimumHealthCapacity" :0,
=C2=A0 =C2=A0 =C2=A0 "maximumOverCapacity" : 0.0
}


From the host machines I c= an ping to mysql.marathon.slave.mesos. But from the mysql client docker con= atiner I couldnt reach host "mysql.marathon.slave.mesos."

My mess= -dns configurations as follows.

{
=C2=A0 "zk": &qu= ot;zk://127.0.0.1= :2181/mesos",
=C2=A0 "masters": ["127.0.0.1:5050"],
=C2=A0 "refreshSeconds": 60,
=C2=A0 "ttl&q= uot;: 60,
=C2=A0 "domain": "mesos",
=C2=A0 "port": 53,
=C2=A0 "resolvers": [&quo= t;127.0.0.1"],
=C2=A0 "timeout": 5,
=C2= =A0 "httpon": true,
=C2=A0 "dnson": true,
=C2=A0 "httpport": 8123,
=C2=A0 "externalon= ": true,
=C2=A0 "listener": "127.0.0.1",=
=C2=A0 "SOAMname": "ns1.mesos",
= =C2=A0 "SOARname": "root.ns1.mesos",
=C2=A0 &= quot;SOARefresh": 60,
=C2=A0 "SOARetry": =C2=A0 60= 0,
=C2=A0 "SOAExpire": =C2=A086400,
=C2=A0 &q= uot;SOAMinttl": 60,
=C2=A0 "IPSources": ["mes= os", "host"]
}
I tried with giving dns as parameter to mysql client app. But that= also not work. What is the reason for this?

Thanks
--001a1140f7146419a0052ce96d2b--