0
votes

I am testing Elasticsearch performance and need some help on understanding one of stats. The _stats API for an index shows that indexing took 2014943633 in milliseconds. Then, it’s 559 hours (23 days). How can it be? Should I divide that number with the number of shards, cores, or segments?

The index is with 12 shards, 509 segments.

    "indexing" : {
      "index_total" : 1664997009,
      "index_time_in_millis" : 2014943633,

Thanks in advance.

1

1 Answers

1
votes

2014943633ms looks plausible when 1,664,997,009 indexing operations were performed. Quoting from this GH issue:

The index time measures how much time was spent in indexing threads. Threads can execute in parallel, so two threads in parallel which take 10ms each would result in 20ms of indexing time.