经理领导与经理之间有什么区别
What is the difference between Manager Leader to Manager
在 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 共识算法来管理 swarm 状态。
Raft是leader-based,也就是说只有leader节点才有能力改变swarm的状态。如果您向跟随者节点发送需要更改状态的请求,则此请求将被转发给领导者节点。
那些决定是可以改变群体状态的决定,例如,在哪个节点上部署新服务或应该扩展运行服务。
并且决策由 Raft 内部处理。它们应该对用户透明。
在 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 共识算法来管理 swarm 状态。
Raft是leader-based,也就是说只有leader节点才有能力改变swarm的状态。如果您向跟随者节点发送需要更改状态的请求,则此请求将被转发给领导者节点。
那些决定是可以改变群体状态的决定,例如,在哪个节点上部署新服务或应该扩展运行服务。
并且决策由 Raft 内部处理。它们应该对用户透明。