gpt4 book ai didi

docker - Manager Leader 和 Manager 有什么区别

转载 作者:行者123 更新时间:2023-12-02 18:02:21 28 4
gpt4 key购买 nike

Docker正在编写的网站:

The MANAGER STATUS column shows node participation in the Raft consensus:

  • No value indicates a worker node that does not participate in swarm management.
  • Leader means the node is the primary manager node that makes all swarm management and orchestration decisions for the swarm.
  • Reachable means the node is a manager node participating in the Raft consensus quorum. If the leader node becomes unavailable, the node is eligible for election as the new leader.
  • Unavailable means the node is a manager that can’t communicate with other managers. If a manager node becomes unavailable, you should either join a new manager node to the swarm or promote a worker node to be a manager.


所以经理领导 制定所有群管理和编排决策 .
但那些是什么 决定 ?

我可以从任何经理那里创建新服务,我不需要从经理领导那里做。

更新:
this article中提到了,就像@Yunakun 提到的,一切都在经历:

Among the managers, the leader node is the one that logs all the actions that are done in the cluster (node added/removed, creation of a service, …). Swarm then ensures that the leader’s logs are replicated within each manager so one of them can take the leader role in case the current one becomes unavailable.

最佳答案

Swarm 管理器节点使用 Raft Consensus Algorithm 来管理 swarm 状态。

Raft 是基于领导者的,这意味着只有领导者节点才有能力改变 swarm 的状态。如果您向跟随者节点发送需要更改状态的请求,则该请求将被转发到领导者节点。

那些决定是可以改变 swarm 状态的决策,例如在哪个节点上部署新服务或者是否应该扩展正在运行的服务。

决策由 Raft 内部处理。它们应该对用户透明。

关于docker - Manager Leader 和 Manager 有什么区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49596962/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com