In Docker swarm mode, is there a way to get managers' information from workers? -


in docker swarm mode can run docker node ls list swarm nodes not work on worker nodes. need similar function. know worker nodes not have strong consistent view of cluster, there should way current leader or reachable leader.

so there way current leader/manager on worker node on docker swarm mode 1.12.1?

the docs , error message worker node mention have on manager node execute swarm commands or view cluster state:

error message worker node: "this node not swarm manager. worker nodes can't used view or modify cluster state. please run command on manager node or promote current node manager."

after further thought: 1 way crack nut use external key/value store etcd or other key/value store swarm supports , store elected node there can queried nodes. can see examples of in shipyard docker management / ui project: http://shipyard-project.com/

another simple way run redis service on cluster , service announce elected leader. announcement service have constraint run on manager node(s): --constraint node.role == manager


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -