Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to calculate Indexing rate?

I want to calculate es's indexing rate myself. In stats api,there is a index_time_in_millis field,what's the meaning of the field?

like image 654
zmy Avatar asked Sep 08 '16 03:09

zmy


1 Answers

You're close. I believe you can calculate the index rate by doing the following:

  1. Sample the index_total and index_time_in_millis for a couple time periods.
  2. Subtract the index_total (sample period + 1) from index_total for the original sample period.
  3. Subtract the index_time_in_millis (sample period +1) from the index_time_in_millis for the original sample period. Then divide this number by 1000 to get seconds.
  4. Finally take the number from step 2 and divide by step 3. This will give you the number of documents indexed/sec.

Formula: (Tindex_+1 - Tindex)/((Indx_time_milis_+1 - Indx_time_milli)/1000)

like image 93
user2387359 Avatar answered Oct 20 '22 00:10

user2387359