marathon

marathon-lb health check failing on all spray.io containers

偶尔善良 提交于 2020-01-01 19:35:19
问题 I'm running DC/OS 1.7 with marathon-lb. spray.io 1.3.3 is returning 400 to all marathon-lb/HAProxy heath check calls: request has a relative URI and is missing a Host header so marathon-lb never routes any requests to the service. The health check in the marathon json is: "healthChecks": [ { "path": "/health", "protocol": "HTTP", "portIndex": 0, "gracePeriodSeconds": 10, "intervalSeconds": 2, "timeoutSeconds": 10, "maxConsecutiveFailures": 10, "ignoreHttp1xx": false } ], and the logging by

marathon-lb health check failing on all spray.io containers

丶灬走出姿态 提交于 2020-01-01 19:35:04
问题 I'm running DC/OS 1.7 with marathon-lb. spray.io 1.3.3 is returning 400 to all marathon-lb/HAProxy heath check calls: request has a relative URI and is missing a Host header so marathon-lb never routes any requests to the service. The health check in the marathon json is: "healthChecks": [ { "path": "/health", "protocol": "HTTP", "portIndex": 0, "gracePeriodSeconds": 10, "intervalSeconds": 2, "timeoutSeconds": 10, "maxConsecutiveFailures": 10, "ignoreHttp1xx": false } ], and the logging by

Mesos框架对比:Marathon 和 Aurora

99封情书 提交于 2019-12-30 04:16:04
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> Marathon 和 Aurora 都能在 Mesos 集群上调度和运行常驻服务。本文比较了两个框架的不同和优劣。 问题 Marathon 框架和 Aurora 框架都能在 Mesos 集群上调度和运行常驻服务。我的问题是: 两个框架有哪些不同?我费了半天劲,也没有找到能够很好地解释二者的关键区别的资料。 任何程序或代码,只要能在 Linux 系统上正常地运行,就能被这些框架调度和运行,这么说对吗? Marathon 的开发者说 Marathon 能够运行“可在 shell 中执行”的任何程序或代码。不过,这话有点空洞,让人琢磨不透,:) 第 1 个解答 声明:我是 Apache Aurora 的副总裁,担任 Twitter 公司 Aurora 团队的技术负责人也差不多五年了。我的观点或许有片面之处,纯属个人观点,与 Twitter 公司或者 Apache 基金会无关。 任何程序或代码,只要能在 Linux 系统上正常地运行,就能被这些框架调度和运行,这么说对吗? Marathon 的开发者说 Marathon 能够运行“可在 shell 中执行”的任何程序或代码。不过,这话有点空洞,让人琢磨不透,:) 完全正确。 Marathon 和 Aurora 框架的本质就是调度集群的资源,执行用户提交的 Shell

Docker volume plugin marathon

允我心安 提交于 2019-12-25 06:56:41
问题 Docker Volume plugins are released with Docker 1.8. I am trying to run a Docker container using Mesos/Marathon and I am able to run Docker container with volumes. What I am not able to do is connecting an external volume plugin. As per marathon documentation any external parameter for Docker run can be passed as key value pair in the "parameter" tag of Marathon API POST. The Docker container does come up but is not connecting to my plugin for volume. The JSON file is as below. I am using curl

WARN Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect

自闭症网瘾萝莉.ら 提交于 2019-12-24 07:30:03
问题 I have two nodes that each one has docker with Mesos,marathon,and zookeeper have been installed on it. This is my docker compose file on master node: version: '3.7' services: zookeeper: image: ubuntu_mesos_home_marzieh command: /home/zookeeper-3.4.8/bin/zkServer.sh restart environment: ZOOKEEPER_SERVER_ID: 1 ZOOKEEPER_CLIENT_PORT: 2190 ZOOKEEPER_TICK_TIME: 2000 ZOOKEEPER_INIT_LIMIT: 10 ZOOKEEPER_SYNC_LIMIT: 5 ZOOKEEPER_SERVERS: 150.20.11.133:2888:3888;150.20.11.136:2888:3888 network_mode:

HDFS resiliency to machine restarts in DC/OS

假装没事ソ 提交于 2019-12-24 05:59:33
问题 I have installed HDFS from universe on my DCOS cluster of 10 Core OS machines (3 master nodes, 7 agent nodes). My HA HDFS config has 2 name nodes, 3 journal nodes and 5 data nodes. Now, my question is. Shouldn’t the HDFS be resilient to machine restarts? If I restart a machine where a data node is installed the data node gets rebuilt as a mirror of the others (only after restarting the HDFS service from the DC/OS UI). In the case of a restart where a journal node or a name node is, the nodes

how know container name with marathon rest API

帅比萌擦擦* 提交于 2019-12-23 19:16:01
问题 I'm using Apache Mesos + Marathon + Zookeeper to deploy my rails app. I need share data between rails app and other container. I found some reference here to do it with marathon as follow: marathon/docs/native-docker.html { "id": "privileged-job", "container": { "docker": { "image": "mesosphere/inky" "privileged": true, "parameters": [ { "key": "hostname", "value": "a.corp.org" }, { "key": "volumes-from", "value": "another-container" }, { "key": "lxc-conf", "value": "..." } ] }, "type":

How to set up Cassandra Docker cluster in Marathon with BRIDGE network?

爷,独闯天下 提交于 2019-12-23 17:51:52
问题 I have a production DC/OS(v1.8.4) cluster and I am trying to setup a Cassandra cluster inside it. I use Marathon(v1.3.0) to deploy Cassandra nodes. I use the official Docker image of Cassandra and more specifically the 2.2.3 version. First Case: Deploy Cassandra using HOST mode network - Everything OK In this case, I first deploy a node that I call cassasndra-seed and it attaches to a physical host with IP 10.32.0.6. From the stdout log of Marathon for this service I can see that "Node /10.32

How to set up Cassandra Docker cluster in Marathon with BRIDGE network?

假如想象 提交于 2019-12-23 17:42:50
问题 I have a production DC/OS(v1.8.4) cluster and I am trying to setup a Cassandra cluster inside it. I use Marathon(v1.3.0) to deploy Cassandra nodes. I use the official Docker image of Cassandra and more specifically the 2.2.3 version. First Case: Deploy Cassandra using HOST mode network - Everything OK In this case, I first deploy a node that I call cassasndra-seed and it attaches to a physical host with IP 10.32.0.6. From the stdout log of Marathon for this service I can see that "Node /10.32

Can't connect to cassandra container via haproxy

对着背影说爱祢 提交于 2019-12-23 02:43:04
问题 I am trying to connect an external app to Cassandra which is running dockerized on a mesos cluster. These are the the apps I have running on mesos: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 137760ce852a cassandra:latest "/docker-entrypoint.s" 15 minutes ago Up 15 minutes 7000-7001/tcp, 7199/tcp, 9160/tcp, 0.0.0.0:31634->9042/tcp mesos-1b65f33a-3d36-4bf4-8a77-32077d8d234a-S1.0db174cc-2e0c-4790-9cd7-1f142d08c6e2 fec5fc93ccfd cassandra:latest "/docker-entrypoint.s" 22 minutes ago Up