Skip to content

Instantly share code, notes, and snippets.

@eliskvitka
Created September 2, 2021 07:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eliskvitka/cb7fb63c7260aaee3e76f0e8cac54469 to your computer and use it in GitHub Desktop.
Save eliskvitka/cb7fb63c7260aaee3e76f0e8cac54469 to your computer and use it in GitHub Desktop.
[Elasticsearch] Disable read-only mode after high disk watermark reached
#!/bin/bash
curl http://localhost:9200/_all/_settings -H "Content-type: application/json" -XPUT --data '{"index": {"blocks.read_only_allow_delete": null}}'
curl http://localhost:9200/_all/_settings -H "Content-type: application/json" -XPUT --data '{"index": {"blocks.read_only": false}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment