
Container Tools
- Docker - Container Definition and nice CLI to control Containers
- Docker Compose - Define applications that contain more than one container.
- Mesos - Meta-scheduler, Distribute Kernel
- Docker Swarm - Container Scheduler that can talk to MesosS
- Kubernetes - Container Scheduler that can schedule and control Containers.
- Marathon - Service based scheduler for containers. Plugin to Mesos
- Chronos - Temporal Based Scheduler for containers. Plugin to Mesos
This is how I see everything fitting together.
Docker (Production - 1.7.0)
This helps developers define how to configure a container. Starts with a base image and then allows you to run commands, expose ports, and copy data into the container through a simple configuration file. Docker also gives CLI and REST API to allow users to control the individual containers. It requires a Docker controller running on a physical or virtual machine.
Docker Compose (Beta - 1.7.0)
Gives developers the ability to define an application as a set of micro-services. It shows the dependencies between the micro-services (containers). Which ports they expose to each other, their startup order, and any shared resources(data) between the containers that make up the application.
Mesos
(Production - 0.23.0)
"A distributed systems kernel" from the mesos web site.
Mesos describes itself as a distributed system kernel. It is responsible for picking physical compute nodes to run containers, jobs, micro-services, etc... I gets telemetry from the physical hardware and can determine which machines can best handle incoming jobs. It then provisions machines and executes job on those machines. Schedulers like Kubernetes, Marathon, Chronos, and Docker Swarm sit ontop of Mesos and act as the orchestrator for the containers running in the cloud.
Schedulers
Docker Swarm (Still in Alpha - 0.3.0 )
If you want to use a familiar Docker API you can use Docker Swarm with Mesos to control multiple containers on mutilple hosts. There is rumor it may also allow you to talk to Kubernetes in the future. Check out http://www.techrepublic.com/article/docker-and-mesos-like-peanut-butter-and-jelly/ for more information.
Kubernetes ( pre-production Beta - 0.19.0 )
- If you want to launch groups of containers (K8 Pods) co-scheduled and co-located together, sharing resources on the same machine.
- If you want to launch a service alongside one or more sidekick containers (e.g. log archiver, metrics monitor) that live next to the parent container.
- if you want to use the K8s label-based service-discovery, load-balancing, and replication control. Very cool stuff for managing large number of containers.
- If you want to manage groups of containers(K8 Pods).
- If you want to load balance in isolation (K8 Pods).
Marathon (Production - 0.8.2)
- If you want to launch applications that contain long running heterogeneous apps/services (Docker and Non-Docker).
- If you want to use Mesos attributes for constraint-based scheduling.
- If you want to use application groups and dependencies to launch, scale, or upgrade related services.
- If you want to use event driven health checks to automatically restart unhealthy services.
- If you want to integrate HAProxy or Consul for service discovery.
- If you want a nice web UI or REST API to launch and monitor apps.
Chronos (Production - 2.3.4)
- If you want to launch applications that contain short running heterogeneous apps/services (Docker and Non-Docker).
- If you want to schedule a remporal task to run at a specific time/schedule, just like cron.
- If you want to schedule a DAG workflow of dependent tasks.
- If you want a nice web UI or REST API to launch and monitor apps.
- If you want to use a scheduler that was built from the start with Mesos in mind.
Ok. This is the start. I am sure many of you have more to add to the list. Please let me know what I am missing.
DWP.
No comments:
Post a Comment