# Parallel Iterations of Bulk

**URL:** <https://discuss.elastic.co/t/parallel-iterations-of-bulk/202271>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [October 4, 2019, 3:11am UTC](https://discuss.elastic.co/t/parallel-iterations-of-bulk/202271 "2019-10-04T03:11:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dliappis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dliappis/32/56174_2.png) [@dliappis](https://discuss.elastic.co/u/dliappis)\
**Post date:** [October 4, 2019, 9:05am UTC](https://discuss.elastic.co/t/parallel-iterations-of-bulk/202271/2 "2019-10-04T09:05:03Z")

</div>

Hello,

As described in the [docs](https://esrally.readthedocs.io/en/stable/track.html#time-based-vs-iteration-based), `iterations` inside the parallel element:

> `iterations` (optional, defaults to 1): Allows to define a default value for all tasks of the `parallel` element.

So this just propagates the `iterations` property to operations that support it. See the [docs](https://esrally.readthedocs.io/en/stable/track.html#bulk) and [this reply](https://discuss.elastic.co/t/bulk-index-operation-with-iterations-failed/150355/2).

If you want to rerun bulk operations you can use a jinja2 [for](https://jinja.palletsprojects.com/en/2.10.x/templates/#loop-controls) loop together with a [comma joiner](https://jinja.palletsprojects.com/en/2.10.x/templates/#joiner); here is an [example](https://github.com/elastic/rally-eventdata-track/blob/3c60b78af4823679aa553e85f23b012e0d7b9184/eventdata/challenges/daily-log-volume-index-and-query.json#L18-L23) from another track.

Rgs,  
Dimitris

---

_[View the full topic](https://discuss.elastic.co/t/parallel-iterations-of-bulk/202271)._
