# Is it useful to have a load balancer node for indexing?

**URL:** <https://discuss.elastic.co/t/is-it-useful-to-have-a-load-balancer-node-for-indexing/32528>\
**Category:** Elasticsearch\
**Created:** [October 19, 2015, 7:29pm UTC](https://discuss.elastic.co/t/is-it-useful-to-have-a-load-balancer-node-for-indexing/32528 "2015-10-19T19:29:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![freeman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/freeman/32/5356_2.png) [@freeman](https://discuss.elastic.co/u/freeman)\
**Post date:** [October 19, 2015, 7:29pm UTC](https://discuss.elastic.co/t/is-it-useful-to-have-a-load-balancer-node-for-indexing/32528/1 "2015-10-19T19:29:32Z")

</div>

I understand the usefulness of a loadbalancer node (master and data = false) for search as it can perform the aggregations outside the data nodes.

Is there any usefulness to this kind of node for indexing requests ?

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [October 19, 2015, 8:04pm UTC](https://discuss.elastic.co/t/is-it-useful-to-have-a-load-balancer-node-for-indexing/32528/2 "2015-10-19T20:04:47Z")

</div>

> [@freeman](#):
>
> Is there any usefulness to this kind of node for indexing requests ?

Its certainly worth testing it to make sure but its unlikely to do much for you.

The most useful things to do for indexing are to switch from single to bulk api and to set refresh interval high ("30s", -1, something like that). You can squeeze a bit more performance out of indexing by doing it with `number_of_replicas: 0` and then adding replicas after a bulk import.

For non bulk use cases, refresh interval is the biggest thing to change. If that isn't enough for you then see if you can transform your non-bulk use case into a bulk one.

There is lots of talk about optimal bulk sizes floating around. I'm not super knowledgeable about it but I know people that are and they tend to measure throughput, increasing bulk size until the increase doesn't buy any performance increase. There is some hard limit in MB on the maximum sane size of bulk requests but I don't know what it is off hand but if you use the measurement technique above you'll find it on your own.

---

<div class="post-metadata">

**Author:** ![freeman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/freeman/32/5356_2.png) [@freeman](https://discuss.elastic.co/u/freeman)\
**Post date:** [October 20, 2015, 7:03am UTC](https://discuss.elastic.co/t/is-it-useful-to-have-a-load-balancer-node-for-indexing/32528/3 "2015-10-20T07:03:50Z")

</div>

Thanks, great answer.

---

<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 5, 2017, 11:43pm UTC](https://discuss.elastic.co/t/is-it-useful-to-have-a-load-balancer-node-for-indexing/32528/4 "2017-07-05T23:43:56Z")

</div>


