1

es磁盘使用为啥这么不均匀_赵承胜博客的技术博客_51CTO博客

 1 year ago
source link: https://blog.51cto.com/zhaochengsheng/5938898
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

es磁盘使用为啥这么不均匀

精选 原创

赵承胜博客 2022-12-15 10:50:43 博主文章分类:Elasticsearch ©著作权

文章标签 es磁盘使用为啥这么不均匀 文章分类 云平台 云计算 阅读数163

es磁盘使用为啥这么不均匀_es磁盘使用为啥这么不均匀

解决方案如下

过下面的命令查到集群reblance属性是none

GET _cluster/settings

使用下面的命令恢复平衡

PUT_cluster/settings
{
"persistent": {
"cluster.routing.rebalance.enable": "all"
}
}

登录主机发现有的节点已经 95%

调整es磁盘水平线,即磁盘空间占用情况和分片的情况。

curl -s -u admin:admin -XPUT ip:port/_cluster/settings -d '
{
"persistent": {
"cluster": {
"routing": {
"allocation.disk.watermark.high": "90%",
"allocation.disk.watermark.low": "85%"
}
}
}
}'
es磁盘使用为啥这么不均匀_es磁盘使用为啥这么不均匀_02

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK