Skip to content

Instantly share code, notes, and snippets.

@asmega
Last active December 23, 2019 12:08
Show Gist options
  • Select an option

  • Save asmega/3085470b509b809a653e635844184cb6 to your computer and use it in GitHub Desktop.

Select an option

Save asmega/3085470b509b809a653e635844184cb6 to your computer and use it in GitHub Desktop.
elasticsearch
# 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