# For Performance, more VMs or more shards per VM?

**URL:** <https://discuss.elastic.co/t/for-performance-more-vms-or-more-shards-per-vm/89888>\
**Category:** Elasticsearch\
**Created:** [June 19, 2017, 6:46am UTC](https://discuss.elastic.co/t/for-performance-more-vms-or-more-shards-per-vm/89888 "2017-06-19T06:46:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ong/32/40766_2.png) [@Ong](https://discuss.elastic.co/u/Ong)\
**Post date:** [June 19, 2017, 6:46am UTC](https://discuss.elastic.co/t/for-performance-more-vms-or-more-shards-per-vm/89888/1 "2017-06-19T06:46:09Z")

</div>

Hello, I am now planning an Elasticsearch 5.4 setup which will be used for data migration. The data consists of unstructured text and meta data.

The projected size of the index for all the migrated data is 750GB.

Based on 40GB per shard, around 20 primary shards are needed. I plan for 1 set of replicas so there will be a total of 40 shards.

For each VM, there will be 1 Elasticsearch node.

For best query performance, should I focus on getting more VMs with less shards per node or fewer VMs but with more shards per node?

This Elasticsearch setup will only be indexed once. Once all migrated data has been indexed, the setup will only be used for searches.

Also, if I follow the formula of n/2+1 where n is the number of master eligible nodes, does it matter whether I have an even or odd number of master eligible nodes? (I plan to have 4 VMs, hence 4 master eligible nodes).

Thank 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:** [July 17, 2017, 6:46am UTC](https://discuss.elastic.co/t/for-performance-more-vms-or-more-shards-per-vm/89888/2 "2017-07-17T06:46:37Z")

</div>

Closed on July 17, 2017, 6:46am UTC

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