On Wed, Oct 9, 2019 at 9:59 AM Wei wrote:
> Thanks all. I debugged a bit and see timeAllowed does not limit stats
> call. Also I think it would be useful for solr to support a white list or
> black list of operations as Toke suggested. Will create jira for it.
> Currently seems the only option to
On Mon, 2019-10-07 at 10:18 -0700, Wei wrote:
> /solr/mycollection/select?stats=true&stats.field=unique_ids&stats.cal
> cdistinct=true
...
> Is there a way to block certain solr queries based on url pattern?
> i.e. ignore the stats.calcdistinct request in this case.
It sounds like it is possible f
It's worth to raise an issue for supporting timeAllowed for stats. Until
it's done, something like jetty filter is only an option,
On Tue, Oct 8, 2019 at 12:34 AM Wei wrote:
> Hi Mikhail,
>
> Yes I have the timeAllowed parameter configured, still is this case it
> doesn't seem to prevent the sta
Hi Mikhail,
Yes I have the timeAllowed parameter configured, still is this case it
doesn't seem to prevent the stats request from blocking other normal
queries. Is it possible to drop the request before solr executes it? maybe
at the jetty request filter?
Thanks,
Wei
On Mon, Oct 7, 2019 at 1:39
Hello, Wei.
Have you tried to abandon heavy queries with
https://lucene.apache.org/solr/guide/8_1/common-query-parameters.html#CommonQueryParameters-ThetimeAllowedParameter
?
It may or may not be able to stop stats.
https://github.com/apache/lucene-solr/blob/25eda17c66f0091dbf6570121e38012749c07d