admin管理员组

文章数量:1530017

设置

PUT _cluster/settings
{
  "transient": {
    "cluster.routing.allocation.exclude._ip": "10.0.0.3",
    "cluster.routing.allocation.exclude._port": "9303"
  }
}

清空恢复(对应值设置为null)

PUT _cluster/settings
{
  "transient": {
    "cluster.routing.allocation.exclude._ip": null,
    "cluster.routing.allocation.exclude._port": null
  }
}

本文标签: 集群清空Elasticsearch