# Bulk Index from Remote Host

**URL:** <https://discuss.elastic.co/t/bulk-index-from-remote-host/23335>\
**Category:** Elasticsearch\
**Created:** [April 20, 2015, 10:40pm UTC](https://discuss.elastic.co/t/bulk-index-from-remote-host/23335 "2015-04-20T22:40:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TB1](https://avatars.discourse-cdn.com/v4/letter/t/ad7895/32.png) [@TB1](https://discuss.elastic.co/u/TB1)\
**Post date:** [April 20, 2015, 10:40pm UTC](https://discuss.elastic.co/t/bulk-index-from-remote-host/23335/1 "2015-04-20T22:40:43Z")

</div>

We are planning to bulk insert about 10 Gig data ,however we are being  
forced to do this from a remote host.  
Is this a good practice? And are there any potential issues i should watch  
out for?

any advice would be great

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/479edffe-e780-4858-b093-676b1837d668%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/479edffe-e780-4858-b093-676b1837d668%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 21, 2015, 5:27am UTC](https://discuss.elastic.co/t/bulk-index-from-remote-host/23335/2 "2015-04-21T05:27:19Z")

</div>

That's fine but you need to split your bulk into smaller bulk requests.  
Don't send a 10gb bulk in one call! 🙂

David

> Le 21 avr. 2015 à 00:40, TB [txindfun@gmail.com](mailto:txindfun@gmail.com) a écrit :
> 
> We are planning to bulk insert about 10 Gig data ,however we are being forced to do this from a remote host.  
> Is this a good practice? And are there any potential issues i should watch out for?
> 
> ## any advice would be great
> 
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/479edffe-e780-4858-b093-676b1837d668%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/479edffe-e780-4858-b093-676b1837d668%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/65B2211D-B9EE-42B4-B522-4B21624B47AF%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/65B2211D-B9EE-42B4-B522-4B21624B47AF%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Christopher\_Blasnik](https://avatars.discourse-cdn.com/v4/letter/c/9f8e36/32.png) [@Christopher\_Blasnik](https://discuss.elastic.co/u/Christopher_Blasnik)\
**Post date:** [April 21, 2015, 8:20am UTC](https://discuss.elastic.co/t/bulk-index-from-remote-host/23335/3 "2015-04-21T08:20:12Z")

</div>

Hi,

The best way to approach this is to restrict the size of your bulk request  
and / or the number of documents for each request.

I tend to do both, the best sizes seem to be in the 5 to 10 MiB range,  
however, I also restrict (which isn't really necessary) the max number of  
documents (e.g. 5000) for one request.

You should check out this link from the documentation:

> **[Cheaper in Bulk | Elasticsearch: The Definitive Guide \[2.x\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/guide/current/bulk.html)**

- Chris

On Tuesday, 21 April 2015 00:40:43 UTC+2, TB wrote:

> We are planning to bulk insert about 10 Gig data ,however we are being  
> forced to do this from a remote host.  
> Is this a good practice? And are there any potential issues i should watch  
> out for?
> 
> any advice would be great

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/93802357-b65f-4a85-8a86-58c6a8fa7cfc%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/93802357-b65f-4a85-8a86-58c6a8fa7cfc%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![TB1](https://avatars.discourse-cdn.com/v4/letter/t/ad7895/32.png) [@TB1](https://discuss.elastic.co/u/TB1)\
**Post date:** [April 21, 2015, 5:00pm UTC](https://discuss.elastic.co/t/bulk-index-from-remote-host/23335/4 "2015-04-21T17:00:39Z")

</div>

David and Christopher, thanks for your advice, i did split the files into  
12 MB chunks,which was found to be optimum after testing various sizes.  
I wanted draw from your experience of potential issues, w.r.to bulk  
indexing from local vs bulk indexing from remote.  
i did choose to bulk index locally

On Monday, April 20, 2015 at 5:40:43 PM UTC-5, TB wrote:

> We are planning to bulk insert about 10 Gig data ,however we are being  
> forced to do this from a remote host.  
> Is this a good practice? And are there any potential issues i should watch  
> out for?
> 
> any advice would be great

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a144d5f5-4a2c-46ff-9709-061e2a7bfe6d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a144d5f5-4a2c-46ff-9709-061e2a7bfe6d%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:18am UTC](https://discuss.elastic.co/t/bulk-index-from-remote-host/23335/5 "2017-07-06T00:18:31Z")

</div>


