Elasticsearch 将 GlusterFS 用于持久卷和 UnavailableShardsException

Elasticsearch using GlusterFS for a persisten volume and UnavailableShardsException

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

我在 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"}}}}}}]}]]

我该如何解决这个问题?

好的,我解决了这个问题。卷上的默认分片大小似乎太小,因此我将其设置为 50GB。现在,出现了一个新问题,如果我将 Elasticsearch 设置为使用 2 个分片,然后一个分片增长超过 50 GB 会怎样?