# Async replication deprecated

**URL:** <https://discuss.elastic.co/t/async-replication-deprecated/25355>\
**Category:** Elasticsearch\
**Created:** [July 11, 2015, 12:02am UTC](https://discuss.elastic.co/t/async-replication-deprecated/25355 "2015-07-11T00:02:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![linlma](https://avatars.discourse-cdn.com/v4/letter/l/ec9cab/32.png) [@linlma](https://discuss.elastic.co/u/linlma)\
**Post date:** [July 11, 2015, 12:02am UTC](https://discuss.elastic.co/t/async-replication-deprecated/25355/1 "2015-07-11T00:02:40Z")

</div>

Hello Elastic Search experts,

If anyone could help to confirm, it will be great,

[https://github.com/elastic/elasticsearch/issues/10114](https://github.com/elastic/elasticsearch/issues/10114)?

thanks in advance,  
Lin

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 11, 2015, 4:52am UTC](https://discuss.elastic.co/t/async-replication-deprecated/25355/2 "2015-07-11T04:52:06Z")

</div>

Yes it has been,

---

<div class="post-metadata">

**Author:** ![linlma](https://avatars.discourse-cdn.com/v4/letter/l/ec9cab/32.png) [@linlma](https://discuss.elastic.co/u/linlma)\
**Post date:** [July 11, 2015, 5:14am UTC](https://discuss.elastic.co/t/async-replication-deprecated/25355/3 "2015-07-11T05:14:14Z")

</div>

Thanks Mark,

Then what is the new suggested method?

BTW, I want to improve bulk insert performance, and I think asyn replicate is a good solution?

regards,  
Lin

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [July 11, 2015, 9:54am UTC](https://discuss.elastic.co/t/async-replication-deprecated/25355/4 "2015-07-11T09:54:10Z")

</div>

Asynchronous replication is not related to performance. You do not need this. It is good that it is deprecated, and it was never active by default. Many confuse this with faster replication or write consistency, but all it is good for is sending early responses of nodes with replica shards, ignoring the answers from them for API evaluation.

It is simpler to disable replicas by setting replication level to 0 at the begin of bulk indexing and increase it after bulk indexing per cluster settings update, plus setting `index.refresh.interval` to `-1` while bulk indexing. This gives a lot more performance than replication at indexing time.

For best performance, i.e. dynamically matching the power of your servers in the cluster, use Java API `BulkProcessor` and tune action number per request and concurrency level. Do not forget to evaluate the bulk request responses, and continue only if bulk requests succeeded.

---

<div class="post-metadata">

**Author:** ![linlma](https://avatars.discourse-cdn.com/v4/letter/l/ec9cab/32.png) [@linlma](https://discuss.elastic.co/u/linlma)\
**Post date:** [July 11, 2015, 5:17pm UTC](https://discuss.elastic.co/t/async-replication-deprecated/25355/5 "2015-07-11T17:17:04Z")

</div>

Thanks Jörg，

1. By setting index.refresh.interval to -1, it means never index new document? And I need to set it back after bulk insert?
2. For your comments, "tune action number per request and concurrency level", do you mean how many documents I send for each bulk insert call to index? And how many threads running concurrently to bulk insert at CLIENT (not Elastic server side) bulk insert machine?

regards,  
Lin

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 12, 2015, 12:26am UTC](https://discuss.elastic.co/t/async-replication-deprecated/25355/6 "2015-07-12T00:26:43Z")

</div>

1 - Yep!  
2 - Also yes 🙂 You need to test to see how many threads and what bulk request size work best for you.

---

<div class="post-metadata">

**Author:** ![linlma](https://avatars.discourse-cdn.com/v4/letter/l/ec9cab/32.png) [@linlma](https://discuss.elastic.co/u/linlma)\
**Post date:** [July 12, 2015, 4:03am UTC](https://discuss.elastic.co/t/async-replication-deprecated/25355/7 "2015-07-12T04:03:02Z")

</div>

Thank you Mark, have a good weekend.

---

<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 6, 2017, 12:02am UTC](https://discuss.elastic.co/t/async-replication-deprecated/25355/8 "2017-07-06T00:02:09Z")

</div>


