Enable Adaptive Replica Selection
Adaptive replica selection is turned off on the cluster. Coordinating nodes will not prefer faster or less loaded replica copies when executing searches.
For a complete list of insights, refer to AutoOps insights.
| Field | Value |
|---|---|
| Component | Elasticsearch |
| Severity | Medium |
| Scope | Cluster |
| Domains | performance, search |
The following is an example of what you might see when this insight is triggered. Real insights use live data and links from your deployment or cluster.
No description available.
AutoOps shows different recommendations depending on how their conditions match your deployment or cluster.
Enable adaptive replica selection
Condition: Always shown for this insight.
Enable adaptive replica selection so Elasticsearch routes searches to less-loaded replicas. Use the action below.
PUT _cluster/settings
{
"persistent": {
"cluster.routing.use_adaptive_replica_selection": true
}
}
Requires the manage cluster privilege. Requires Elasticsearch 8.0.0 or later. This action changes cluster or index configuration.
Impact: If adaptive replica selection is not enabled, search requests might not be properly load balanced, and a distressed node might delay responses. Adaptive Replica Selection (ARS) allows each coordinating node to track the search latency of each data node, which informs the choice of which shard copies will participate in each search execution. This improves search latency and overall search throughput, and reduces the search load on already loaded data nodes. ARS was introduced in ES 6.1 and is enabled by default in Version 7 and onwards.