# Cluster state is yellow during restore process with ES 6

**URL:** <https://discuss.elastic.co/t/cluster-state-is-yellow-during-restore-process-with-es-6/118395>\
**Category:** Elasticsearch\
**Created:** [February 5, 2018, 7:16am UTC](https://discuss.elastic.co/t/cluster-state-is-yellow-during-restore-process-with-es-6/118395 "2018-02-05T07:16:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankur.k.gupta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ankur.k.gupta/32/68633_2.png) [@ankur.k.gupta](https://discuss.elastic.co/u/ankur.k.gupta)\
**Post date:** [February 5, 2018, 7:16am UTC](https://discuss.elastic.co/t/cluster-state-is-yellow-during-restore-process-with-es-6/118395/1 "2018-02-05T07:16:55Z")

</div>

I have recently migrated my elasticsearch to version 6 from version 2.4  
After installing a new elasticsearch 6 cluster I am trying to restore data from a snapshot, but during the restore process the elasticsearch cluster status is yellow and not red. As per the docs it is supposed to be red when recovering primary shards.

Also the time to restore the snapshot has doubled after migration to ES6. With ES 2.4 it used to take approx 30 mins to restore and with ES 6 it now takes 67 mins approx. The size of the data, number of shards and settings are same, except that I have removed settings _indices.recovery.concurrent\_small\_file\_streams_ and _indices.recovery.concurrent\_file\_streams_ as they have been removed.

**Settings in elasticsearch.yml:**

```
cloud.node.auto_attributes: true
cluster.name: elasticsearch
cluster.routing.allocation.awareness.attributes: aws_availability_zone
discovery.ec2.availability_zones: us-west-2a,us-west-2b,us-west-2c
discovery.ec2.endpoint: ec2.us-west-2.amazonaws.com
discovery.ec2.groups: data-index
discovery.ec2.host_type: private_ip
discovery.ec2.protocol: http
discovery.ec2.tag.Name: data-index
discovery.zen.hosts_provider: ec2
http.port: 9200
network.host: _ec2:privateIp_,_local_
node.name: ip-173-31-6-100
path.data: /data
path.logs: /var/log/elasticsearch
s3.client.default.endpoint: s3.us-west-2.amazonaws.com
s3.client.default.protocol: http
transport.tcp.port: 9300
xpack.ml.enabled: false
xpack.security.enabled: false

```

**Settings used when creating repository:**

```
{
  "type": "s3",
  "settings": {
    "bucket": "data-index-backup",
    "base_path": "data/es6test",
    "max_restore_bytes_per_sec": "0",
    "max_snapshot_bytes_per_sec": "0"
  }
}

```

**Settings used with restore command:**

```
{
  "include_global_state": false,
  "index_settings": {
	"index.number_of_replicas": "0",
	"index.refresh_interval": "-1"
  }
}

```

**Cluster health output:**

```
{
  "cluster_name": "elasticsearch",
  "status": "yellow",
  "timed_out": false,
  "number_of_nodes": 3,
  "number_of_data_nodes": 3,
  "active_primary_shards": 36,
  "active_shards": 42,
  "relocating_shards": 0,
  "initializing_shards": 45,
  "unassigned_shards": 33,
  "delayed_unassigned_shards": 0,
  "number_of_pending_tasks": 0,
  "number_of_in_flight_fetch": 0,
  "task_max_waiting_in_queue_millis": 0,
  "active_shards_percent_as_number": 35
}
```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 5, 2018, 7:17am UTC](https://discuss.elastic.co/t/cluster-state-is-yellow-during-restore-process-with-es-6/118395/2 "2018-03-05T07:17:19Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
