# How to set the time in rally so that it can perform (time \* events/s) events to benchmark the cpu usage and memory usage

**URL:** <https://discuss.elastic.co/t/how-to-set-the-time-in-rally-so-that-it-can-perform-time-events-s-events-to-benchmark-the-cpu-usage-and-memory-usage/195141>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-monitoring, rally\
**Created:** [August 14, 2019, 6:20am UTC](https://discuss.elastic.co/t/how-to-set-the-time-in-rally-so-that-it-can-perform-time-events-s-events-to-benchmark-the-cpu-usage-and-memory-usage/195141 "2019-08-14T06:20:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shantanu\_bhardwaj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shantanu_bhardwaj/32/52241_2.png) [@shantanu\_bhardwaj](https://discuss.elastic.co/u/shantanu_bhardwaj)\
**Post date:** [August 14, 2019, 6:20am UTC](https://discuss.elastic.co/t/how-to-set-the-time-in-rally-so-that-it-can-perform-time-events-s-events-to-benchmark-the-cpu-usage-and-memory-usage/195141/1 "2019-08-14T06:20:35Z")

</div>

I want to benchmark the cpu usage and memory usage for specific time with events/s  
that is if we have 500 events/s and set time for 900s so processing should be for 900 \* 500 events  
So at that moment what would be the cpu usage and memory usage ?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [August 14, 2019, 7:21am UTC](https://discuss.elastic.co/t/how-to-set-the-time-in-rally-so-that-it-can-perform-time-events-s-events-to-benchmark-the-cpu-usage-and-memory-usage/195141/2 "2019-08-14T07:21:04Z")

</div>

You should be able to do this by specifying a target-throughput and a duration instead of the number of iterations.

---

<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:** [September 11, 2019, 7:22am UTC](https://discuss.elastic.co/t/how-to-set-the-time-in-rally-so-that-it-can-perform-time-events-s-events-to-benchmark-the-cpu-usage-and-memory-usage/195141/3 "2019-09-11T07:22:54Z")

</div>

Closed on September 11, 2019, 7:22am UTC

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