# Configuration of the number of shards , under ElasticSearch version 1.3.1

**URL:** <https://discuss.elastic.co/t/configuration-of-the-number-of-shards-under-elasticsearch-version-1-3-1/19132>\
**Category:** Elasticsearch\
**Created:** [August 7, 2014, 4:24am UTC](https://discuss.elastic.co/t/configuration-of-the-number-of-shards-under-elasticsearch-version-1-3-1/19132 "2014-08-07T04:24:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Whu\_cs\_yang](https://avatars.discourse-cdn.com/v4/letter/w/ecccb3/32.png) [@Whu\_cs\_yang](https://discuss.elastic.co/u/Whu_cs_yang)\
**Post date:** [August 7, 2014, 4:24am UTC](https://discuss.elastic.co/t/configuration-of-the-number-of-shards-under-elasticsearch-version-1-3-1/19132/1 "2014-08-07T04:24:59Z")

</div>

Hi,

I have made a test,

12 nodes, each of them are the same Hardware configuration:

```
 cpu MHz : 2099.998

 8 core and 16G Mem

```

The main configuration in ElasticSearch.yml, most of the other items use default value.

```
 node.master: true

 node.data: true

 index.number_of_shards: 8

 index.number_of_replicas: 2

 bootstrap.mlockall: true

 gateway.type: local

```

We have indexed 180 million documents, storage space: 2.2T(single shard), 6.7T(total shards). Then we make query test with the cluster and found even a single query with one phrase need average 200~300 seconds! This is unbelievable, is there something wrong with my configuration? Is the number of shards too small? How to decide the number of shards? What is the basis for this setting? And I want to know what the settings that impact the search performance greatly?

Thank you for your time very much!‍

---

<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 6, 2017, 1:10am UTC](https://discuss.elastic.co/t/configuration-of-the-number-of-shards-under-elasticsearch-version-1-3-1/19132/2 "2017-07-06T01:10:17Z")

</div>


