# How ElasticSearch nodes syncrhonise in Cluster when nodes have different Index mappings

**URL:** <https://discuss.elastic.co/t/how-elasticsearch-nodes-syncrhonise-in-cluster-when-nodes-have-different-index-mappings/18092>\
**Category:** Elasticsearch\
**Created:** [June 13, 2014, 9:25am UTC](https://discuss.elastic.co/t/how-elasticsearch-nodes-syncrhonise-in-cluster-when-nodes-have-different-index-mappings/18092 "2014-06-13T09:25:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bhupali\_Kalmegh](https://avatars.discourse-cdn.com/v4/letter/b/4bbf92/32.png) [@Bhupali\_Kalmegh](https://discuss.elastic.co/u/Bhupali_Kalmegh)\
**Post date:** [June 13, 2014, 9:25am UTC](https://discuss.elastic.co/t/how-elasticsearch-nodes-syncrhonise-in-cluster-when-nodes-have-different-index-mappings/18092/1 "2014-06-13T09:25:43Z")

</div>

Hi ,

Kindly help me to understand the behaviour of ES nodes in Cluster when  
nodes have different Index mappings.

I have 2 ES nodes both are currently having same Index versions. Now I want  
to upgrade both the nodes with the new index mapping.

Scenario 1 : Without keeping the node down, start mapping changes on Node1.  
During the mapping changes, if any request comes & suppose it is handled by  
Node1 only.  
Now, How & when this Node#1 & Node#2 will synchronise?

Scenario 2 : Without keeping the node down, start mapping changes on Node1.  
During the mapping changes, if any request comes & suppose it is handled by  
Node2.  
Now, How & when this Node#1 & Node#2 will synchronise?

Want to know, whose data will be available after the complete mappings  
completion on both nodes.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/848a1c4e-a0a1-4a65-80d9-d184bda6b3ef%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/848a1c4e-a0a1-4a65-80d9-d184bda6b3ef%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Luis\_Garcia\_Acosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luis_garcia_acosta/32/1266_2.png) [@Luis\_Garcia\_Acosta](https://discuss.elastic.co/u/Luis_Garcia_Acosta)\
**Post date:** [June 13, 2014, 9:41am UTC](https://discuss.elastic.co/t/how-elasticsearch-nodes-syncrhonise-in-cluster-when-nodes-have-different-index-mappings/18092/2 "2014-06-13T09:41:51Z")

</div>

Mapping is applied at cluster level, and existing index wont get the new mapping. You will need to reindex your data, aka create a new index after you apply the new mapping

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/4a02b6e5-71e9-47bf-a334-379a666ed2bd%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/4a02b6e5-71e9-47bf-a334-379a666ed2bd%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Bhupali\_Kalmegh](https://avatars.discourse-cdn.com/v4/letter/b/4bbf92/32.png) [@Bhupali\_Kalmegh](https://discuss.elastic.co/u/Bhupali_Kalmegh)\
**Post date:** [June 13, 2014, 9:47am UTC](https://discuss.elastic.co/t/how-elasticsearch-nodes-syncrhonise-in-cluster-when-nodes-have-different-index-mappings/18092/3 "2014-06-13T09:47:27Z")

</div>

Yes, I am creating new index and then migrating the data from older index  
to new index. So, when this migration is going on, if any request comes,  
then what would be the behaviour?

On Friday, June 13, 2014 3:11:52 PM UTC+5:30, Luis García Acosta wrote:

> Mapping is applied at cluster level, and existing index wont get the new  
> mapping. You will need to reindex your data, aka create a new index after  
> you apply the new mapping

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/c903f779-1b3d-42fd-8d49-4157465c9eac%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c903f779-1b3d-42fd-8d49-4157465c9eac%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [June 13, 2014, 11:03am UTC](https://discuss.elastic.co/t/how-elasticsearch-nodes-syncrhonise-in-cluster-when-nodes-have-different-index-mappings/18092/4 "2014-06-13T11:03:03Z")

</div>

That depends on how you do the migration, it's not something ES handles  
automatically, you need to do it yourself.

Regards,  
Mark Walkom

Infrastructure Engineer  
Campaign Monitor  
email: [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)  
web: [www.campaignmonitor.com](http://www.campaignmonitor.com)

On 13 June 2014 19:47, Bhupali Kalmegh [bhupali123@gmail.com](mailto:bhupali123@gmail.com) wrote:

> Yes, I am creating new index and then migrating the data from older index  
> to new index. So, when this migration is going on, if any request comes,  
> then what would be the behaviour?
> 
> On Friday, June 13, 2014 3:11:52 PM UTC+5:30, Luis García Acosta wrote:
> 
> > Mapping is applied at cluster level, and existing index wont get the new  
> > mapping. You will need to reindex your data, aka create a new index after  
> > you apply the new mapping
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/c903f779-1b3d-42fd-8d49-4157465c9eac%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c903f779-1b3d-42fd-8d49-4157465c9eac%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/c903f779-1b3d-42fd-8d49-4157465c9eac%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/c903f779-1b3d-42fd-8d49-4157465c9eac%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEM624btWzhjYs-RsFSU%3DTN1JUmEDdDfabpNU-0Yd2%2BSP3J%2BiQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEM624btWzhjYs-RsFSU%3DTN1JUmEDdDfabpNU-0Yd2%2BSP3J%2BiQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 1:22am UTC](https://discuss.elastic.co/t/how-elasticsearch-nodes-syncrhonise-in-cluster-when-nodes-have-different-index-mappings/18092/5 "2017-07-06T01:22:45Z")

</div>


