# How to determine the number of nodes and the number of shards

**URL:** <https://discuss.elastic.co/t/how-to-determine-the-number-of-nodes-and-the-number-of-shards/76136>\
**Category:** Elasticsearch\
**Created:** [February 23, 2017, 2:39am UTC](https://discuss.elastic.co/t/how-to-determine-the-number-of-nodes-and-the-number-of-shards/76136 "2017-02-23T02:39:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomlla](https://avatars.discourse-cdn.com/v4/letter/t/b5ac83/32.png) [@tomlla](https://discuss.elastic.co/u/tomlla)\
**Post date:** [February 23, 2017, 2:39am UTC](https://discuss.elastic.co/t/how-to-determine-the-number-of-nodes-and-the-number-of-shards/76136/1 "2017-02-23T02:39:53Z")

</div>

I've Experimentally created data in Elasticsearch 2.3 on the local development environment.  
I would like to deploy it in Elasticsearch 5.1 production environment.  
How should the number of nodes and the number of shards (number\_of\_shards) be determined?

The data volume is as follows  
Index size on development environment (elasticseach 2.3):  
6,165 Mbyte  
Documents :  
5, 229, 516

I want to suppress the search speed to 200 ms or less.(for web response)  
I rarely use full-text searches. Many of the search conditions are specified using `term` and `range`.

I am thinking about using thre nodes and no dedicated master node. Is it enough?  
If there are guidelines for determining the number of nodes and the number of shards, please teach me.

* * *

試験的にローカル開発環境上のElasticsearch2.3に構築したデータを  
プロダクション環境 Elasticsearch 5.1にデプロイしたいのですが、  
ノード数および、シャード数(number\_of\_shards)はどのように決めるべきでしょうか

データ量は以下の通りです  
開発環境(elasticseach2.3)上のインデックスサイズ 6,165Mb  
ドキュメント数 5,229,516

求める検索速度としては200ms以下に抑えたいです。  
全文検索をする検索はほとんどなく、term, rangeを使った条件指定の検索が多いです。

現在ノード3台、専用のmasterノード無しで考えていますが、これでは足りないでしょうか  
ノード数、シャード数を決める際の指針があればご教授願います。

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [February 23, 2017, 7:48am UTC](https://discuss.elastic.co/t/how-to-determine-the-number-of-nodes-and-the-number-of-shards/76136/2 "2017-02-23T07:48:12Z")

</div>

I would recommend having a look at [this video about cluster sizing](https://www.elastic.co/elasticon/conf/2016/sf/quantitative-cluster-sizing).

---

<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:** [March 23, 2017, 7:48am UTC](https://discuss.elastic.co/t/how-to-determine-the-number-of-nodes-and-the-number-of-shards/76136/3 "2017-03-23T07:48:46Z")

</div>

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