# How does ES stores the data?

**URL:** https://discuss.elastic.co/t/how-does-es-stores-the-data/303806
**Category:** Elasticsearch
**Created:** [May 3, 2022, 8:29am UTC](https://discuss.elastic.co/t/how-does-es-stores-the-data/303806 "2022-05-03T08:29:01Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![McLaine](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@McLaine](https://discuss.elastic.co/u/McLaine)
#### Post date: [May 3, 2022, 8:29am UTC](https://discuss.elastic.co/t/how-does-es-stores-the-data/303806/1 "2022-05-03T08:29:01Z")

</div>

Hello!  
how does ES store in a cluster with 5 nodes? All data on 5 nodes or how is that distributed?

---

<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: [May 3, 2022, 8:30am UTC](https://discuss.elastic.co/t/how-does-es-stores-the-data/303806/2 "2022-05-03T08:30:05Z")

</div>

I assume you mean Elasticsearch when you say "XXX".

Generally speaking, yes it will be spread across the nodes in the cluster. Ultimately it will depend on the number of shards for your index, and the number of indices.

---

<div class="post-metadata">

### Author: ![McLaine](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@McLaine](https://discuss.elastic.co/u/McLaine)
#### Post date: [May 3, 2022, 8:41am UTC](https://discuss.elastic.co/t/how-does-es-stores-the-data/303806/3 "2022-05-03T08:41:25Z")

</div>

OK. Do I have to manage this? Can I say: store it on 3 nodes instead off all?

---

<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: [May 3, 2022, 10:35am UTC](https://discuss.elastic.co/t/how-does-es-stores-the-data/303806/4 "2022-05-03T10:35:09Z")

</div>

You can store some data on some nodes, yes, look at allocation filtering. And yes, that is something you manage.

Without that Elasticsearch will handle it for you.

---

<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: [May 31, 2022, 10:35am UTC](https://discuss.elastic.co/t/how-does-es-stores-the-data/303806/5 "2022-05-31T10:35:19Z")

</div>

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