# When we reindex from ES2 to ES6, get error :Remote responded with a chunk that was too large. Use a smaller batch size

**URL:** <https://discuss.elastic.co/t/when-we-reindex-from-es2-to-es6-get-error-remote-responded-with-a-chunk-that-was-too-large-use-a-smaller-batch-size/146717>\
**Category:** Elasticsearch\
**Created:** [August 30, 2018, 1:49pm UTC](https://discuss.elastic.co/t/when-we-reindex-from-es2-to-es6-get-error-remote-responded-with-a-chunk-that-was-too-large-use-a-smaller-batch-size/146717 "2018-08-30T13:49:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![showmeall](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/showmeall/32/29507_2.png) [@showmeall](https://discuss.elastic.co/u/showmeall)\
**Post date:** [August 30, 2018, 1:49pm UTC](https://discuss.elastic.co/t/when-we-reindex-from-es2-to-es6-get-error-remote-responded-with-a-chunk-that-was-too-large-use-a-smaller-batch-size/146717/1 "2018-08-30T13:49:57Z")

</div>

when we reindex get error,the detail info as flow:  
{"error":{"root\_cause":[{"type":"illegal\_argument\_exception","reason":"Remote responded with a chunk that was too large. Use a smaller batch size."}],"type":"illegal\_argument\_exception","reason":"Remote responded with a chunk that was too large. Use a smaller batch size.","caused\_by":{"type":"content\_too\_long\_exception","reason":"entity content is too long [123362947] for the configured buffer limit [104857600]"}},"status":400}

ES version: 2.4.0 6.2.4  
data store: 10TB  
documents number: 100 million

redindex API:  
curl -X POST "localhost:9200/\_reindex" -H 'Content-Type: application/json' -d'  
{  
"source": {  
"remote": {  
"host": "[http://192.168.10.87:9200](http://192.168.10.87:9200)"  
},  
"index": "test"  
},  
"dest": {  
"index": "test2"  
}  
}'

---

<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 27, 2018, 1:49pm UTC](https://discuss.elastic.co/t/when-we-reindex-from-es2-to-es6-get-error-remote-responded-with-a-chunk-that-was-too-large-use-a-smaller-batch-size/146717/2 "2018-09-27T13:49:58Z")

</div>

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