Last active
December 23, 2019 12:08
-
-
Save asmega/3085470b509b809a653e635844184cb6 to your computer and use it in GitHub Desktop.
elasticsearch
This file contains hidden or 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
| # list indexes | |
| curl -X GET "localhost:9200/_aliases" | |
| # remove readonly | |
| curl -X PUT "localhost:9200/recipes/_settings" -H 'Content-Type: application/json' -d' | |
| { | |
| "index": { | |
| "blocks.read_only": false, | |
| "blocks.read_only_allow_delete": null | |
| } | |
| } | |
| ' | |
| curl -X PUT "localhost:9200/_cluster/settings" -H 'Content-Type: application/json' -d' | |
| { | |
| "transient": { | |
| "cluster.routing.allocation.disk.threshold_enabled": false, | |
| "cluster.routing.allocation.disk.watermark.low": "100gb", | |
| "cluster.routing.allocation.disk.watermark.high": "10gb", | |
| "cluster.routing.allocation.disk.watermark.flood_stage": "10mb", | |
| "cluster.info.update.interval": "1m" | |
| } | |
| }' | |
| ' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment