# ElasticSearch configuration for high performance

**URL:** https://discuss.elastic.co/t/elasticsearch-configuration-for-high-performance/156492
**Category:** Elasticsearch
**Created:** [November 13, 2018, 2:29pm UTC](https://discuss.elastic.co/t/elasticsearch-configuration-for-high-performance/156492 "2018-11-13T14:29:27Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![HARSHAL\_CHAUDHARI](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshal_chaudhari/32/36058_2.png) [@HARSHAL\_CHAUDHARI](https://discuss.elastic.co/u/HARSHAL_CHAUDHARI)
#### Post date: [November 13, 2018, 2:29pm UTC](https://discuss.elastic.co/t/elasticsearch-configuration-for-high-performance/156492/1 "2018-11-13T14:29:27Z")

</div>

Hi,

We have developed .NetCore WebApi Application using NEST library for performing CRUD (Create, read, update, delete) Operation in ElasticSearch.

We have setup ElasticSearch with Ingest plug-in on kubernetes cluster with HeapSize 2gb (On cloud).

**Goal** : Add/Push 100,000 documents (Per Document Size: 13MB to 15MB) in ElasticSearch in 10 - 15 Minutes

Could you please suggest the ideal ElasticSearch configuration or ElasticSearch configuration for high performance for above requirement.

Thanks in Advanced.

---

<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: [November 13, 2018, 2:37pm UTC](https://discuss.elastic.co/t/elasticsearch-configuration-for-high-performance/156492/2 "2018-11-13T14:37:14Z")

</div>

Indexing can be CPU intensive and even more so if you are using ingest node. Given the size of your documents and the speed at which you want to index this, the cluster sounds quite small. How many CPU cores do you have? What type of storage?

What level of throughput are you seeing with the current setup? What is limiting performance?

---

<div class="post-metadata">

### Author: ![jeroen1](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@jeroen1](https://discuss.elastic.co/u/jeroen1)
#### Post date: [November 13, 2018, 4:20pm UTC](https://discuss.elastic.co/t/elasticsearch-configuration-for-high-performance/156492/3 "2018-11-13T16:20:02Z")

</div>

- Optimize your mappings: fewer analyzers = (way) faster.
- Use as many shards as CPU cores available (system uses 1 core / shard).
- Prefer fewer faster CPU cores (and thus shards see above) over more slower cores (more efficient storage and searches).
- Use local SSD storage.

---

<div class="post-metadata">

### Author: ![HARSHAL\_CHAUDHARI](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshal_chaudhari/32/36058_2.png) [@HARSHAL\_CHAUDHARI](https://discuss.elastic.co/u/HARSHAL_CHAUDHARI)
#### Post date: [November 13, 2018, 4:35pm UTC](https://discuss.elastic.co/t/elasticsearch-configuration-for-high-performance/156492/4 "2018-11-13T16:35:28Z")

</div>

Thanks for your reply,

> > How many CPU cores do you have?  
> > We deployed on IBM kubernetes cluster and we have 3 worker nodes each node have 8 Cores 32 GB RAM

> > What type of storage?  
> > We have used IBM storage [volume.beta.kubernetes.io/storage-class:](http://volume.beta.kubernetes.io/storage-class:) ibmc-block-silver

> > What level of throughput are you seeing with the current setup?  
> > Speed is adding the 1000 document (Document size 13 to 15MB) per hour

> > What is limiting performance?  
> > it is taking time to adding document, observing the running process.

Please suggest us on high performance kubernetes Elasticsearch configuration.

---

<div class="post-metadata">

### Author: ![HARSHAL\_CHAUDHARI](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshal_chaudhari/32/36058_2.png) [@HARSHAL\_CHAUDHARI](https://discuss.elastic.co/u/HARSHAL_CHAUDHARI)
#### Post date: [November 13, 2018, 4:37pm UTC](https://discuss.elastic.co/t/elasticsearch-configuration-for-high-performance/156492/5 "2018-11-13T16:37:27Z")

</div>

Thanks for your reply.

My Configuration as below

- We deployed on IBM kubernetes cluster and we have 3 worker nodes each node have 8 Cores 32 GB RAM
- We have used IBM storage [volume.beta.kubernetes.io/storage-class:](http://volume.beta.kubernetes.io/storage-class:) ibmc-block-silver

Please let us know Elasticsearch on Kubernetes configuration for High performance.

---

<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: [November 13, 2018, 4:42pm UTC](https://discuss.elastic.co/t/elasticsearch-configuration-for-high-performance/156492/6 "2018-11-13T16:42:21Z")

</div>

I would recommend looking at the following resources:

[https://www.elastic.co/guide/en/elasticsearch/reference/6.4/tune-for-indexing-speed.html#tune-for-indexing-speed](https://www.elastic.co/guide/en/elasticsearch/reference/6.4/tune-for-indexing-speed.html#tune-for-indexing-speed)

[https://www.elastic.co/guide/en/elasticsearch/reference/6.4/tune-for-disk-usage.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.4/tune-for-disk-usage.html)

Then run tests and try to identify what system resource that is limiting performance, e.g. CPU and/or disk I/O. I generally index a lot smaller documents, so am not sure how to best tune for your particular use-case.

If I am calculating correctly, that is about 1.33TB of raw data. If that is the case you will most likely need a lot larger cluster to be able to ingest that in 15 minutes...

---

<div class="post-metadata">

### Author: ![HARSHAL\_CHAUDHARI](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshal_chaudhari/32/36058_2.png) [@HARSHAL\_CHAUDHARI](https://discuss.elastic.co/u/HARSHAL_CHAUDHARI)
#### Post date: [November 14, 2018, 11:36am UTC](https://discuss.elastic.co/t/elasticsearch-configuration-for-high-performance/156492/7 "2018-11-14T11:36:24Z")

</div>

Thanks for reply.

---

<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: [December 12, 2018, 11:36am UTC](https://discuss.elastic.co/t/elasticsearch-configuration-for-high-performance/156492/8 "2018-12-12T11:36:38Z")

</div>

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