DEV Community

Dhanushka madushan
Dhanushka madushan

Posted on

Change Elasticsearch watermark size

Storage overflow watermark error message is a common message that throws when disk space is not enough on your elasticsearch cluster. You can reduce the allocated disk watermark size by sending a HTTP request to the elasticsearch. Following is the curl command that you can use to change the watermark size on elasticsearch instance running on the localhost:

curl -X PUT "localhost:9200/_cluster/settings?pretty" -H 'Content-Type: application/json' -d'
{
  "transient": {
    "cluster.routing.allocation.disk.watermark.low": "10gb",
    "cluster.routing.allocation.disk.watermark.high": "5gb",
    "cluster.routing.allocation.disk.watermark.flood_stage": "5gb",
    "cluster.info.update.interval": "1m"
  }
}'
Enter fullscreen mode Exit fullscreen mode

Top comments (0)