When enabling Search backpressure, the setting is cluster-wide and effects queries that run on search nodes.
The reason this is a bug is that the search backpressure is operating on global thresholds that don't take into account the inherent slowness of the searches that run against snapshots.
Related component
Search:Searchable Snapshots
To Reproduce
restore several big indices (88 shards 30gb each in our case), no warm up (no cache pre-loading).
ensure that 100+ search requests are running at the same time (1-2 hours range, heavy ones).
wait for search backpressure to reject some query
In the query response, there will be diff with expected number of hits. Field _shards will show something like "total": 44, "successful": 40.
We had separate roles, 20% of nodes with role search and the rest with the data role.
Expected behavior
A few options:
The search backpressure to ignore search nodes
The search backpressure to have a way to apply to smaller granularity: by index, only active if a param in query is true, or by node role.
Additional Details
Plugins
s3 repository
Host/Environment (please complete the following information):
Describe the bug
When enabling Search backpressure, the setting is cluster-wide and effects queries that run on search nodes. The reason this is a bug is that the search backpressure is operating on global thresholds that don't take into account the inherent slowness of the searches that run against snapshots.
Related component
Search:Searchable Snapshots
To Reproduce
We had separate roles, 20% of nodes with role
search
and the rest with thedata
role.Expected behavior
A few options:
true
, or by node role.Additional Details
Plugins s3 repository
Host/Environment (please complete the following information):