创建Index patterns后,无法在Discover中显示,感觉没有保存到elasticsearch, 警告提示如下:
[2021-03-07T22:49:41,245][WARN ][o.e.c.r.a.DiskThresholdMonitor] high disk watermark [90%] exceeded on [FK2MFPXzTEu_HMse5NFYbA][/Users/chyzhong/01-worktools/15-ELKF7.9.3-mac/elasticsearch-7.9.3/data/nodes/0] free: 21.9gb[9.4%], shards will be relocated away from this node; currently relocating away shards totalling [0] bytes; the node is expected to continue to exceed the high disk watermark when these relocations are complete
解决办法:
转载于:https://www.cnblogs.com/sonofelice/p/8554887.html
看日志的意思就是,节点sonofelice上的磁盘空间使用率超过了85%,空闲21.9gb,占总磁盘空间的9.4%。将不会在该节点上分配副本了。
第一种方式,是简单粗暴的在elasticsearch.yml文件中直接加入下面一行命令, 这个测试可以:
cluster.routing.allocation.disk.threshold_enabled: false
有时候这个也不好使,比如我磁盘250G,剩下30G也无效。赶紧清磁盘到剩下56G,果然又可以使用了。
第二种方式,则是自己控制磁盘空间使用率超过多少的时候不再分配副本。默认是85%,所以才会有上面的日志
cluster.routing.allocation.disk.threshold_enabled: true
cluster.routing.allocation.disk.watermark.low: 30gb
cluster.routing.allocation.disk.watermark.high: 20gb
---------------------
作者:古攵鄉白勺雲
来源:CSDN
原文:https://blog.csdn.net/chenzhong2010/article/details/114502885
版权声明:本文为作者原创文章,转载请附上博文链接!