﻿---
title: Adaptive replica selection disabled
description: Describes what AutoOps detects and surfaces with the Adaptive replica selection disabled insight: Adaptive replica selection is turned off.
url: https://docs-v3-preview.elastic.dev/elastic/autoops-insights/tree/main/elasticsearch/adaptive_replica_selection_disabled
products:
  - Elastic Cloud Enterprise
  - Elastic Cloud Hosted
  - Elastic Cloud on Kubernetes
  - Elasticsearch
applies_to:
  - Elastic Cloud Hosted: Generally available
  - Elastic Cloud on Kubernetes: Generally available
  - Elastic Cloud Enterprise: Generally available
  - Self-managed Elastic deployments: Generally available
---

# Adaptive replica selection disabled
Adaptive replica selection is turned off. Coordinating nodes will not prefer faster or less loaded replica copies when running searches.
<note>
  For a complete list of insights, refer to [AutoOps insights](https://docs-v3-preview.elastic.dev/elastic/autoops-insights/tree/main/elasticsearch).
</note>


## Insight details


| Field     | Value               |
|-----------|---------------------|
| Component | Elasticsearch       |
| Severity  | Medium              |
| Scope     | Cluster             |
| Domains   | performance, search |


## Example: What you might see in AutoOps

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.

### Adaptive replica selection is turned off


#### What was detected

`cluster.routing.use_adaptive_replica_selection` is false. Coordinating nodes do not use adaptive replica selection for search routing.

#### Recommendations

<note>
  AutoOps shows different recommendations depending on how their conditions match your deployment or cluster.
</note>

<dropdown title="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.
  ```json

  {
    "persistent": {
      "cluster.routing.use_adaptive_replica_selection": true
    }
  }
  ```

  <note>
    Requires the `manage cluster` privilege. Requires Elasticsearch 8.0.0 or later. This action changes cluster or index configuration.
  </note>
</dropdown>


#### Background and impact

Adaptive replica selection lets each coordinating node track search latency per data node and prefer healthier shard copies for each search. That improves search latency and throughput and reduces load on already busy nodes.
The feature has been available since Elasticsearch 6.1 and is enabled by default on version 7 and later. Turning it off can leave distressed nodes in the search path longer than necessary.
Until the setting is enabled again, search traffic might stay uneven across replicas and a slow node can delay responses for more requests.

## Guide

[Cluster-level shard allocation and routing settings](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/tree/main/reference/elasticsearch/configuration-reference/cluster-level-shard-allocation-routing-settings)