# 2 master nodes and share data

**URL:** <https://discuss.elastic.co/t/2-master-nodes-and-share-data/62868>\
**Category:** Elasticsearch\
**Created:** [October 12, 2016, 8:44pm UTC](https://discuss.elastic.co/t/2-master-nodes-and-share-data/62868 "2016-10-12T20:44:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![minniek](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@minniek](https://discuss.elastic.co/u/minniek)\
**Post date:** [October 12, 2016, 8:44pm UTC](https://discuss.elastic.co/t/2-master-nodes-and-share-data/62868/1 "2016-10-12T20:44:56Z")

</div>

Hello everyone,  
I really want to know if I have 2 master nodes with configuration "node.master: true and node.data:true" How are they save the data ? Are they going to share the data? 50% and 50%? or are they going to have the same data in every server?  
I am looking to share the data between two servers with the same characteristics (high ram and hard disk) but I can not find any documentation about " two servers and share data 50%"

If you have any ideas please let me know  
Thanks a lot

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [October 13, 2016, 5:37am UTC](https://discuss.elastic.co/t/2-master-nodes-and-share-data/62868/2 "2016-10-13T05:37:36Z")

</div>

This will depend on how many replicas you have configured for your indices. If you set it to 0, only one copy of the data will be stored and it will be shared across the two nodes. This naturally don't give you any high availability as part of the data will be unavailable when a node is unavailable. If you set replicas to 1, each shard will have a primary and a replica shard, and both nodes will each hold one of these. In this case all the data will be stored on both 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:** [July 5, 2017, 10:12pm UTC](https://discuss.elastic.co/t/2-master-nodes-and-share-data/62868/3 "2017-07-05T22:12:48Z")

</div>


