ES节点磁盘水位线cluster.routing.allocation.disk.watermark
为了控制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 在可用空间少于指定数量时分配分片。此设置对新创建的索引的主分片没有影响,但会阻止分配其副本。
cluster.routing.allocation.disk.watermark.high
(Dynamic) Controls the high watermark. It defaults to 90%
, meaning that Elasticsearch will attempt to relocate shards away from a node whose disk usage is above 90%. It can alternatively be set to a ratio value, e.g., 0.9
. It can also be set to an absolute byte value (similarly to the low watermark) to relocate shards away from a node if it has less than the specified amount of free space. This setting affects the allocation of all shards, whether previously allocated or not.
控制高水位线。它默认为 90%,这意味着 Elasticsearch 将尝试将分片从磁盘使用率高于 90% 的节点中重新定位。也可以将其设置为比率值,例如 0.9。也可以将其设置为绝对字节值(类似于低水位线),以便在节点的可用空间量小于指定量时将分片重新定位到远离节点的位置。此设置会影响所有分片的分配,无论之前是否分配。
cluster.routing.allocation.disk.watermark.low这个设置对新创建索引的主shard是不起作用的。如果集群中所有节点磁盘水位达到85%,有新创建的索引需要进行分配,此时新创建的索引主shard正常分配,而其副本无法分配导致集群状态为yellow。创建索引主分片分片规则:优先分配到分片数较少的节点。
cluster.routing.allocation.disk.watermark.high这个配置指磁盘水位达到90%的节点,es会把该节点上的部分shard迁移到磁盘水位低的节点上去。
这篇好文章是转载于:学新通技术网
- 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
- 本站站名: 学新通技术网
- 本文地址: /boutique/detail/tanhgaahga
-
photoshop保存的图片太大微信发不了怎么办
PHP中文网 06-15 -
Android 11 保存文件到外部存储,并分享文件
Luke 10-12 -
word里面弄一个表格后上面的标题会跑到下面怎么办
PHP中文网 06-20 -
《学习通》视频自动暂停处理方法
HelloWorld317 07-05 -
photoshop扩展功能面板显示灰色怎么办
PHP中文网 06-14 -
微信公众号没有声音提示怎么办
PHP中文网 03-31 -
怎样阻止微信小程序自动打开
PHP中文网 06-13 -
excel下划线不显示怎么办
PHP中文网 06-23 -
excel打印预览压线压字怎么办
PHP中文网 06-22 -
photoshop蒙版画笔没反应怎么办
PHP中文网 06-24