Home > News content

Did the k8s beat docker swarm?

via:博客园     time:2019/10/21 0:01:33     readed:66

: Pavan Belagatti is a marketing engineer and a contributing writer.

data-ratio=0.5618729096989966

Think kubernetes easily beat docker swarm? The author of this paper says that it is not easy to make a conclusion. This paper analyzes the original reason.

If you fully believe in the results of Google trend (Google Trends), you will think that Kubernetes easily beat Docker Swarm.

But is this valid evidence that kubernetes won? and be not so.

In fact, the adoption rate of Docker is still growing at an exponential level. More and more companies are also using Docker. in production environments After all, it is important to use a orchestration platform to extend and manage containers.

Here's what you need to know about docker swarm and kubernetes right now.

Scale up

Imagine that you have been using docker for a while and deployed on several different servers. Your application starts to encounter huge traffic. You need to scale up quickly. How to scale up from 3 servers to 40 servers in the future?

How will you decide which container to use? How will you monitor all these containers and make sure they exit and restart?

At this time kubernetes had a place.

Now, you may wonder if you can easily get the same results using Docker Swarm, and the complexity is much lower.

Wait a minute, it's not easy to compare kubernetes with docker swarm.

After all, Docker Swarm is suitable for environments that are critical for simple and fast development, while Kubernetes is suitable for environments where large and medium-sized clusters run complex applications.

There is no doubt that kubernetes is of great concern. The kubernetes project on GitHub has more than 1500 contributors, who are constantly releasing a large number of tools and extensions. It's a huge support community.

But it is not always the best choice. Whether to choose Docker Swarm or Kubernetes can only be answered according to the type of application you are running. Also keep in mind other considerations such as ease of installation and setup, logging and supervision, and overall scalability.

For example, when it comes to installation and setup, docker swarm wins. It's elegant and simple, easy to install, and you can set it up quickly. Kubernetes, on the other hand, is more complex. There is also a steep learning curve.

Of course, Docker now officially supports Swarm and Kubernetes.. This is another reason why some people say Kubernetes has won. They expect Docker to spend less energy promoting Swarm or promoting it as the preferred solution, and we shouldn't be surprised to see Swarm eventually disappear.

But should we still compare the two? Take a look at some statistics.

data-ratio=0.5558194774346793

Both Docker and Kubernetes are winners, according to RightScale's 2019 Cloud report: Kubernetes usage rose from 27 percent to 48 percent.

When it comes to container orchestration platform usage, a quarterly cloud developer trend report from digital ocean shows this trend below. While kubernetes is generally very popular, docker swarm is more commonly used by the smallest companies (1-5 employees) (41% use swarm, 31% use kubernetes).

A point of view.

Dockercon 2018 EU conference and dockercon 2019 conference released new swarm functions, which further verified the platform.

The numbers also look good. The results show that the startup utilization rate of Swarm is undoubtedly on the rise. Moreover, it is worth noting that the vast majority of Docker's more than 700 customers use Swarm.

At the end of the day, it's kubernetes. But other tools can improve the mix and match effect and help you finish your work in an extremely mature and advanced way.

Of course, the focus should not be on fancy and popular tools. The main goal is to build a stable system.

It's exaggerating to say that swarm is dead.

China IT News APP

Download China IT News APP

Please rate this news

The average score will be displayed after you score.

Post comment

Do not see clearly? Click for a new code.

User comments