问题描述:

在做es集群添加索引的时候添加不上

日志信息:

    low disk watermark [85%] exceeded on [E8MIIuMBQRWk-BxWB57uMA][xc_node_1][D:\software\develop_software\elasticsearch\elasticsearch-6.2.1-1\data\nodes\0] free: 55.2gb[14.7%], replicas will not be assigned to this node

问题分析:

    根据日志信息,提示是因为磁盘超过85%,查阅资料后发现,磁盘空间到达85%时,es会将节点上面的索引标为只读,导致不能写入数据

解决方式:

    1. 调整磁盘空间比例(使用百分比或gb)
        cluster.routing.allocation.disk.watermark.low: 30g
        cluster.routing.allocation.disk.watermark.high: 20gb

    2. 关闭阀值设置
        cluster.routing.allocation.disk.threshold_enabled: false

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐