# Elasticsearch not handled more indexes, So goes to Read Only mode

**URL:** <https://discuss.elastic.co/t/elasticsearch-not-handled-more-indexes-so-goes-to-read-only-mode/190964>\
**Category:** Elasticsearch\
**Created:** [July 17, 2019, 10:54am UTC](https://discuss.elastic.co/t/elasticsearch-not-handled-more-indexes-so-goes-to-read-only-mode/190964 "2019-07-17T10:54:45Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ritesh\_Pradhan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ritesh_pradhan/32/50360_2.png) [@Ritesh\_Pradhan](https://discuss.elastic.co/u/Ritesh_Pradhan)\
**Post date:** [July 17, 2019, 10:54am UTC](https://discuss.elastic.co/t/elasticsearch-not-handled-more-indexes-so-goes-to-read-only-mode/190964/1 "2019-07-17T10:54:45Z")

</div>

Hi Team,

I am configure kibana and elasticsearch to our server. If elastic search generate more log or I am not deleted last 10 days data or kibana memory full or elastic search not handled data, So Elastic search configure automatic goes to Read Only mode and stop entry new Data.  
So What configure set and elastic search not going to Readable mode.

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [July 17, 2019, 11:27am UTC](https://discuss.elastic.co/t/elasticsearch-not-handled-more-indexes-so-goes-to-read-only-mode/190964/2 "2019-07-17T11:27:03Z")

</div>

Elasticsearch goes into readonly mode when it is [running out of disk space](https://www.elastic.co/guide/en/elasticsearch/reference/current/disk-allocator.html). You can do some [tuning to reduce disk usage](https://www.elastic.co/guide/en/elasticsearch/reference/current/tune-for-disk-usage.html) which will help up to a point. Apart from that, you can either ask Elasticsearch to store less data, or else give it more space to use.

---

<div class="post-metadata">

**Author:** ![Ritesh\_Pradhan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ritesh_pradhan/32/50360_2.png) [@Ritesh\_Pradhan](https://discuss.elastic.co/u/Ritesh_Pradhan)\
**Post date:** [July 18, 2019, 5:32am UTC](https://discuss.elastic.co/t/elasticsearch-not-handled-more-indexes-so-goes-to-read-only-mode/190964/3 "2019-07-18T05:32:48Z")

</div>

Hi David,

Elasticsearch goes into read-only mode before full to disk space and every 7 to 10 days elasticsearch suddenly down.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [July 18, 2019, 5:41am UTC](https://discuss.elastic.co/t/elasticsearch-not-handled-more-indexes-so-goes-to-read-only-mode/190964/4 "2019-07-18T05:41:21Z")

</div>

Can you please provide the full output of the [cluster stats API](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-stats.html)? What kind of hardware is this cluster deployed on?

---

<div class="post-metadata">

**Author:** ![Ritesh\_Pradhan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ritesh_pradhan/32/50360_2.png) [@Ritesh\_Pradhan](https://discuss.elastic.co/u/Ritesh_Pradhan)\
**Post date:** [July 18, 2019, 6:31am UTC](https://discuss.elastic.co/t/elasticsearch-not-handled-more-indexes-so-goes-to-read-only-mode/190964/5 "2019-07-18T06:31:22Z")

</div>

Hi Christian,

We are using single node and not adding cluster.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [July 18, 2019, 7:03am UTC](https://discuss.elastic.co/t/elasticsearch-not-handled-more-indexes-so-goes-to-read-only-mode/190964/6 "2019-07-18T07:03:24Z")

</div>

Can you still provide the output?

---

<div class="post-metadata">

**Author:** ![Ritesh\_Pradhan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ritesh_pradhan/32/50360_2.png) [@Ritesh\_Pradhan](https://discuss.elastic.co/u/Ritesh_Pradhan)\
**Post date:** [July 18, 2019, 9:27am UTC](https://discuss.elastic.co/t/elasticsearch-not-handled-more-indexes-so-goes-to-read-only-mode/190964/7 "2019-07-18T09:27:22Z")

</div>

Hi Christian,

According to your requirement, I am run command and below mention output:

```
{
"_nodes": {
"total": 1,
"successful": 1,
"failed": 0
},
"cluster_name": "elasticsearch",
"timestamp": 1563441575072,
"status": "yellow",
"indices": {
"count": 280,
"shards": {
  "total": 430,
  "primaries": 430,
  "replication": 0,
  "index": {
    "shards": {
      "min": 1,
      "max": 3,
      "avg": 1.5357142857142858
    },
    "primaries": {
      "min": 1,
      "max": 3,
      "avg": 1.5357142857142858
    },
    "replication": {
      "min": 0,
      "max": 0,
      "avg": 0
    }
  }
},
"docs": {
  "count": 244580918,
  "deleted": 338249
},
"store": {
  "size": "59.4gb",
  "size_in_bytes": 63796464361
},
"fielddata": {
  "memory_size": "462.4kb",
  "memory_size_in_bytes": 473560,
  "evictions": 0
},
"query_cache": {
  "memory_size": "907kb",
  "memory_size_in_bytes": 928832,
  "total_count": 6828349,
  "hit_count": 670,
  "miss_count": 6827679,
  "cache_size": 431,
  "cache_count": 1005,
  "evictions": 574
},
"completion": {
  "size": "0b",
  "size_in_bytes": 0
},
"segments": {
  "count": 3906,
  "memory": "148.1mb",
  "memory_in_bytes": 155369476,
  "terms_memory": "92.1mb",
  "terms_memory_in_bytes": 96629902,
  "stored_fields_memory": "22.3mb",
  "stored_fields_memory_in_bytes": 23405096,
  "term_vectors_memory": "0b",
  "term_vectors_memory_in_bytes": 0,
  "norms_memory": "28.4kb",
  "norms_memory_in_bytes": 29120,
  "points_memory": "11.8mb",
  "points_memory_in_bytes": 12390422,
  "doc_values_memory": "21.8mb",
  "doc_values_memory_in_bytes": 22914936,
  "index_writer_memory": "14.3mb",
  "index_writer_memory_in_bytes": 15026513,
  "version_map_memory": "1mb",
  "version_map_memory_in_bytes": 1109334,
  "fixed_bit_set": "5.6kb",
  "fixed_bit_set_memory_in_bytes": 5776,
  "max_unsafe_auto_id_timestamp": 1563388210638,
  "file_sizes": {}
}
},
"nodes": {
"count": {
  "total": 1,
  "data": 1,
  "coordinating_only": 0,
  "master": 1,
  "ingest": 1
},
"versions": [
  "6.4.2"
],
"os": {
  "available_processors": 8,
  "allocated_processors": 8,
  "names": [
    {
      "name": "Linux",
      "count": 1
    }
  ],
  "mem": {
    "total": "31.3gb",
    "total_in_bytes": 33616257024,
    "free": "14.4gb",
    "free_in_bytes": 15519318016,
    "used": "16.8gb",
    "used_in_bytes": 18096939008,
    "free_percent": 46,
    "used_percent": 54
  }
},
"process": {
  "cpu": {
    "percent": 14
  },
  "open_file_descriptors": {
    "min": 3907,
    "max": 3907,
    "avg": 3907
  }
},
"jvm": {
  "max_uptime": "1.1d",
  "max_uptime_in_millis": 101842364,
  "versions": [
    {
      "version": "1.8.0_181",
      "vm_name": "Java HotSpot(TM) 64-Bit Server VM",
      "vm_version": "25.181-b13",
      "vm_vendor": "Oracle Corporation",
      "count": 1
    }
  ],
  "mem": {
    "heap_used": "983.2mb",
    "heap_used_in_bytes": 1030965984,
    "heap_max": "989.8mb",
    "heap_max_in_bytes": 1037959168
  },
  "threads": 275
},
"fs": {
  "total": "885.3gb",
  "total_in_bytes": 950674096128,
  "free": "752gb",
  "free_in_bytes": 807454461952,
  "available": "707gb",
  "available_in_bytes": 759139438592
},
"plugins": [
  {
    "name": "ingest-user-agent",
    "version": "6.4.2",
    "elasticsearch_version": "6.4.2",
    "java_version": "1.8",
    "description": "Ingest processor that extracts information from a user agent",
    "classname": "org.elasticsearch.ingest.useragent.IngestUserAgentPlugin",
    "extended_plugins": [],
    "has_native_controller": false
  },
  {
    "name": "ingest-geoip",
    "version": "6.4.2",
    "elasticsearch_version": "6.4.2",
    "java_version": "1.8",
    "description": "Ingest processor that uses looksup geo data based on ip adresses using the Maxmind geo database",
    "classname": "org.elasticsearch.ingest.geoip.IngestGeoIpPlugin",
    "extended_plugins": [],
    "has_native_controller": false
  }
],
"network_types": {
  "transport_types": {
    "security4": 1
  },
  "http_types": {
    "security4": 1
  }
}
}
}
```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 18, 2019, 9:58am UTC](https://discuss.elastic.co/t/elasticsearch-not-handled-more-indexes-so-goes-to-read-only-mode/190964/8 "2019-07-18T09:58:56Z")

</div>

**430 shards** for **59.4gb of data** where probably 2 shards would be enough is clearly a waste of resources.  
And all that with on **1gb** of HEAP allocated to the system is probably the root cause of any issue.

---

<div class="post-metadata">

**Author:** ![Ritesh\_Pradhan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ritesh_pradhan/32/50360_2.png) [@Ritesh\_Pradhan](https://discuss.elastic.co/u/Ritesh_Pradhan)\
**Post date:** [July 18, 2019, 1:06pm UTC](https://discuss.elastic.co/t/elasticsearch-not-handled-more-indexes-so-goes-to-read-only-mode/190964/9 "2019-07-18T13:06:22Z")

</div>

Hi Dadoonet,

If I am using 2 shards, and how can increase store memory using a command line.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 18, 2019, 1:09pm UTC](https://discuss.elastic.co/t/elasticsearch-not-handled-more-indexes-so-goes-to-read-only-mode/190964/10 "2019-07-18T13:09:17Z")

</div>

Have a look at [https://www.elastic.co/guide/en/elasticsearch/reference/current/heap-size.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/heap-size.html)

---

<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:** [August 15, 2019, 1:14pm UTC](https://discuss.elastic.co/t/elasticsearch-not-handled-more-indexes-so-goes-to-read-only-mode/190964/11 "2019-08-15T13:14:30Z")

</div>

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