marathon

How to measure the CPU utilization of Each container in Mesos?

爱⌒轻易说出口 提交于 2019-12-06 03:51:04
I have many apps running on containers in Mesos, managed via marathon. I have given CPU allocation for each app while deploying via marathon like 1, .5 etc. But the CPU allocation in marathon, does not mean that its 1 CPU or half CPU. It simply means that its time sharing ratio. Also each container gets to access all the CPUs on its Host. Now, I want to measure the CPU efficiency of each Container on Mesos slaves, so that I can reduce or increase the CPU allocation in for each App in Marathon. I just want to make resource utilisation even more efficient. I could use https://github.com/bobrik

Mesos DCOS doesn't install Kafka

余生长醉 提交于 2019-12-06 02:11:17
I'm trying to install Kafka on Mesos. Installation seems to have succeeded. vagrant@DevNode:/dcos$ dcos package install kafka This will install Apache Kafka DCOS Service. Continue installing? [yes/no] yes Installing Marathon app for package [kafka] version [0.9.4.0] Installing CLI subcommand for package [kafka] version [0.9.4.0] New command available: dcos kafka The Apache Kafka DCOS Service is installed: docs - https://github.com/mesos/kafka issues - https://github.com/mesos/kafka/issues vagrant@DevNode:/dcos$ dcos package list NAME VERSION APP COMMAND DESCRIPTION kafka 0.9.4.0 /kafka kafka

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

馋奶兔 提交于 2019-12-04 19:17:23
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 spray.io in the docker container is: [WARN] [08/19/2016 23:53:42.534] [asp-service-akka.actor.default

Linked Docker Containers with Mesos/Marathon

不问归期 提交于 2019-12-04 07:35:38
问题 I'm having great success so far using Mesos, Marathon, and Docker to manage a fleet of servers, and the containers I'm placing on them. However, I'd now like to go a bit further and start doing things like automatically linking an haproxy container to each main docker service that starts, or provide other daemon based and containerized services that are linked and only available to the single parent container. Normally, I'd start up the helper service first with some name, then when I started

Consul not deregistering zombie services

会有一股神秘感。 提交于 2019-12-04 03:46:04
I am deploying a simple hello world nginx container with marathon, and everything seems to work well, except that I have 6 containers that will not deregister from consul. docker ps shows none of the containers are running. I tried using the /v1/catalog/deregister endpoint to deregister the services, but they keep coming back. I then killed the registrator container, and tried deregistering again. They came back. I am running registrator with docker run -d --name agent-registrator -v /var/run/docker.sock:/tmp/docker.sock --net=host gliderlabs/registrator consul://127.0.0.1:8500 -deregister-on

How to run a one-off task with Apache Mesos/Marathon?

三世轮回 提交于 2019-12-04 02:01:50
I'm trying to run a one-off task with Marathon. I'm able to get the task container running, but after the task command completes, marathon runs another task, and so on. How can I prevent Marathon from running more than one task/command? Or, if this is not possible with Marathon, how can I achieve the desired behaviour? Mik As a hack you can kill a marathon task at the end, as suggested here: https://github.com/mesosphere/marathon/issues/344#issuecomment-86697361 As rukletsov already mentioned - Marathon is desigend for long-running tasks: https://stackoverflow.com/a/26647789/1047843 If Chronos

Linked Docker Containers with Mesos/Marathon

笑着哭i 提交于 2019-12-02 14:31:58
I'm having great success so far using Mesos, Marathon, and Docker to manage a fleet of servers, and the containers I'm placing on them. However, I'd now like to go a bit further and start doing things like automatically linking an haproxy container to each main docker service that starts, or provide other daemon based and containerized services that are linked and only available to the single parent container. Normally, I'd start up the helper service first with some name, then when I started the real service, I'd link it to the helper and everything would be fine. How does this model fit in

Setup Mesos-DNS dockerized on a mesos cluster

倖福魔咒の 提交于 2019-12-01 09:43:15
I'm facing some trouble trying to run mesos-dns dockerized on a mesos cluster. I've setup 2 virtual machines with ubuntu trusty on a windows 8.1 host. My VMs are called docker-vm and docker-sl-vm ; where the first one runs mesos-master and the 2nd one runs mesos-slave. The VMs have 2 network cards; one running NAT for accesing internet through the host and the other one is a Host-only adapter for internal communication. The IPs for the VMs are: 192.168.56.101 for docker-vm 192.168.56.102 for docker-sl-vm The MESOS cluster is running Okay. I am trying to follow this tutorial . So, I am running

最全面的Rancher编排引擎剖析都在这儿了!

妖精的绣舞 提交于 2019-12-01 00:15:20
Rancher的最新版本增加了对几个常见编排引擎的支持。 除了Cattle之外新加支持三个Docker社区中使用最广泛的编排引擎,包括Swarm(Docker Native Orchestration)、Kubernetes和Mesos,它们将为用户提供了更多的功能及可用的编排选项。虽然Docker现在已经发展成为容器化领域的事实标准,但在细分的docker编排引擎市场中目前并没有明确的赢家。在本文中,我们将讨论三个编排引擎系统的功能和特性,并给出它们可能适用的场景用例的建议。 Docker Native Orchestration目前是相对来说项目较新,但它成长速度很快并不断的加入新功能。由于它是Docker官方本身推出的,因此有良好的工具和社区支持,是许多开发人员的默认选择。 Kubernetes是当今最广泛使用的容器编排系统之一,并且得到了Google的支持。 最后Mesos与Mesosphere(或Marathon,其开放源代码版本)支持分层、分类的服务管理方法,许多管理功能可基于独立的插件和应用程序。 因为架构的灵活性这使得它更容易深度定制化部署。当然,这也意味着需要更多的整合工作量。而Kubernetes的常见案例则更偏向于如何构建集群和交付完整统一的综合系统 。 Docker Native Orchestration 基本结构 Docker Engine 1.12

Transport Endpoint Not Connected - Mesos Slave / Master

℡╲_俬逩灬. 提交于 2019-11-30 17:13:00
I'm trying to connect a Mesos slave to its master. Whenver the slave tries to connect to the master, I get the following message: I0806 16:39:59.090845 935 hierarchical.hpp:528] Added slave 20150806-163941-1027506442-5050-921-S3 (debian) with cpus(*):1; mem(*):1938; disk(*):3777; ports(*):[31000-32000] (allocated: ) E0806 16:39:59.091384 940 socket.hpp:107] Shutdown failed on fd=25: Transport endpoint is not connected [107] I0806 16:39:59.091508 940 master.cpp:3395] Registered slave 20150806-163941-1027506442-5050-921-S3 at slave(1)@127.0.1.1:5051 (debian) with cpus(*):1; mem(*):1938; disk(*)