简体   繁体   English

使用 etcd 的 Docker Swarm

[英]Docker Swarm with etcd

如果 Swarm 模式下的 Docker 有一个内置的发现系统,那么使用其他服务发现(如 etcd )运行 Swarm 模式有什么好处?

I'm sure someone could give a more specific answer to this question but in my opinion there are basically no advantages of running Swarm with ETCD instead of running Swarm mode.我相信有人可以对这个问题给出更具体的答案,但在我看来,使用 ETCD 运行 Swarm 而不是运行 Swarm 模式基本上没有优势。 It has been designed with a built-in orchestration to avoid the use of a tier KV store and facilitate the cluster management which is a good thing.它采用内置编排设计,以避免使用层级 KV 存储并促进集群管理,这是一件好事。

See https://blog.docker.com/2016/06/docker-1-12-built-in-orchestration/https://blog.docker.com/2016/06/docker-1-12-built-in-orchestration/

The Docker Overlay driver has existed since Docker Engine 1.9, and an external K/V store was required to manage state for the network. Docker Overlay 驱动程序自 Docker Engine 1.9 起就已经存在,并且需要一个外部 K/V 存储来管理网络状态。 Docker Engine 1.12 integrated the control plane state into Docker Engine so that an external store is no longer required. Docker Engine 1.12 将控制平面状态集成到 Docker Engine 中,因此不再需要外部存储。 Source: https://docker-k8s-lab.readthedocs.io/en/latest/docker/docker-etcd.html来源: https : //docker-k8s-lab.readthedocs.io/en/latest/docker/docker-etcd.html

One relevant advantage could simply be that you already know how to use it.一个相关的优势可能只是您已经知道如何使用它。 Docker supports multiple discovery backends in addition to its built-in system, so people who know their way around etcd or consule (which are well established systems) know how to check on information for their swarm setup.除了其内置系统之外,Docker 还支持多个发现后端,因此了解 etcd 或 consule(它们是完善的系统)的人知道如何检查其 swarm 设置的信息。

We have this case at our firm and etcd works perfect for us, so we didn't have to work the team into a new technology from scratch.我们公司有这个案例,etcd 非常适合我们,所以我们不必让团队从头开始使用新技术。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM