zmy
zmy

Reputation: 187

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?

Upvotes: 6

Views: 2864

Answers (1)

user2387359
user2387359

Reputation: 21

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)

Upvotes: 2

Related Questions