#!/usr/bin/env bash set -euo pipefail HOST="${1:-http://127.0.0.1:9200}" echo "恢复 ES watermark 为默认值: $HOST" curl -fsS -XPUT "$HOST/_cluster/settings" -H 'Content-Type: application/json' -d '{ "transient": { "cluster.routing.allocation.disk.watermark.low": null, "cluster.routing.allocation.disk.watermark.high": null, "cluster.routing.allocation.disk.watermark.flood_stage": null } }' && echo "\nOK"