# Multi-tenancy in Elasticsearch (development environment)

**URL:** <https://discuss.elastic.co/t/multi-tenancy-in-elasticsearch-development-environment/134855>\
**Category:** Elasticsearch\
**Created:** [June 6, 2018, 6:03pm UTC](https://discuss.elastic.co/t/multi-tenancy-in-elasticsearch-development-environment/134855 "2018-06-06T18:03:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashok.gadiraju](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@ashok.gadiraju](https://discuss.elastic.co/u/ashok.gadiraju)\
**Post date:** [June 6, 2018, 6:03pm UTC](https://discuss.elastic.co/t/multi-tenancy-in-elasticsearch-development-environment/134855/1 "2018-06-06T18:03:14Z")

</div>

My use case for multi tenancy with elastic search is to have indexes with same name and type across different development environments (dev, test, stage)

Is it possible to have this set up of multi tenancy in same cluster ? If yes, what are possible ways?

---

<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 6, 2018, 6:07pm UTC](https://discuss.elastic.co/t/multi-tenancy-in-elasticsearch-development-environment/134855/2 "2018-06-06T18:07:27Z")

</div>

You can, but would you do this for your production database?

What happens if someone decides to stress test the cluster in dev and takes down production?

---

<div class="post-metadata">

**Author:** ![ashok.gadiraju](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@ashok.gadiraju](https://discuss.elastic.co/u/ashok.gadiraju)\
**Post date:** [June 6, 2018, 6:17pm UTC](https://discuss.elastic.co/t/multi-tenancy-in-elasticsearch-development-environment/134855/3 "2018-06-06T18:17:29Z")

</div>

No, this is not for production database. We have separate dedicated nodes for non-prod and prod.

Just want to split non-prod cluster into multi-tenants(dev,..) instead of creating clusters for each environment?

Do you have any pointers on how can we do this?

---

<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 6, 2018, 6:27pm UTC](https://discuss.elastic.co/t/multi-tenancy-in-elasticsearch-development-environment/134855/4 "2018-06-06T18:27:41Z")

</div>

Ah right, misunderstood sorry.

> [@ashok.gadiraju](#):
>
> Just want to split non-prod cluster into multi-tenants(dev,..) instead of creating clusters for each environment?
> 
> Do you have any pointers on how can we do this?

Just pick index names that are indicative of the environment they serve. Elasticsearch will happily host them in the same cluster.

---

<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 4, 2018, 6:27pm UTC](https://discuss.elastic.co/t/multi-tenancy-in-elasticsearch-development-environment/134855/5 "2018-07-04T18:27:50Z")

</div>

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