Clicked Gallery

Slurm vs Kubernetes: what's the difference?

Highlighted from a real engineering doc. Explained by Clicked.

Used in a sentence

Engineering Notes · AI Systems

The job listing asked for engineers who had run large training clusters on either Slurm or Kubernetes.

The reader highlighted one word in the docs. Clicked explained the technical term “Kubernetes” in plain language:

Explained in three depths

Same facts, different vibe — Slang mode 😎

The Clicked way

●○○

Overview

Slurm and Kubernetes are two pieces of software that manage a cluster of machines. Installed across the whole cluster, each decides which program runs on which machines, and when. Both are free, open-source programs, and neither name is a company. Slurm came out of the United States national laboratories in 2002, Kubernetes out of Google in 2014. A cluster runs one of them, not both: two managers handing out the same machines would each give away what the other had already allocated. The difference between them is the kind of work each was built for. Slurm runs a queue for jobs that finish: ask for machines, wait your turn, run to the end, hand them back. Kubernetes maintains services that must not stop: you state what should always be running, and it starts replacements whenever a machine fails. Slurm still schedules about 60% of the world's top supercomputers; Kubernetes runs much of the software behind the modern web.
●○○

Overview

Slurm and Kubernetes are the two big names that boss a building of 1,000 computers, deciding whose stuff goes where and who waits. Neither is a business, and neither is a gadget you can buy. They are downloads, given away, with names only an engineer could love. You put one of them in charge per building, never both, since two bosses promising the same computer to different people ends about how you would expect. Between them sits one question. Does your stuff get done, the way a calculation does? Slurm lines it up, sees it through, and takes the computers off you afterwards. Must it carry on forever, the way a website does? Kubernetes babysits it, replacing the parts as the hardware underneath them dies. 😎

A quick take — often all you need.

●●○

Detail

Slurm and Kubernetes are both cluster software. A manager program runs on one machine, a small agent runs on every other, and people hand work to the manager rather than choosing machines themselves. The job is the one a laptop's operating system already does: sharing hardware between programs. At the scale of thousands of machines and whole organisations, it adds a question a laptop never faces: whose work has to wait. Slurm, written for the United States national laboratories in 2002, answers with a queue. You ask for machines for a number of hours, wait behind whoever asked earlier, run to the end, and the machines go back to the pool. It was built for supercomputers, where the cluster is a fixed, costly asset that must not sit idle. It still schedules about 60% of the world's top ones. Kubernetes, released by Google in 2014 from its experience running web services, answers with a standing instruction. You declare what should always be true, such as five copies of a service running. Whenever a machine fails, the software makes it true again, starting replacements on the machines left. It was built for work with no end, on machines that come and go. The unit it moves is the container, a program packed with everything it needs so it can start on any machine in seconds. Two answers exist because two industries built them separately. They were only compared once AI needed both: enormous jobs that must finish, and services that must never stop. The real difference is not quality but the question each answers: does the work end, or must it keep going?
●●○

Detail

Here is what using each one feels like. With Slurm, you write down what you want, say 64 computers for 6 hours, and you take a ticket. When your turn comes, the computers are yours for the booked stretch. Your calculation goes till it is done, and then they go to the person after you. The system's obsession is that nothing sits idle, because a supercomputer earning nothing is a very expensive radiator. With Kubernetes, there is no ticket and no leaving. You pin up an instruction, keep 5 of these alive, always, and Kubernetes enforces it round the clock. A computer dies at 3 in the morning and a replacement is up before anyone's phone buzzes. That is why websites rarely seem to notice their own hardware failing. The pair grew up apart, in research labs and in web giants, and for years the two did not meet. Then AI training turned up wanting both at once: giant calculations that must get done, and chatbots that must not blink. The two camps have argued about it since. It still comes down to one question. Does your stuff get done? Take a ticket. Must it stay alive? Pin up the instruction. 😎

Want more? One click digs deeper.

●●●

Analogy

Slurm is like the booking sheet for a sports hall; Kubernetes is like the staff roster for a hospital ward. The booking sheet hands out a scarce thing in turns. You get the whole hall from two until four, nobody else can use it while you have it, and at four it goes to the next name on the list. The keeper's whole aim is a full calendar with no empty hours. The ward roster is a different kind of rule: three nurses on duty at all times, day and night, with no finishing date. When one calls in sick, the manager fills the gap at once, because the requirement does not pause while they look. The booking sheet is Slurm, sharing out slots that end. The roster is Kubernetes, keeping a state that must always hold. Both decide who gets a scarce resource.
●●●

Analogy

Slurm is like the diary for a rehearsal room; Kubernetes is like the stage manager of a theatre where the show must go on. The rehearsal room is yours from seven till ten, and at ten the following band loads in whether you finished or not. The stage manager lives under a harder law: there is a performance tonight, and every evening after, no matter what. If the lead loses her voice at six, the understudy is dressed by seven and the audience never knows. That is Kubernetes when a computer dies: the replacement is on stage before the crowd notices anything. Booked time that runs out, versus a show that must happen every night. Which you need depends on whether your work is a rehearsal or a run. 😎

Unfamiliar concept? A real-world example makes it click — fresh analogies on tap.

AI explanations may contain errors · Not professional advice

Formal definition — The same term, explained the usual way

Slurm is an open-source workload manager and job scheduler for high-performance computing clusters, developed at Lawrence Livermore National Laboratory from 2002; it allocates nodes to queued batch jobs according to priority, fair-share and resource policies, and predominates on the TOP500 list. Kubernetes is an open-source container-orchestration platform released by Google in 2014, descended from its internal Borg system and now governed by the Cloud Native Computing Foundation; it maintains a declarative desired state, scheduling containers in pods across nodes and rescheduling them on failure. The two embody batch scheduling and service orchestration respectively; hybrid deployments run them side by side on partitioned clusters or bridge them with projects developed for that purpose.

Want Clicked to explain terms like “Kubernetes” directly in your browser — including on PDFs?

Add to Chrome — Free

50 free Explanations · No credit card required