How does a Consul agent know it is the leader of a cluster?

前端 未结 5 2055
既然无缘
既然无缘 2021-02-14 09:40

In Consul you can have many agents as servers or clients. Amongst all servers one is chosen as the leader. From the agent\'s point of view, how does it know it is the leader?

5条回答
  •  灰色年华
    2021-02-14 10:16

    It will list the result in the consul group by executing "consul info" command enter image description here

提交回复
热议问题