# CPU 16 cores with 32 threads will create 32 shards for an index?

**URL:** <https://discuss.elastic.co/t/cpu-16-cores-with-32-threads-will-create-32-shards-for-an-index/211610>\
**Category:** Elasticsearch\
**Created:** [December 12, 2019, 10:13am UTC](https://discuss.elastic.co/t/cpu-16-cores-with-32-threads-will-create-32-shards-for-an-index/211610 "2019-12-12T10:13:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vuvantuancntt](https://avatars.discourse-cdn.com/v4/letter/v/a87d85/32.png) [@vuvantuancntt](https://discuss.elastic.co/u/vuvantuancntt)\
**Post date:** [December 12, 2019, 10:13am UTC](https://discuss.elastic.co/t/cpu-16-cores-with-32-threads-will-create-32-shards-for-an-index/211610/1 "2019-12-12T10:13:43Z")

</div>

Hi all, I am estimating number of shard for an index. I am focus on number of shards and CPU cores, threads only. Other things I have calculated already and I aware it.  
My server has a 16 cores CPU, thread number is 32.  
I have only one Elasticsearch data node in a cluster.  
So how many shards should I create for an index? 32 shards? A request will be executed parallel on a thread per a shard - is it mean : with a request Elasticsearch uses parallel 32 threads on 32 shards?

---

<div class="post-metadata">

**Author:** ![linkerc](https://avatars.discourse-cdn.com/v4/letter/l/13edae/32.png) [@linkerc](https://discuss.elastic.co/u/linkerc)\
**Post date:** [December 13, 2019, 11:24pm UTC](https://discuss.elastic.co/t/cpu-16-cores-with-32-threads-will-create-32-shards-for-an-index/211610/2 "2019-12-13T23:24:20Z")

</div>

This is an invalid assumption.  
Shard count has nothing to do with CPU.  
It's a function of data volume.

---

<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:** [January 10, 2020, 11:24pm UTC](https://discuss.elastic.co/t/cpu-16-cores-with-32-threads-will-create-32-shards-for-an-index/211610/3 "2020-01-10T23:24:23Z")

</div>

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