Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/41.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
<img src="//i.stack.imgur.com/RUiNP.png" height="16" width="18" alt="" class="sponsor tag img">elasticsearch 如何在Elasticsearch集群中释放空间_<img Src="//i.stack.imgur.com/RUiNP.png" Height="16" Width="18" Alt="" Class="sponsor Tag Img">elasticsearch_Kibana 5 - Fatal编程技术网 elasticsearch 如何在Elasticsearch集群中释放空间,elasticsearch,kibana-5,elasticsearch,Kibana 5" /> elasticsearch 如何在Elasticsearch集群中释放空间,elasticsearch,kibana-5,elasticsearch,Kibana 5" />

elasticsearch 如何在Elasticsearch集群中释放空间

elasticsearch 如何在Elasticsearch集群中释放空间,elasticsearch,kibana-5,elasticsearch,Kibana 5,由于空间不足,我的Elasticsearch集群状态为红色,但当我通过查询GET/_cat/allocation?v&pretty进行检查时,两个节点中都显示了6.8 Gb的可用空间 有人能帮我吗 shards disk.indices disk.used disk.avail disk.total disk.percent host ip node 6 25.5gb 27.3gb 6.8gb 34.2gb

由于空间不足,我的Elasticsearch集群状态为红色,但当我通过查询GET/_cat/allocation?v&pretty进行检查时,两个节点中都显示了6.8 Gb的可用空间

有人能帮我吗

shards disk.indices disk.used disk.avail disk.total disk.percent host          ip            node
     6       25.5gb    27.3gb      6.8gb     34.2gb           80 x.x.x.x x.x.x.x 
     6       25.5gb    27.3gb      6.8gb     34.2gb           80 x.x.x.x x.x.x.x 

您可以按照文档中的说明增加磁盘水印


我认为水印阈值设置为80%
curl -XPUT "localhost:9200/_cluster/settings" -d '{ 
"transient": {
  "cluster.routing.allocation.disk.watermark.low": "1gb",
  "cluster.routing.allocation.disk.watermark.high": "500mb",
  "cluster.routing.allocation.disk.watermark.flood_stage": "200mb",
  "cluster.info.update.interval": "1m"
}'