Skip to content

Commit

Permalink
Additional troubleshooting advise for low disk space and blocked inde…
Browse files Browse the repository at this point in the history
…x read-only
  • Loading branch information
jodygarnett committed Mar 15, 2024
1 parent e471195 commit 2c391e2
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions es/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,22 @@ field expansion for [*] matches too many fields, limit: 1024
An option is to restrict `queryBase` to limit the number of field to query on. `any:(${any}) resourceTitleObject.default:(${any})^2` is a good default. Using `${any}` will probably trigger the error if the number of records is high.

The other option is to increase `indices.query.bool.max_clause_count`.


## Disk space threshold

The server application will refuse to write new content unless there is enough free space available (by default 1/4 of your hard drive).

To turn off this check:

```
curl -XPUT http://localhost:9200/_cluster/settings -H 'Content-Type: application/json' -d '{ "transient" : { "cluster.routing.allocation.disk.threshold_enabled" : false } }'
```

## Blocked by index read-only / allow delete

To recover:

```
curl -XPUT -H "Content-Type: application/json" http://localhost:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}'
```

0 comments on commit 2c391e2

Please sign in to comment.