# Having 0 shard for cluster elastisearch

**URL:** <https://discuss.elastic.co/t/having-0-shard-for-cluster-elastisearch/282150>\
**Category:** Elasticsearch\
**Created:** [August 22, 2021, 2:48am UTC](https://discuss.elastic.co/t/having-0-shard-for-cluster-elastisearch/282150 "2021-08-22T02:48:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![selin](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@selin](https://discuss.elastic.co/u/selin)\
**Post date:** [August 22, 2021, 2:48am UTC](https://discuss.elastic.co/t/having-0-shard-for-cluster-elastisearch/282150/1 "2021-08-22T02:48:16Z")

</div>

Hi friend, i have 3 container elasticsearch. I am assuming it should crete 5 shard for each container as 1 index in each container and each container have multiple shard/ When I fired shards api, i getting 0. Please advice what configuration i must. for testing my data is small

```auto
cat/shards/index_name?v=true

```

---

<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:** [August 22, 2021, 4:27am UTC](https://discuss.elastic.co/t/having-0-shard-for-cluster-elastisearch/282150/2 "2021-08-22T04:27:49Z")

</div>

It'd be useful if you showed the output from that command 🙂

---

<div class="post-metadata">

**Author:** ![selin](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@selin](https://discuss.elastic.co/u/selin)\
**Post date:** [August 22, 2021, 5:01am UTC](https://discuss.elastic.co/t/having-0-shard-for-cluster-elastisearch/282150/3 "2021-08-22T05:01:04Z")

</div>

```auto
index shard prirep state docs store ip node
index-name20210820 0 p STARTED 1 49.9kb 172.23.0.3 es3
index-name20210820 0 r STARTED 1 49.9kb 172.23.0.3 es1

```

can you help me which is better single index or multiple index. i read alot till i not sure what the best choice. i will have roughly 2 gb data per index if only based on environment. wont this be slow? as it need under 2gb data. it is better create small index based log name so when it search it will be slow. I very confuse in creating index what is correct approach.

what are pros and cons of multiple index. i saw it state will create multiple shards. so what happen if create multiple shards

---

<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:** [August 23, 2021, 1:24am UTC](https://discuss.elastic.co/t/having-0-shard-for-cluster-elastisearch/282150/4 "2021-08-23T01:24:25Z")

</div>

It depends. Have a read of [Size your shards | Elasticsearch Guide [7.14] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/size-your-shards.html) to start.

---

<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:** [September 20, 2021, 1:24am UTC](https://discuss.elastic.co/t/having-0-shard-for-cluster-elastisearch/282150/5 "2021-09-20T01:24:27Z")

</div>

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