The Future of Docker Swarm 2018-2020

The Future of Docker Swarm 2018-2020

Docker Swarm

I use it. My clients use it. I even made the worlds best online and real-world courses on it. This is a comprehensive recap of the present and future of Swarm and the SwarmKit library.


It's Late 2018

I'm a Docker Swarm fan. I use it. My clients use it. I even made the world's best online and real-world courses on it. This is a comprehensive review of the past, present, and future of Swarm.

You may have seen my article from five months ago "It's 2018, Is Swarm Dead?" In it, I address the [false] assumption that Docker was replacing Swarm with Kubernetes. On the contrary, Docker added Kubernetes as a orchestrator option to Docker's growing list.

It's Mid 2019

Docker again confirms Swarms future at DockerCon 2018 EU and DockerCon 2019 with 1. New Swarm features, 2. Large majority of Docker's 700+ customers use Swarm, 3. Swarm team is hiring, 4. Swarm usage is increases on every industry report I've seen in the last year.

It's Late 2019

Mirantis bought all Docker Enterprise and most closed-source software from Docker Inc. a year ago, including the tiny SwarmKit team. Questions were raised on if SwarmKit had a future. The short list of facts:

  • SwarmKit development has slowed to a crawl over the last two years, with only 1-2 people working on any significant new features since 2018.
  • Mirantis has many hundreds of paying Docker Enterprise customers that use Swarm (nearly 700 in 2019). Many of those customers are vocal that they want a future for Swarm, and a simplier orchestrator.
  • Mirantis has pledged at least 2 years of enterprise paid support for Swarm and SwarmKit.

It's Late 2020

Mirantis has stated publicly in interviews or their blog at least 5 times in the last year that they will be supporting Swarm for years and starting in early 2020 they started saying they are working on new features. The CEO again echoed that they are working on new Swarm features in a September 2020 interview.

  • Swarm Jobs has been merged to master and CSI storage support is being worked on, but it'll take a new Docker Engine + CLI release before we get to use Jobs and likely 2021 before we'll see a stable release of CSI storage plug-in support.
  • I did a full YouTube Live show on nearly all this in early 2020, and answered a ton of audience questions about the status of Docker and Swarm after the split.

The rest of this article is from 2018

Now that we're past the release of Docker Enterprise 2.0 with Kubernetes support, I think it's time to revisit the SwarmKit and libnetwork projects and see what's been going on for the last twelve months.

This article is a superset of detailed information from my video interview below where I got to sit down with Docker Swarm engineer Anshul Pundir and talk about the past, present, and future of the Docker Swarm container orchestrator.

The Future of Swarm Interview with Anshul Pundir
Reminder: "Docker Swarm Mode" is the featureset we all use in Docker Engine from the Docker CLI or various GUI's. Those features are made possible mostly by SwarmKit and libnetwork open source libraries. For us to eventually see a feature in "Docker Engine Release 18.XX," the maintainers first need to add the functionality to the library repos. This means that sometimes, if you see a new feature in SwarmKit/libnetwork, it may take months or more for the feature to surface in the next Docker engine release.

Finished Work in Late 2017 and 2018

Let's talk about what's been done over the last twelve months. The major efforts have been around bug fixes, improving scalability, technical debt, and making it easier to troubleshoot and monitor. Here are some major themes and related merged pull requests.

That's definitely not all the work, so if you're looking for something specific, check the full list of closed PRs in moby/moby related to Swarm.

Other Works In Progress (WIP)

Next, let's look at what activities the Swarm team has publicly stated they are working on, or that they intend to work on.

  • WIP for setting sysctl (Linux Kernel parameters) in Swarm services. The sysctl custom parameters are often used for custom kernel settings like network optimization. This works in docker run today and is part of the ongoing effort to bring all security/kernel options from "run" to "services". See here for a full tracking list of docker run to docker service create parity. moby#37701 and swarmkit#2729
  • Device support: The most common use case here is GPU support, so you can schedule services that require/use one or more GPU's and Swarm will know where to schedule the task and how to use the resource. swarmkit#2682
  • Kubemark-like performance testing and validation for Swarm clusters. We first saw some new metrics added to SwarmKit in swarmkit#2673, but I haven't seen any movement specifically on a user-focused testing tool. This idea of a benchmarking and testing tool for clusters has been mentioned by several engineers as something they'd like to see for Swarm, but no code yet that I see.
  • New network and IP allocator (IPAM, port management). It turns out, it's a lot of work to have a group of servers all creating virtual networks, issue subnets and IP's that don't conflict, and keep that state accurate on every server when you have containers spinning up and down every second. Over the last few years we've seen various issues that - as far as I've seen in PRs - are now resolved. It sounds like this work will pave the way for future features and fewer edge cases. swarmkit#2686
  • More advancements in load balancing. I assume this means more knobs to turn on the routing mesh and VIP features of the overlay network driver in Swarm. I don't have specifics.
  • Cluster volumes. Docker doesn't have a built-in Swarm-aware volume driver yet. That work has been in discussion since early 2017. Today you can use REX-Ray and others as 3rd-party Docker Plug-ins with Swarm. There's also Docker's CloudStor driver, but that isn't yet open-sourced or built-in. The SwarmKit team is interested in picking this work up again and possibly supporting CSI, the Container Storage Interface, which other orchestrators now support.
  • Custom default IP subnets are in bridge networks, coming to overlay hopefully. moby#36396

Docker Swarm Team Is Hiring

In my video interview with Anshul above, he points out that they are looking for Swarm engineers.  See "Orchestration Engineers" on their careers listing for more info.

Thanks To Docker

Thanks to the Docker team and especially Anshul Pundir and Mano Marks for spending time with me at Docker HQ and helping the Docker Captains share with and educate the community.

Get More Swarm Education

My Swarm Mastery course is the best way to learn Swarm on the Internet! You can also get Docker 101 training with my Docker Mastery course.