# Is it possible to create a loop around a challenge

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-create-a-loop-around-a-challenge/117892>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [January 31, 2018, 8:03pm UTC](https://discuss.elastic.co/t/is-it-possible-to-create-a-loop-around-a-challenge/117892 "2018-01-31T20:03:54Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [February 2, 2018, 9:53am UTC](https://discuss.elastic.co/t/is-it-possible-to-create-a-loop-around-a-challenge/117892/3 "2018-02-02T09:53:42Z")

</div>

@matt.veitas is correct with the loop idea. In my answer in the thread "[Increase data size in Rally existing tracks](https://discuss.elastic.co/t/increase-data-size-in-rally-existing-tracks/116514/2?u=danielmitterdorfer)" I have provided an example how loops can be used.

If you want to run multiple iterations of the same benchmarking trial (without restarting Elasticsearch) you can also use the command line parameter `--laps`, e.g. `--laps=12` will run the same benchmark twelve times. Rally will _not_ restart Elasticsearch in between and will (usually) recreate the index at the beginning of each iteration (lap).

---

_[View the full topic](https://discuss.elastic.co/t/is-it-possible-to-create-a-loop-around-a-challenge/117892)._
