Elasticsearch使用GlusterFS获取持久性卷和UnavailableShardsException

时间:2017-09-21 13:03:20

标签: elasticsearch openshift redhat glusterfs

我在OpenShift上部署了一个日志项目,并在GlusterFS上创建了一个PV,它由一个在集群中运行的3台服务器组成。

我在GlusterFS和enabled sharding功能上创建了一个卷。但是,Elasticsearch没有按预期运行,我收到此错误:

FAIL: Configuration for 'config' failed because of UnavailableShardsException[[.searchguard.logging-es-6akrt1z2-11-66509][0] primary shard is not active Timeout: [1m], request: [index {[.searchguard.logging-es-6akrt1z2-11-66509][config][0], source[{"searchguard":{"dynamic":{"http":{"xff":{"enabled":true,"remoteIpHeader":"x-forwarded-for","trustedProxies":".*","internalProxies":".*"}},"authc":{"authentication_domain_proxy":{"enabled":true,"order":0,"http_authenticator":{"challenge":false,"type":"proxy","config":{"user_header":"x-proxy-remote-user"}},"authentication_backend":{"type":"noop"}},"authentication_domain_basic_internal":{"enabled":true,"order":1,"http_authenticator":{"type":"clientcert","challenge":false},"authentication_backend":{"type":"noop"}}}}}}]}]]

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

好的,我解决了这个问题。看起来卷上的默认分片大小很小,所以我把它设置为50GB。现在,出现了一个新问题,如果我将Elasticsearch设置为使用2个分片,然后分片超过50 GB,会发生什么?