Need advice about which tool to choose?Ask the StackShare community!

Kubernetes

59.9K
51.8K
+ 1
681
Apache Mesos

311
418
+ 1
31
Add tool

Apache Mesos vs Kubernetes: What are the differences?

Introduction

In this article, we will explore and compare the key differences between Apache Mesos and Kubernetes, two popular orchestration platforms used for managing and scheduling containers in a cluster environment.

  1. Architecture: Apache Mesos follows a master-slave architecture, where the cluster consists of one or more masters that manage resources and multiple slave nodes responsible for running tasks. On the other hand, Kubernetes follows a master-worker architecture, where the master controls the cluster state and the worker nodes execute tasks.

  2. Resource Allocation: Mesos uses fine-grained resource allocation, allowing tasks to be allocated CPU and memory resources based on specific requirements. Kubernetes, on the other hand, uses a coarser-grained approach, allocating resources based on predefined resource limits and requests.

  3. Scalability: Mesos was designed to scale up to tens of thousands of nodes, making it suitable for large-scale deployments. Kubernetes, although capable of scaling to a significant number of nodes, is known to be more efficient in managing clusters with hundreds or thousands of nodes.

  4. Service Discovery: Kubernetes provides built-in service discovery and load balancing mechanisms through its DNS-based service discovery and Ingress features. Mesos, on the other hand, relies on external frameworks like Marathon or Chronos for these capabilities.

  5. Networking Models: Kubernetes supports multiple networking models, including overlay networks and host networking. Mesos provides more flexibility in terms of networking choices, allowing users to choose between different networking models like virtual network interfaces or Linux bridges.

  6. Community Support: Kubernetes boasts a larger and more active community compared to Mesos, with a wider range of plugins, tools, and resources available. This strong community support makes it easier for users to find help, contribute to the project, and adopt Kubernetes in various environments.

In Summary, Apache Mesos and Kubernetes differ in their architecture, resource allocation approaches, scalability, service discovery mechanisms, networking models, and community support. These differences enable users to choose the platform that best suits their requirements and infrastructure.

Advice on Kubernetes and Apache Mesos
Needs advice
on
KubernetesKubernetes
and
Apache MesosApache Mesos
in

The problem I have is I want to choose a Private PaaS to install it on my own infra and provide a platform as a service to my own clients. I need something like OpenShift or Jelastic...

The most important factors for me are that it has to be on-premise support, extensible (we can add feature to it), supports containers (docker, lxc, ...) supports databases (MySQL, Redis, mongo...), support load balancers, support software-defined storages (ceph, minio,...) monitoring and we can sell it to our own clients.

Do you have any idea?

See more
Replies (3)
Recommends
on
KubernetesKubernetes

Mesos-Enthuasiast may criticise me for my statement, but Kubernetes has simply won the race. Most companies I work with have a Kubernetes strategy. With that backing the platform will continue to grow whereas Mesos will become a niche.

See more
Charles Thayer
Recommends
on
KubernetesKubernetes

In your position I'd start by talking to customers and understanding their requirements. Unfortunately, although Apache Mesos + Marathon is generally liked more and simpler, it's still a commercially owned space when you run into trouble. On the other hand Kubernetes is more open and popular (check search results, about 10X) and customers like that they can move around among GKE and AWS and other Kubernetes environments. So although I think Kubernetes is overly complex for the newcomer, (and you may need Helm as well) it's going to be more popular with your customers. Also, Kubernetes is fairly open in terms of extensibility (esp if you work in Go lang).

See more
Christian Saboia
CEO - Diretor Executivo at Saboia Tecnologia da Informação · | 1 upvotes · 1.2K views
Recommends
on
KubernetesKubernetes

From a developer perspective, any new project we will be working on, unless specifically requested by the client, will be on top of Kubernetes. Actually, Kubernetes compete with Marathon as a container orchestration software, and as far as I know, one could run Kubernetes over Mesos. So, assuming your PaaS will serve developers, I would take a closer look at Kubernetes first. The goal for Mesos project is to be a sort of kernel for distributed computing, while Kubernetes is to manage the deploy and load balacing o of containers. Either way, you will need a container orchestration solution and the one to go with, given the current tendency in the market and the ecosystem around it, is Kubernetes.

See more
Decisions about Kubernetes and Apache Mesos
Michael Roberts

We develop rapidly with docker-compose orchestrated services, however, for production - we utilise the very best ideas that Kubernetes has to offer: SCALE! We can scale when needed, setting a maximum and minimum level of nodes for each application layer - scaling only when the load balancer needs it. This allowed us to reduce our devops costs by 40% whilst also maintaining an SLA of 99.87%.

See more
Simon Reymann
Senior Fullstack Developer at QUANTUSflow Software GmbH · | 30 upvotes · 11.6M views

Our whole DevOps stack consists of the following tools:

  • GitHub (incl. GitHub Pages/Markdown for Documentation, GettingStarted and HowTo's) for collaborative review and code management tool
  • Respectively Git as revision control system
  • SourceTree as Git GUI
  • Visual Studio Code as IDE
  • CircleCI for continuous integration (automatize development process)
  • Prettier / TSLint / ESLint as code linter
  • SonarQube as quality gate
  • Docker as container management (incl. Docker Compose for multi-container application management)
  • VirtualBox for operating system simulation tests
  • Kubernetes as cluster management for docker containers
  • Heroku for deploying in test environments
  • nginx as web server (preferably used as facade server in production environment)
  • SSLMate (using OpenSSL) for certificate management
  • Amazon EC2 (incl. Amazon S3) for deploying in stage (production-like) and production environments
  • PostgreSQL as preferred database system
  • Redis as preferred in-memory database/store (great for caching)

The main reason we have chosen Kubernetes over Docker Swarm is related to the following artifacts:

  • Key features: Easy and flexible installation, Clear dashboard, Great scaling operations, Monitoring is an integral part, Great load balancing concepts, Monitors the condition and ensures compensation in the event of failure.
  • Applications: An application can be deployed using a combination of pods, deployments, and services (or micro-services).
  • Functionality: Kubernetes as a complex installation and setup process, but it not as limited as Docker Swarm.
  • Monitoring: It supports multiple versions of logging and monitoring when the services are deployed within the cluster (Elasticsearch/Kibana (ELK), Heapster/Grafana, Sysdig cloud integration).
  • Scalability: All-in-one framework for distributed systems.
  • Other Benefits: Kubernetes is backed by the Cloud Native Computing Foundation (CNCF), huge community among container orchestration tools, it is an open source and modular tool that works with any OS.
See more
Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of Kubernetes
Pros of Apache Mesos
  • 166
    Leading docker container management solution
  • 129
    Simple and powerful
  • 107
    Open source
  • 76
    Backed by google
  • 58
    The right abstractions
  • 25
    Scale services
  • 20
    Replication controller
  • 11
    Permission managment
  • 9
    Supports autoscaling
  • 8
    Simple
  • 8
    Cheap
  • 6
    Self-healing
  • 5
    Open, powerful, stable
  • 5
    Reliable
  • 5
    No cloud platform lock-in
  • 5
    Promotes modern/good infrascture practice
  • 4
    Scalable
  • 4
    Quick cloud setup
  • 3
    Custom and extensibility
  • 3
    Captain of Container Ship
  • 3
    Cloud Agnostic
  • 3
    Backed by Red Hat
  • 3
    Runs on azure
  • 3
    A self healing environment with rich metadata
  • 2
    Everything of CaaS
  • 2
    Gke
  • 2
    Golang
  • 2
    Easy setup
  • 2
    Expandable
  • 2
    Sfg
  • 21
    Easy scaling
  • 6
    Web UI
  • 2
    Fault-Tolerant
  • 1
    Elastic Distributed System
  • 1
    High-Available

Sign up to add or upvote prosMake informed product decisions

Cons of Kubernetes
Cons of Apache Mesos
  • 16
    Steep learning curve
  • 15
    Poor workflow for development
  • 8
    Orchestrates only infrastructure
  • 4
    High resource requirements for on-prem clusters
  • 2
    Too heavy for simple systems
  • 1
    Additional vendor lock-in (Docker)
  • 1
    More moving parts to secure
  • 1
    Additional Technology Overhead
  • 1
    Not for long term
  • 1
    Depends on Zookeeper

Sign up to add or upvote consMake informed product decisions

- No public GitHub repository available -

What is Kubernetes?

Kubernetes is an open source orchestration system for Docker containers. It handles scheduling onto nodes in a compute cluster and actively manages workloads to ensure that their state matches the users declared intentions.

What is Apache Mesos?

Apache Mesos is a cluster manager that simplifies the complexity of running applications on a shared pool of servers.

Need advice about which tool to choose?Ask the StackShare community!

What companies use Kubernetes?
What companies use Apache Mesos?
Manage your open source components, licenses, and vulnerabilities
Learn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Kubernetes?
What tools integrate with Apache Mesos?

Sign up to get full access to all the tool integrationsMake informed product decisions

Blog Posts

Kubernetesetcd+2
2
1197
Dec 8 2020 at 5:50PM

DigitalOcean

GitHubMySQLPostgreSQL+11
2
2448
PythonDockerKubernetes+7
3
1160
May 21 2020 at 12:02AM

Rancher Labs

KubernetesAmazon EC2Grafana+12
5
1536
Apr 16 2020 at 5:34AM

Rancher Labs

KubernetesRancher+2
2
976
What are some alternatives to Kubernetes and Apache Mesos?
Docker Swarm
Swarm serves the standard Docker API, so any tool which already communicates with a Docker daemon can use Swarm to transparently scale to multiple hosts: Dokku, Compose, Krane, Deis, DockerUI, Shipyard, Drone, Jenkins... and, of course, the Docker client itself.
Nomad
Nomad is a cluster manager, designed for both long lived services and short lived batch processing workloads. Developers use a declarative job specification to submit work, and Nomad ensures constraints are satisfied and resource utilization is optimized by efficient task packing. Nomad supports all major operating systems and virtualized, containerized, or standalone applications.
OpenStack
OpenStack is a cloud operating system that controls large pools of compute, storage, and networking resources throughout a datacenter, all managed through a dashboard that gives administrators control while empowering their users to provision resources through a web interface.
Rancher
Rancher is an open source container management platform that includes full distributions of Kubernetes, Apache Mesos and Docker Swarm, and makes it simple to operate container clusters on any cloud or infrastructure platform.
Docker Compose
With Compose, you define a multi-container application in a single file, then spin your application up in a single command which does everything that needs to be done to get it running.
See all alternatives