You can send the timeAllowed parameter. It is only checked at certain points in 
request processing, but it will stop requests that run too long.

https://solr.apache.org/guide/solr/latest/query-guide/common-query-parameters.html#timeallowed-parameter

wunder
Walter Underwood
wun...@wunderwood.org
http://observer.wunderwood.org/  (my blog)

> On Apr 23, 2024, at 11:06 AM, Uday Kumar <uday.p...@indiamart.com.INVALID> 
> wrote:
> 
> Hello all,
> 
> Very recently, we faced a production outage as one of our developers fired
> a solr query which was resource intensive.
> 
> Example: /select?q.alt=*:*&facet=true&facet.field=sample_field
> 
> Solr version: solr 8.10
> 
> Here, sample_field is more analyzed, heavily indexed and not stored in solr
> 
> Above mentioned query caused an out of memory error and solr nodes were
> killed.
> 
> Please let us know if there is any way to block these kinds of resource
> intensive queries at solr? i.e facet, group etc
> 
> 
> *Thanks & Regards,*
> *Uday Kumar*

Reply via email to