# Elasticsearch - indexing too slow

**URL:** <https://discuss.elastic.co/t/elasticsearch-indexing-too-slow/98046>\
**Category:** Elasticsearch\
**Created:** [August 23, 2017, 10:02am UTC](https://discuss.elastic.co/t/elasticsearch-indexing-too-slow/98046 "2017-08-23T10:02:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cca](https://avatars.discourse-cdn.com/v4/letter/c/aeb1de/32.png) [@cca](https://discuss.elastic.co/u/cca)\
**Post date:** [August 23, 2017, 10:02am UTC](https://discuss.elastic.co/t/elasticsearch-indexing-too-slow/98046/1 "2017-08-23T10:02:14Z")

</div>

Hello, I took back an application which works with elasticsearch v2.4.4. The indexation 2.8 of documents takes 9 hours. I would like to improve this ? Actually I have two nodes elasticsearch on two server with 1 shards and 1 replicas. My config elastic search [https://pastebin.com/DrMQj2h5](https://pastebin.com/DrMQj2h5). Here is the code of the method indexing [https://pastebin.com/YYpUGDrK](https://pastebin.com/YYpUGDrK). I begin on elasticsearch. Do you any idea ? My configuration is correct ?

---

<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:** [September 20, 2017, 10:02am UTC](https://discuss.elastic.co/t/elasticsearch-indexing-too-slow/98046/2 "2017-09-20T10:02:33Z")

</div>

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