Spunk Autos

Websites and web tools

Container Orchestration: A Decision Guide

Container orchestration means software that starts, places, restarts and scales containers across several machines. It solves real problems for large systems and creates new ones for small teams. This guide helps you decide what level you actually need, from a single server to a full orchestrator.

Start with questions, not tools

  1. How many services do you run? A website, an API and a database is three, not thirty.
  2. How many people will operate it, and do they have time to learn and maintain a cluster?
  3. How much downtime is acceptable, in minutes per month?
  4. Does traffic swing sharply, or is it steady?
  5. Do you need to run in more than one region or cloud?

Turn uptime into minutes

Availability goals are easier to discuss as time. A 30-day month has 43,200 minutes.

TargetAllowed downtime per 30 days
99 percentAbout 432 minutes, roughly 7.2 hours
99.9 percentAbout 43 minutes
99.99 percentAbout 4.3 minutes

A booking site for a single garage can usually live with the first or second row. Each extra nine costs a lot more in design and operations.

The levels

Level 1: a managed platform

Push code or an image, and the platform runs it, restarts it and handles certificates. There is little to operate. This fits most small business sites and APIs.

Level 2: one host with a compose file

Run a few containers on one virtual machine using a compose file and a restart policy. It is simple to understand and cheap. The weakness is that the host is a single point of failure, so backups and a tested rebuild procedure matter.

Level 3: a managed container service

Cloud providers offer services that run containers across machines without you managing the control plane. You get health checks, rolling deploys and scaling with less to learn than a full orchestrator.

Level 4: a full orchestrator such as Kubernetes

You get scheduling across many nodes, self-healing, service discovery, fine-grained scaling and a large ecosystem. You also take on networking, storage, upgrades, security policies and monitoring of the cluster itself. Even managed offerings leave much of that work with you.

Signs you need to move up a level

  • Deploys cause downtime you can no longer accept.
  • One machine cannot handle the load and vertical scaling has run out.
  • You run many services owned by different teams.
  • You need automatic recovery when a machine fails, not a person rebuilding it.

Signs you moved up too early

  • More time goes into the cluster than into the product.
  • Only one person understands how it works.
  • Upgrades of the orchestrator keep being postponed.
  • Most nodes sit idle most of the time.