# About bulk\_size\_bytes in kafka river

**URL:** <https://discuss.elastic.co/t/about-bulk-size-bytes-in-kafka-river/12786>\
**Category:** Elasticsearch\
**Created:** [July 15, 2013, 3:15am UTC](https://discuss.elastic.co/t/about-bulk-size-bytes-in-kafka-river/12786 "2013-07-15T03:15:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiaoliang\_tian](https://avatars.discourse-cdn.com/v4/letter/x/a9a28c/32.png) [@xiaoliang\_tian](https://discuss.elastic.co/u/xiaoliang_tian)\
**Post date:** [July 15, 2013, 3:15am UTC](https://discuss.elastic.co/t/about-bulk-size-bytes-in-kafka-river/12786/1 "2013-07-15T03:15:05Z")

</div>

bulkSize =  
XContentMapValues.nodeIntegerValue(indexSettings.get("bulk\_size\_bytes"),  
10_1024_1024);

So if I input 10485760 as bulk size bytes ,the final bulk size would be 1?

I don't know what exactly this function "nodeIntegerValue" do

Plz help

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [July 15, 2013, 6:13am UTC](https://discuss.elastic.co/t/about-bulk-size-bytes-in-kafka-river/12786/2 "2013-07-15T06:13:36Z")

</div>

Hey,

the second value is a default value, in case the first setting is null.

--Alex

On Mon, Jul 15, 2013 at 5:15 AM, 田晓亮 [xiaoliang.tian@gmail.com](mailto:xiaoliang.tian@gmail.com) wrote:

> bulkSize =  
> XContentMapValues.nodeIntegerValue(indexSettings.get("bulk\_size\_bytes"),  
> 10_1024_1024);
> 
> So if I input 10485760 as bulk size bytes ,the final bulk size would be 1?
> 
> I don't know what exactly this function "nodeIntegerValue" do
> 
> Plz help
> 
> --  
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![xiaoliang\_tian](https://avatars.discourse-cdn.com/v4/letter/x/a9a28c/32.png) [@xiaoliang\_tian](https://discuss.elastic.co/u/xiaoliang_tian)\
**Post date:** [July 15, 2013, 6:26am UTC](https://discuss.elastic.co/t/about-bulk-size-bytes-in-kafka-river/12786/3 "2013-07-15T06:26:07Z")

</div>

Got it ,thanks. But as bulk size, isn't 10,000,000 so big? is there a  
maximun bulk size?

2013/7/15 Alexander Reelsen [alr@spinscale.de](mailto:alr@spinscale.de)

> Hey,
> 
> the second value is a default value, in case the first setting is null.
> 
> --Alex
> 
> On Mon, Jul 15, 2013 at 5:15 AM, 田晓亮 [xiaoliang.tian@gmail.com](mailto:xiaoliang.tian@gmail.com) wrote:
> 
> > bulkSize =  
> > XContentMapValues.nodeIntegerValue(indexSettings.get("bulk\_size\_bytes"),  
> > 10_1024_1024);
> > 
> > So if I input 10485760 as bulk size bytes ,the final bulk size would be  
> > 1?
> > 
> > I don't know what exactly this function "nodeIntegerValue" do
> > 
> > Plz help
> > 
> > --  
> > 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).
> > 
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/RD2fbBtIY2Y/unsubscribe](https://groups.google.com/d/topic/elasticsearch/RD2fbBtIY2Y/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 15, 2013, 10:16am UTC](https://discuss.elastic.co/t/about-bulk-size-bytes-in-kafka-river/12786/4 "2013-07-15T10:16:18Z")

</div>

The bulk size is in bytes, so it's 10MB. This is big, yes.

The maximum bulk size is limited by the heap of the receiving node, and  
if HTTP is used, by the maximum upload limit.

Jörg

Am 15.07.13 08:26, schrieb Xiaoliang Tian:

> Got it ,thanks. But as bulk size, isn't 10,000,000 so big? is there a  
> maximun bulk size?

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:26am UTC](https://discuss.elastic.co/t/about-bulk-size-bytes-in-kafka-river/12786/5 "2017-07-06T02:26:30Z")

</div>


