Created
September 2, 2021 07:35
-
-
Save eliskvitka/cb7fb63c7260aaee3e76f0e8cac54469 to your computer and use it in GitHub Desktop.
[Elasticsearch] Disable read-only mode after high disk watermark reached
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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