One index experiencing global "pause"?

this graph is showing response time of a particular query. the x axis is second.milliseconds
y axis is response time in milliseconds. the different colors are different caller systems.

more detail

  • the index being queried is spread across 9 nodes.
  • the calls goes through 3 coordinating nodes
  • these "pauses" happen randomly, so far i havent been able to determine the pattern

somehow all calls at that time got "paused". what could cause this behavior?
the only think i can think of is "stop the world" GC on the coordinating node. but i dont think it could last >5s. and surely all 3 coordinating nodes do not synchronised their GC

@dna01 not clear to me (probably others) what is the time scale on the X / horizontal access
and that is Response Time Vertical? you screen shot is hard to read...

And of course is that actually in the cluster? how / where is that response time measured.
From inside elastic using took from the query?
From the Client Side?
Could be lots of things...

apologies, the screenshot got cropped. x axis is second.millisecond. the whole graph is only 15s
yes, y axis is response time in milliseconds.

this is captured by the application, not took returned by ES.
additional info

  • this index receives 30-40 new docs per second
  • and 40-60 searches per second

so far, i have ruled out

  • network: other calls (to other index) within that gap still returns, no noticeable delay
  • coordinating nodes: there are 3 nodes, highly unlikely that all calls goes through the same node

How?

In general, The only way to know how long Elastic is a actually taking is using the took metric..

This is not too say it is not elastic...

I would access / check took to see if it corroborates what you are seeing.

It can happen if the connections are sticky... Seen it many times.

Tha said what is the refresh interval set at that "can" sometimes affect search performance during or right after the refresh especially for high update indices

I'd first compare the application response time with Elasticsearch's took value for the same requests. If the application shows a 5-second pause but took stays normal, the delay is probably happening outside query execution. I'd also check whether sticky connections are sending more traffic through one coordinating node than expected, even with three nodes available. If took spikes too, check search thread-pool queues, GC logs, and the index refresh activity. That should help narrow down where the pause is coming from.

That took comparison is the right first step. I would also log the coordinating node for each slow request, since sticky connections can hide in plain sight even with three nodes in front. If the pauses line up with refreshes or merges on that one index, that points more at the index itself than at the cluster. A quick check of the search thread pool queue during a pause would help rule that in or out too.