【问题标题】:Elasticsearch using GlusterFS for a persisten volume and UnavailableShardsExceptionElasticsearch 将 GlusterFS 用于持久卷和 UnavailableShardsException
【发布时间】:2017-09-21 13:03:20
【问题描述】:

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

我该如何解决这个问题?

【问题讨论】:

    标签: elasticsearch openshift redhat glusterfs search-guard


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-08-11
      • 1970-01-01
      • 2020-05-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-08-17
      相关资源
      最近更新 更多