# Node statistics and performance testing

**URL:** <https://discuss.elastic.co/t/node-statistics-and-performance-testing/14292>\
**Category:** Elasticsearch\
**Created:** [November 6, 2013, 6:42pm UTC](https://discuss.elastic.co/t/node-statistics-and-performance-testing/14292 "2013-11-06T18:42:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreasch](https://avatars.discourse-cdn.com/v4/letter/a/90db22/32.png) [@andreasch](https://discuss.elastic.co/u/andreasch)\
**Post date:** [November 6, 2013, 6:42pm UTC](https://discuss.elastic.co/t/node-statistics-and-performance-testing/14292/1 "2013-11-06T18:42:41Z")

</div>

I wrote a performance testing tool that retrieves node statistics  
periodically and summarizes the statistics at the end of each performance  
test run.

Is there a way to reset the statistics of a node preferably without  
shutting down the node?

Thanks,  
Andreas

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![otisg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/otisg/32/492_2.png) [@otisg](https://discuss.elastic.co/u/otisg)\
**Post date:** [November 11, 2013, 3:05pm UTC](https://discuss.elastic.co/t/node-statistics-and-performance-testing/14292/2 "2013-11-11T15:05:50Z")

</div>

Hi Andreas,

I don't think this is doable, but it may be an interesting feature to add.

## Otis

Performance Monitoring \* Log Analytics \* Search Analytics  
Solr & Elasticsearch Support \* [http://sematext.com/](http://sematext.com/)

On Wednesday, November 6, 2013 1:42:41 PM UTC-5, Andreas Christoforides  
wrote:

> I wrote a performance testing tool that retrieves node statistics  
> periodically and summarizes the statistics at the end of each performance  
> test run.
> 
> Is there a way to reset the statistics of a node preferably without  
> shutting down the node?
> 
> Thanks,  
> Andreas

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Norberto\_Meijome](https://avatars.discourse-cdn.com/v4/letter/n/ed655f/32.png) [@Norberto\_Meijome](https://discuss.elastic.co/u/Norberto_Meijome)\
**Post date:** [November 12, 2013, 12:05am UTC](https://discuss.elastic.co/t/node-statistics-and-performance-testing/14292/3 "2013-11-12T00:05:17Z")

</div>

If you want to reset the system for another performance run, wouldn't you  
want to reset the node anyway to avoid warmed up cache issues? (Including  
OS caches)  
On 07/11/2013 5:42 AM, "Andreas Christoforides" \<  
[andreas.christoforides@gmail.com](mailto:andreas.christoforides@gmail.com)\> wrote:

> I wrote a performance testing tool that retrieves node statistics  
> periodically and summarizes the statistics at the end of each performance  
> test run.
> 
> Is there a way to reset the statistics of a node preferably without  
> shutting down the node?
> 
> Thanks,  
> Andreas
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![andreasch](https://avatars.discourse-cdn.com/v4/letter/a/90db22/32.png) [@andreasch](https://discuss.elastic.co/u/andreasch)\
**Post date:** [November 13, 2013, 11:42pm UTC](https://discuss.elastic.co/t/node-statistics-and-performance-testing/14292/4 "2013-11-13T23:42:27Z")

</div>

Restarting the nodes would be the ideal approach but the functionality to  
restart a node using either the Java API or the REST API is currently  
disabled:

> <https://github.com/elastic/elasticsearch/issues/265>
>
> Hiya
> 
> I started two nodes with \`./bin/elasticsearch\` and once settled, issued a:…
> 
> \`\`\`
> curl -XPOST 'http://127.0.0.1:9200/\_cluster/nodes/\_restart'
> \`\`\`
> 
> The nodes restart, but no node is made master, so they are essentially zombies. See the logs here:
> http://gist.github.com/479454

On Monday, November 11, 2013 5:05:17 PM UTC-7, Norberto Meijome wrote:

> If you want to reset the system for another performance run, wouldn't you  
> want to reset the node anyway to avoid warmed up cache issues? (Including  
> OS caches)  
> On 07/11/2013 5:42 AM, "Andreas Christoforides" \<[andreas.chr...@gmail.com](mailto:andreas.chr...@gmail.com)\<javascript:\>\>  
> wrote:
> 
> > I wrote a performance testing tool that retrieves node statistics  
> > periodically and summarizes the statistics at the end of each performance  
> > test run.
> > 
> > Is there a way to reset the statistics of a node preferably without  
> > shutting down the node?
> > 
> > Thanks,  
> > Andreas
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![lebowitz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lebowitz/32/1814_2.png) [@lebowitz](https://discuss.elastic.co/u/lebowitz)\
**Post date:** [November 15, 2013, 3:07am UTC](https://discuss.elastic.co/t/node-statistics-and-performance-testing/14292/5 "2013-11-15T03:07:33Z")

</div>

Take a look at this script [https://github.com/abronner/elasticsearch-monitoring](https://github.com/abronner/elasticsearch-monitoring)  
It dumps node stats into an index. Perhaps you could do some queries and math before and after your tests

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 2:06am UTC](https://discuss.elastic.co/t/node-statistics-and-performance-testing/14292/6 "2017-07-06T02:06:51Z")

</div>


