0

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

我在 GlusterFS 上创建了一个卷并在其上启用了分片功能。但是,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"}}}}}}]}]]

我该如何解决这个问题?

4

1 回答 1

0

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

于 2017-09-21T13:46:24.563 回答