# Specify master nodes or non-master nodes in client configs?

**URL:** <https://discuss.elastic.co/t/specify-master-nodes-or-non-master-nodes-in-client-configs/255614>\
**Category:** Elasticsearch\
**Created:** [November 17, 2020, 3:28am UTC](https://discuss.elastic.co/t/specify-master-nodes-or-non-master-nodes-in-client-configs/255614 "2020-11-17T03:28:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ted.fed](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ted.fed/32/56636_2.png) [@ted.fed](https://discuss.elastic.co/u/ted.fed)\
**Post date:** [November 17, 2020, 3:28am UTC](https://discuss.elastic.co/t/specify-master-nodes-or-non-master-nodes-in-client-configs/255614/1 "2020-11-17T03:28:45Z")

</div>

I want to know what is the best practice for client-side config.  
Should we specify only the master nodes dedicated for master only role?  
Or should we specify only the non-master nodes (like data nodes)?  
Or both need to be specified?

Thank you,

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 17, 2020, 5:05am UTC](https://discuss.elastic.co/t/specify-master-nodes-or-non-master-nodes-in-client-configs/255614/2 "2020-11-17T05:05:50Z")

</div>

You are better off using non-master nodes.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 15, 2020, 5:05am UTC](https://discuss.elastic.co/t/specify-master-nodes-or-non-master-nodes-in-client-configs/255614/3 "2020-12-15T05:05:54Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
