ES什么時候會平衡分片


 "cluster.routing.allocation.balance.shard":"0.45f",//定義分配在該節點的分片數的因子 閾值=因子*(當前節點的分片數-集群的總分片數/節點數,即每個節點的平均分片數)

 "cluster.routing.allocation.balance.index":"0.55f",//定義分配在該節點某個索引的分片數的因子,閾值=因子*(保存當前節點的某個索引的分片數-索引的總分片數/節點數,即每個節點某個索引的平均分片數)

"cluster.routing.allocation.balance.threshold":"1.0f",//超出這個閾值就會重新分配分片

"cluster.routing.allocation.total_shards_per_node":-1,//單個節點的最大分片數
//Disk-based Shard Allocation "cluster.routing.allocation.disk.threshold_enabled":true,//是否開啟基於硬盤的分發策略 "cluster.routing.allocation.disk.watermark.low":"85%",//不會分配分片到硬盤使用率高於這個值的節點 "cluster.routing.allocation.disk.watermark.high":"90%",//如果硬盤使用率高於這個值,則會重新分片該節點的分片到別的節點 "cluster.info.update.interval":"30s",//當前硬盤使用率的查詢頻率 "cluster.routing.allocation.disk.include_relocations":true,//計算硬盤使用率時,是否加上正在重新分配給其他節點的分片的大小


摘自:https://github.com/13428282016/elasticsearch-CN/wiki/%E4%BB%80%E4%B9%88%E6%97%B6%E5%80%99%E4%BC%9A%E5%B9%B3%E8%A1%A1%E5%88%86%E7%89%87


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM