# App search - Engine Sharding

**URL:** <https://discuss.elastic.co/t/app-search-engine-sharding/310102>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [July 20, 2022, 7:48am UTC](https://discuss.elastic.co/t/app-search-engine-sharding/310102 "2022-07-20T07:48:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gerardo\_Zenobi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gerardo_zenobi/32/106790_2.png) [@Gerardo\_Zenobi](https://discuss.elastic.co/u/Gerardo_Zenobi)\
**Post date:** [July 20, 2022, 7:48am UTC](https://discuss.elastic.co/t/app-search-engine-sharding/310102/1 "2022-07-20T07:48:11Z")

</div>

Hi there 👋

I wanted to ask about sharding or distributing engines geographically. Some use cases come to mind:

- customers that would like to have their data in a given country for security or other reasons.
- our company wanting to serve certain customers from locations as close as possible to them to improve latency/performance.
- simply sharding for scalability reasons

Given the above, then, I might have most of my customer data in app search engines located in France (and sharded by a given field) and would like others to be in the US.

Would this be possible in `Enterprise App Search`?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Carlos\_D](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carlos_d/32/126245_2.png) [@Carlos\_D](https://discuss.elastic.co/u/Carlos_D)\
**Post date:** [July 22, 2022, 11:09am UTC](https://discuss.elastic.co/t/app-search-engine-sharding/310102/2 "2022-07-22T11:09:56Z")

</div>

Hi @Gerardo_Zenobi :

It is not possible to have a single, unified Engine that relies in different Elasticsearch clusters.

An alternative would be to create separate Enterprise Search instances on different locations, and route the user to them depending on user location or the data to be queried.

---

<div class="post-metadata">

**Author:** ![Gerardo\_Zenobi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gerardo_zenobi/32/106790_2.png) [@Gerardo\_Zenobi](https://discuss.elastic.co/u/Gerardo_Zenobi)\
**Post date:** [July 25, 2022, 9:38am UTC](https://discuss.elastic.co/t/app-search-engine-sharding/310102/3 "2022-07-25T09:38:58Z")

</div>

Thanks @Carlos_D

When you say Enterprise Search Instances are you talking about creating a new deployment/cluster ? I don't see any other place where one can create "instances" and select where they would be located.

Is there functionality to clone/duplicate a deployment ? Otherwise I imagine the creation of the engines and their configuration would need to be done manually ?

---

<div class="post-metadata">

**Author:** ![Carlos\_D](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carlos_d/32/126245_2.png) [@Carlos\_D](https://discuss.elastic.co/u/Carlos_D)\
**Post date:** [July 28, 2022, 11:17am UTC](https://discuss.elastic.co/t/app-search-engine-sharding/310102/4 "2022-07-28T11:17:33Z")

</div>

> When you say Enterprise Search Instances are you talking about creating a new deployment/cluster ?

Yes!

> Is there functionality to clone/duplicate a deployment ?

Not yet. I'm afraid that Enterprise Search is not compatible with [Cross-Cluster Replication](https://www.elastic.co/guide/en/elasticsearch/reference/current/xpack-ccr.html).

It is doable, and we will publish a blog soon to address this issue.

> I imagine the creation of the engines and their configuration would need to be done manually ?

You could use the APIs for saving the engine settings, and recreate the engine and its documents via API as well.

---

<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:** [August 25, 2022, 11:17am UTC](https://discuss.elastic.co/t/app-search-engine-sharding/310102/5 "2022-08-25T11:17:37Z")

</div>

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