# Esrally warmup explaination

**URL:** <https://discuss.elastic.co/t/esrally-warmup-explaination/291307>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [December 9, 2021, 9:10am UTC](https://discuss.elastic.co/t/esrally-warmup-explaination/291307 "2021-12-09T09:10:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fentom](https://avatars.discourse-cdn.com/v4/letter/f/e5b9ba/32.png) [@fentom](https://discuss.elastic.co/u/fentom)\
**Post date:** [December 9, 2021, 9:10am UTC](https://discuss.elastic.co/t/esrally-warmup-explaination/291307/1 "2021-12-09T09:10:08Z")

</div>

Hi,  
I'm new to Elasticsearch and ESRally. I want to run some benchmarks but I don't understand how the warmup-iterations parameter for tracks works. Documentation says "Number of iterations that each client should execute to warmup the benchmark candidate. Warmup iterations will not show up in the measurement results."  
But I dont understand number of iterations of what?

For example if I have an bulk operation with warmup-iterations=100 what exactly does this mean?  
Does it mean that the bulk starts instead of measuring from interation 0, it starts measuring from iteration 101?

---

<div class="post-metadata">

**Author:** ![Quentin\_Pradet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/quentin_pradet/32/94192_2.png) [@Quentin\_Pradet](https://discuss.elastic.co/u/Quentin_Pradet)\
**Post date:** [December 9, 2021, 10:12am UTC](https://discuss.elastic.co/t/esrally-warmup-explaination/291307/2 "2021-12-09T10:12:49Z")

</div>

Hi! Good questions.

> [@fentom](#):
>
> But I dont understand number of iterations of what?
> 
> For example if I have an bulk operation with warmup-iterations=100 what exactly does this mean?

It's the number of iterations of your operation. If your operation is a search query, then Rally will execute this search query 100 times before actually taking the measurements into account.

> [@fentom](#):
>
> Does it mean that the bulk starts instead of measuring from interation 0, it starts measuring from iteration 101?

Yes!

You can find more details in the following blog post: [Seven Tips for Better Elasticsearch Benchmarks | Elastic Blog](https://www.elastic.co/blog/seven-tips-for-better-elasticsearch-benchmarks). The example is about indexing throughput, where warmup is configured using `warmup-time-period`, but the idea is the same. Here's another example, where warmup is probably a bit too long:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/b/6b1d3038bb3d247ec0171fdcf06515b8b257854d.png)

You can see that the query time stabilizes quite early, but Rally still discards all `warmup` measurements, to only use the `normal` ones. (I was able to create this visualization in Kibana because Rally still stores `warmup` results in the metrics store.)

---

<div class="post-metadata">

**Author:** ![fentom](https://avatars.discourse-cdn.com/v4/letter/f/e5b9ba/32.png) [@fentom](https://discuss.elastic.co/u/fentom)\
**Post date:** [December 21, 2021, 11:13am UTC](https://discuss.elastic.co/t/esrally-warmup-explaination/291307/3 "2021-12-21T11:13:54Z")

</div>

Thank you for this explaination 🙂

---

<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:** [January 18, 2022, 11:14am UTC](https://discuss.elastic.co/t/esrally-warmup-explaination/291307/4 "2022-01-18T11:14:22Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
