# How does Dgraph cluster determines which node is leader node?

**URL:** <https://discuss.dgraph.io/t/how-does-dgraph-cluster-determines-which-node-is-leader-node/5452>\
**Category:** Dgraph\
**Created:** [November 18, 2019, 7:39am UTC](https://discuss.dgraph.io/t/how-does-dgraph-cluster-determines-which-node-is-leader-node/5452 "2019-11-18T07:39:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vicky2412](https://avatars.discourse-cdn.com/v4/letter/v/ccd318/32.png) [@vicky2412](https://discuss.dgraph.io/u/vicky2412)\
**Post date:** [November 18, 2019, 7:39am UTC](https://discuss.dgraph.io/t/how-does-dgraph-cluster-determines-which-node-is-leader-node/5452/1 "2019-11-18T07:39:44Z")

</div>

How does Dgraph cluster determines which node is leader node? What leader node commands to all the nodes which are part of the cluster?

Kindly advise on this.

---

<div class="post-metadata">

**Author:** ![bcyyl](https://avatars.discourse-cdn.com/v4/letter/b/ec9cab/32.png) [@bcyyl](https://discuss.dgraph.io/u/bcyyl)\
**Post date:** [November 18, 2019, 9:35am UTC](https://discuss.dgraph.io/t/how-does-dgraph-cluster-determines-which-node-is-leader-node/5452/2 "2019-11-18T09:35:04Z")

</div>

Dgraph use the Raft method to determine the leader node. The details could find in [https://docs.dgraph.io/design-concepts/#raft](https://docs.dgraph.io/design-concepts/#raft)

---

<div class="post-metadata">

**Author:** ![vicky2412](https://avatars.discourse-cdn.com/v4/letter/v/ccd318/32.png) [@vicky2412](https://discuss.dgraph.io/u/vicky2412)\
**Post date:** [November 18, 2019, 10:16am UTC](https://discuss.dgraph.io/t/how-does-dgraph-cluster-determines-which-node-is-leader-node/5452/3 "2019-11-18T10:16:50Z")

</div>

Thank you Bcyyl 🙂 !!!..

Regards,  
Vicky.P
