Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save denzhel/59803e0d32691b4419d5ef3f8fd03775 to your computer and use it in GitHub Desktop.
Save denzhel/59803e0d32691b4419d5ef3f8fd03775 to your computer and use it in GitHub Desktop.
elasticsearch restore settings to default

In case you want to restore changes cluster settings to default, you should use the following command:

curl -XPUT 'http://localhost:9200/_cluster/settings' -H 'Content-Type: application/json' -d '{ 
"transient" : { 
"cluster.routing.allocation.disk.watermark.flood_stage" : null,
"cluster.routing.allocation.disk.watermark.low" : null,
"cluster.routing.allocation.disk.watermark.high" : null 
} 
}'

Setting all properties with the value null will restore the three properties back to default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment