使用GlusterFS进行持久卷和UnavailableShardsException的Elasticsearch

问题描述 投票:0回答:1

我在OpenShift上部署了一个日志记录项目,并在GlusterFS上创建了PV,该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"}}}}}}]}]]

我该如何解决?

elasticsearch openshift redhat glusterfs search-guard
1个回答
0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.