Concept of queue in elasticsearch


(Debayan) #1

Hi,

I plan to use https://www.elastic.co/guide/en/elasticsearch/reference/1.6/index-modules-allocation.html to set certain tag ("weakbox") on some of my nodes, and assign some indices in my cluster to those boxes. The weak box will typically have less CPU and RAM and will be slow to respond to queries.
Once I have done this, let us say query q comes to a non-weak box. The non-weak box routes it to weak box to be handled. My question is this:

Do other queries coming on non-weak box get queued behind the current query?


(Imran Siddique) #2

there is a notion of thread pool which handles how the request gets queued and processed: https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-threadpool.html#types?q=thread pool


(Colin Goodheart-Smithe) #3

@debayan The non-weak box will not block waiting for the weak box to reply. Requests in Elasticsearch are handled asynchronously so that they do not block other requests from being processed while waiting for a response on another thread (or from the network)


(system) #4