# Multi tenant cluster architecture

**URL:** <https://discuss.elastic.co/t/multi-tenant-cluster-architecture/268841>\
**Category:** Elasticsearch\
**Created:** [March 30, 2021, 9:26pm UTC](https://discuss.elastic.co/t/multi-tenant-cluster-architecture/268841 "2021-03-30T21:26:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![liorg2](https://avatars.discourse-cdn.com/v4/letter/l/ed8c4c/32.png) [@liorg2](https://discuss.elastic.co/u/liorg2)\
**Post date:** [March 30, 2021, 9:26pm UTC](https://discuss.elastic.co/t/multi-tenant-cluster-architecture/268841/1 "2021-03-30T21:26:24Z")

</div>

How would you design a multi tenant cluster in eladtic 7.12? Should support 5000 tenants . Some have less than 100mb of data and some 150 gb or more.  
I thought of having shared datastream for the small ones, and dedicated datastreams to the bigger ones.  
My question is if that's the best option or maybe routing shouldbe preferred, and if it is-whats the best approach to move a client from a shared index?

Thanks

---

<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:** [March 31, 2021, 1:07am UTC](https://discuss.elastic.co/t/multi-tenant-cluster-architecture/268841/2 "2021-03-31T01:07:35Z")

</div>

> [@liorg2](#):
>
> I thought of having shared datastream for the small ones, and dedicated datastreams to the bigger ones.

Yep, that makes sense.

> [@liorg2](#):
>
> whats the best approach to move a client from a shared index?

Put them into their own index and use an alias to link the new + old indices together?

---

<div class="post-metadata">

**Author:** ![liorg2](https://avatars.discourse-cdn.com/v4/letter/l/ed8c4c/32.png) [@liorg2](https://discuss.elastic.co/u/liorg2)\
**Post date:** [March 31, 2021, 6:15am UTC](https://discuss.elastic.co/t/multi-tenant-cluster-architecture/268841/3 "2021-03-31T06:15:22Z")

</div>

thank @warkolm ,  
The thing is that I don't want to keep querying the shared index forever, so I was hoping to find a way to move the shared data into the dedicated index

---

<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:** [April 28, 2021, 6:15am UTC](https://discuss.elastic.co/t/multi-tenant-cluster-architecture/268841/4 "2021-04-28T06:15:57Z")

</div>

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