Questions tagged [mesos]

Apache Mesos is a cluster manager that provides an efficient, scalable, and robust way to share resources (CPUs, memory, disk, ports, et.) across frameworks or applications that are distributed across a cluster of machines. Mesos can be thought of as a kernel for the data center that provides a unified view of resources on all nodes and seamless access to these resources.

Apache Mesos is a cluster manager that provides efficient resource isolation and sharing across distributed applications, or frameworks.

Getting Started

How Does It Work?

Apache Mesos is based on a master-worker relationship, but there are other important components:

  • Mesos workers "own" the resources (CPU, memory, network ports, etc.) being managed by Mesos.
  • The Mesos master is responsible for scheduling and allocating the resources to various frameworks and managing the task life cycle. It is the resource broker.
  • Frameworks - distributed applications that run using the resources Mesos provides (run on top of Mesos). Frameworks require tasks to be performed, and tasks consume resources.
  • Communication - components of Mesos communicate with frameworks over HTTP or an HTTP-like protocol using APIs.
  • Auxiliary resources - these are resources required by, but not managed by, Mesos (e.g., network file system, client connections to services running on Mesos, etc.)

Examples of What Mesos Can Do

Some examples of things that you can do with Mesos:

  • Run a Hadoop cluster (or any frameworks built on top of Hadoop, e.g., Giraph, Hive, etc.) while sharing the resources of the cluster with another framework
  • Run a Spark cluster while sharing the resources of the cluster with another framework
  • Run a NoSQL database cluster (e.g., Hive, Shark, Spark SQL, Cassandra, Hypertable) while sharing the resources of the cluster with another framework
  • Run a real-time data streaming service (e.g., Spark Streaming, Storm)
  • Run elastic YARN clusters (see Myriad)
  • Run a standalone HDFS (see Mesosphere HDFS)

Who Uses Mesos?

Mesos helps power a large number of companies; the Mesos Project maintains a long list of companies using Mesos.

Related Tags

1240 questions
8
votes
2 answers

Mesos cluster fails to elect master when using replicated_log

Test environment: multi-node mesos 0.27.2 cluster on AWS (3 x masters, 2 x slaves, quorum=2). Tested persistence with zkCli.sh and it works fine. If i start the masters with --registry=in_memory, it works fine, master is elected, i can start tasks…
mitelone
  • 341
  • 1
  • 10
8
votes
1 answer

Migrate Marathon apps for mesos-slave graceful shutdown

I have a small Mesos cluster and I'm using Marathon to manage a set of long-running services with a variable number of instances each. I'd like to be able to launch new nodes or terminate some of them as required by business needs. However, when…
Rui Gonçalves
  • 1,355
  • 12
  • 28
8
votes
1 answer

--add-host parameter in Marathon docker application

I have docker images (with entrypoints) that I would like to run using Mesos and Marathon. These images require changes in /etc/hosts and /etc/resolv.conf. When I typically run this I would do something like: docker run --add-host host:ip…
Erik Nguyen
  • 839
  • 1
  • 6
  • 21
7
votes
1 answer

Customize task resources on Airflow using MesosExecutor

Is it possible to specify resources (CPU, memory, GPU, disk space) for each operator of a DAG when using MesosExecutor? I know you can specify global values for resources of a task. For instance, I have several operators that are CPU expensive and…
Gonzalo Matheu
  • 8,984
  • 5
  • 35
  • 58
7
votes
2 answers

Setting up Mesos with Ansible on Ubuntu 14.04 on Digital Ocean

I have been following this tutorial How to configure a production ready Mesos cluster and have been creating an ansible playbook along the way which you can see here mesos ansible playbook Ansible runs successfully and I can visit my port 5050 on a…
Mark
  • 3,137
  • 4
  • 39
  • 76
7
votes
1 answer

Share docker images between hosts with NFS

I'building a mesosphere infrastructure on AWS instances with 3 master servers (running zookeeper, mesos-master, marathon and haproxy) and N slaves (running mesos-slave and docker). If I run the same container on different slaves marathon downloads…
sekipaolo
  • 135
  • 2
  • 7
7
votes
1 answer

Fig / Docker-Compose-like JSON to feed into Mesosphere/Marathon to setup Multi-Tier Application

Does anyone know if it is possible to setup a JSON file to feed into Mesosphere/Marathon to deploy multi-tier application with application dependency? Something along the lines of fig or docker compose when there is one yaml file describing…
user2362699
  • 586
  • 6
  • 22
7
votes
1 answer

Main differences between mesosphere and coreos

Firstly, is it correct to compare these two products? If yes, what is the main difference between them?
Dante
  • 451
  • 4
  • 12
7
votes
2 answers

How to run Hadoop on a Mesos cluster?

I am trying to set up a Apache Mesos Cluster and run Hadoop-Job on it. The documentation here is not at my level, so that i am not able to understand and maybe someone here can explain me: First should I set up a working Hadoop Cluster? Or first…
likeaprogrammer
  • 405
  • 1
  • 5
  • 13
6
votes
2 answers

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

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:…
M_Gh
  • 1,046
  • 4
  • 17
  • 43
6
votes
0 answers

Mesos 1.2.1 & 1.3.1 slave - docker job exits normally but reporting as failure

My mesos version was recently upgraded from 0.28 to 1.2.1. Jobs are being scheduled using Chronos. My docker job is being invoked properly, but still getting TASK_FAILED error event it completes with exit status ZERO. This is reproducible always. I…
user1578872
  • 7,808
  • 29
  • 108
  • 206
6
votes
2 answers

Consul deregister 'failing' services

I have consul running on Consul v0.5.2 version & services running in Mesos. Services keep moving from 1 server to another. Is there way to deregister services in consul that are in 'failing' state? I am able to get the list of services in failing…
DevOpsNewB
  • 185
  • 2
  • 14
6
votes
3 answers

How to securely share private docker repo login credentials in Azure container service with Mesos & Marathon

I have setup Azure Container Service using DC/OS + Marathon for deploying Docker containers. So far looks good, I can connect to master node using SSH tunnel and access Mesos and Marathon WebUI as well as hit REST API. Next, I am trying to deploy a…
Anurag Sharma
  • 126
  • 2
  • 11
6
votes
2 answers

difference between ports and service ports?

While exploring marathon REST API, I came across two port numbers ( ports and service ports ) defined in the information ( JSON output) given by the following API call- curl http://x.y.z.w:8080/v2/tasks | python -m json.tool | less The sample output…
Yogesh Jilhawar
  • 5,605
  • 8
  • 44
  • 59
6
votes
2 answers

Locally change the log level for the zookeeper C client

I'm using Apache Spark's spark-shell with mesos and zookeeper, which seems to working well except that I'm getting more logging from zookeeper than I'd like, which is a bit distracting: Welcome to ____ __ / __/__ ___ _____/…
rampion
  • 87,131
  • 49
  • 199
  • 315
1 2
3
82 83