ES节点磁盘水位线cluster.routing.allocation.disk.watermark

Elasticsearch通过cluster.routing.allocation.disk.watermark参数控制磁盘使用,低水位线默认85%,高于此比例不会分配新副本。高水位线默认90%,磁盘使用超过此比例会尝试迁移分片。当所有节点达85%时,新索引主分片仍可分配,但副本无法分配,导致集群状态变黄。

为了控制es节点磁盘写入大小,es设置了水位线这一参数,具体有两个:

cluster.routing.allocation.disk.watermark.low 

(Dynamic) Controls the low watermark for disk usage. It defaults to 85%, meaning that Elasticsearch will not allocate shards to nodes that have more than 85% disk used. It can alternatively be set to a ratio value, e.g., 0.85. It can also be set to an absolute byte value (like 500mb) to prevent Elasticsearch from allocating shards if less than the specified amount of space is available. This setting has no effect on the primary shards of newly-created indices but will prevent their replicas from being allocated.

控制磁盘使用情况的低水位线。它默认为 85%,这意味着 Elasticsearch 不会将分片分配给磁盘使用率超过 85% 的节点。也可以将其设置为比率值,例如 0.85。它也可以设置为绝对字节值(如 500mb),以防止 Elasticsearch

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值