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?
It will list the result in the consul group by executing "consul info" command enter image description here