弹性主要碎片不平衡 [英] Elasticsearch Primary Shards not balanced

查看:113
本文介绍了弹性主要碎片不平衡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到我的elasitcsearch集群中有一个奇怪的行为。如下面的截图所示(它显示了kopf-plugin),大多数主分片位于nl-1服务器上。我以为,elasitcsearch平衡了所有服务器上的主分片。我是错的还是为什么会发生这种情况?



感谢您的帮助。



解决方案

我不认为初级平衡是ES的重点。



在这里查看这个github问题问题



有一个集群设置,您可以调整以推动平衡。



群集.routing.allocation.balance.primary


I noticed a strange behaviour in my elasitcsearch cluster. As you can see on the screenshot below (it shows the "kopf"-plugin), most of the primary shards are located on the nl-1 server. I thought, that elasitcsearch balanced the primary shards evenly over all servers. Am I wrong or why is this happening?

Thank you for your help.

解决方案

I dont think balance of primaries is a focus of ES.

See this github issues question about it here

There is a cluster settings you can tweak to nudge towards balancing them.

cluster.routing.allocation.balance.primary

这篇关于弹性主要碎片不平衡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆