# Migrating from Embedded Elastic Search instance to External Elastic Search Instance

**URL:** <https://discuss.elastic.co/t/migrating-from-embedded-elastic-search-instance-to-external-elastic-search-instance/157924>\
**Category:** Elasticsearch\
**Created:** [November 22, 2018, 6:10pm UTC](https://discuss.elastic.co/t/migrating-from-embedded-elastic-search-instance-to-external-elastic-search-instance/157924 "2018-11-22T18:10:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![swap](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@swap](https://discuss.elastic.co/u/swap)\
**Post date:** [November 22, 2018, 6:10pm UTC](https://discuss.elastic.co/t/migrating-from-embedded-elastic-search-instance-to-external-elastic-search-instance/157924/1 "2018-11-22T18:10:26Z")

</div>

**Today:**  
**App-A** --\> Owns and performs CRUD operations on the data from **Domain-A** (data is captured in a **Relational DB Schema-A** )  
**App-B** --\> Owns and performs CRUD operations on the data from **Domain-B** (data is captured in a **Relational DB Schema-B** )  
**App-C** --\> Owns and performs CRUD operations on the data from **Domain-C** (data is captured in a **Relational DB Schema-C** )  
All of the above Apps A,B and C also use their own **Embedded Elastic Search instance** to help with their respective search operations.  
**Future:**  
Down the line, we'd like to switch Apps A,B,C out of their respective embedded Elastic Search instances and use **External Elastic Search instance**.

**Question:**  
When we do the above:  
i) Do we need to have **3 separate external Elastic Search Instances** , one per App?  
ii) Or a **Single Centralized Elastic Search Instance** that all 3 Apps can point to and use the centralized Elastic Search instance for their respective search operations?  
iii) Any pointers or Best Practices with accomplishing the above migration?

---

<div class="post-metadata">

**Author:** ![mjunaidmuzammil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mjunaidmuzammil/32/56910_2.png) [@mjunaidmuzammil](https://discuss.elastic.co/u/mjunaidmuzammil)\
**Post date:** [November 23, 2018, 10:59am UTC](https://discuss.elastic.co/t/migrating-from-embedded-elastic-search-instance-to-external-elastic-search-instance/157924/2 "2018-11-23T10:59:47Z")

</div>

Moving with a single ES instance or multiple ES instances depends upon your current cluster sizes and future requirements. It depends upon the cluster sizes, number of indices and shards present in your cluster and future growth. Can you share \_cluster/health output of all the 3 clusters?

If the cluster sizes aren't big, you can start with a single cluster ensuring that DomainA, DomainB & DomainC data gets mapped to separate indices, so in the future if you have to split out the clusters than it is easier for you.

Hope this helps.

---

<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 21, 2018, 10:59am UTC](https://discuss.elastic.co/t/migrating-from-embedded-elastic-search-instance-to-external-elastic-search-instance/157924/3 "2018-12-21T10:59:58Z")

</div>

Closed on December 21, 2018, 10:59am UTC

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