【ELKF】kibana创建Index patterns后,无法在Discover中显示

创建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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值