由于空间不足,我的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
答案 0 :(得分:1)
您可以按照文档here
中所述增加磁盘水印。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"
}'