The End of the General Purpose Operating System
The End of the General Purpose Operating System
Why containers and specialization may end general purpose server operating systems like RHEL or Ubuntu. Kubernetes, CloudFoundry, Docker, Containers, CoreOS and others are pointing to smaller more specific OS variants.
Join the DZone community and get the full member experience.Join For Free
Learn how error monitoring with Sentry closes the gap between the product team and your customers. With Sentry, you can focus on what you do best: building and scaling software that makes your users’ lives better.
As interesting chat on Twitter today reminded me that not everyone is probably aware that we're seeing a concerted attempt to dislodge the general purpose operating system from our servers.
I gave a talk about some of this nearly two years ago and I though a blog post looking at what I got right, what I got wrong and what's actually happening would be of interest to folks. The talk was written only a few months after I joined Puppet. With a bunch more time working for a software vendor there are some bits I missed in my original discussion.
What Do You Mean by General Purpose and by End?
First up, a bit of clarification. By general purpose OS I'm referring to what most people use for server workloads today - be it RHEL or variants like CentOS or Fedora, or Debian and derivatives like Ubuntu. We'll include Arch, the various BSD and opensolarisflavors and Windows too. By end I don't literally mean they go away or stop being useful. My hypothosis is that, slowly to begin with then more quickly, they cease to be the default we reach for when launching new services.
The Hypervisor of Containers
The first part of the talk included a discussion of what I'd referred to as the hypervisor of containers, what today would more likely be referred to as a CaaS, or containers as a service. I even speculated that VMWare would have to ship something in this space (See vSphere Integrated Containers and the work on Photon OS) and that counting out OpenShift would be premature (OpenShift 3 shipped predominantly as a Kubernetes distribution). I'll come back to why this is a threat to your beloved Debian servers shortly.
The race to PID1
For anyone who has run Docker, you'll likely have wrestled with the question of where does the role of the host process supervisor (probably systemd) start and the container process supervisor (the Docker engine) end? Do you have to interact directly with both of them?
Now imagine if all of the software on your servers was run in containers. Why do I need two process supervisors now with 100% overlap? The obvious answer is you don't, which is why the fight between Docker and systemd is inevitable. Note that this isn't specific to Docker either. In-scope for cri-o is Container process lifecycle management.
Containers as the Unit of Software
Hidden behind my hypothosis, which mainly went unsaid, was that containers are becoming the unit of software. By which I mean the software we build or buy will increasingly be distributed as containers and run as containers. The container will carry with it enough metadata for the runtime to determine what resources are required to run it.
The number of simplying assumption that come from this shared contract should not be underestimated. At least at the host level you're likely to need lots of near-identical hosts, all simply advertising their capabilities to the container scheduler.
Operating System as Implementation Detail
What we're witnessing in the market is the development of vertically integrated stacks.
- Docker for Mac/Windows/AWS/Azure ships with its own operating system, an Alpine Linux derivative nicknamed Moby, which is not intended for direct management by end users.
- Tectonic from CoreOS is a Kubernetes distribution which runs atop a cluster of managed CoreOS hosts. Most of the operating system is managed with frequent atomic rolling updates.
- OpenShift Enterprise from RedHat is another Kubernetes derivative, this time running atop Atomic host.
- Pivotal CloudFoundry ships with the IaaS, host OS, kernel, file system, container OS all tested together
In all of these cases, the operating system is an implementation detail of the higher level software. It's not intended to be directly managed, or at least managed to the same degree as the general purpose OS you're running today.
This is how the end comes for the majority of your general purpose operating system running servers. The machines running containers will be running something more single purpose, and more and more of the software you're running will be running in containers.
The reason why you'll do this, rather than compose everything yourself, is compatability. Whether it's kernel versions, file system drivers, operating system variants or a hundred variations that make your OS build different from mine. Building and testing software that runs everywhere is a Sisyphean task. There is also the commercial angle at play here, and the advantage of being able to support a single validated product to everyone.
There are lots of implications to this move, and it's going to be interesting to see how it plays out with both early adopters and enterprise customers alike.
- What does this mean for corporate operating system policies?
- How do standard agent-based monitoring systems work in a world of closed vertical stacks?
- Will we see this pattern for other types of service in the AWS Marketplace, where instance launched are inaccessible but automatically updating?
- How does such fast moving software work in environments with rigid change control processes or audit requirements?
- Many large organizations will end up running more than one of these types of system, how best to manage such heterogeneous environments?
- Will we see push back from some parties? In particular, the open source community who may see this mainly serving the needs of vendors?
- Does the end of the general purpose OS lead to greater specialism amongst systems administrators?
I'd love to chat about any of this with other folks who have given it some thought. It's interesting watching grand changes play out across the industry and picking up on patterns that are likely obvious in hindsight. And if you like this sort of thing let me know and I'll try and find time for more speculation.
Published at DZone with permission of Gareth Rushgrove , DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.