elasticsearch - Elasticsearch节点未获得任何碎片-如何诊断原因?

标签 elasticsearch

我有一个由五个节点组成的Elasticsearch集群。我在每个集合上的配置都相同,每个索引5个碎片和4个副本。这个想法是每个节点都将拥有每个分片。

我的四个节点有五个分片。一个节点的所有节点均为主节点。一个节点没有。然后,当然,我有5个未分配的碎片。

我每天都重新加载一个新索引,而这正是它每次分配分片的方式。

这里的目标是弄清楚为什么一个节点什么也得不到。那很糟。

我很容易问为什么会这样-如果有人知道,那太好了。但是由于我似乎无法在网上找到任何东西或在文档中找到任何可以解释这一点的信息,因此我可能必须问一下如何诊断它?有什么线索吗?我有什么可以在这里提供线索的吗?

编辑添加-这是我的配置。每台机器看起来都是这样(当然,机器名称和发现除外):

#
# Server-specific settings for cluster domainiq-es
#
cluster.name: domainiq-es
node.name: "Mesa-01"
discovery.zen.ping.unicast.hosts: ["m1plfinddev03.prod.mesa1.gdg", "m1plfinddev04.prod.mesa1.gdg", "p3plfinddev03.prod.phx3.gdg", "p3plfinddev04.prod.phx3.gdg"]
#
# The following configuration items should be the same for all ES servers
#
node.master: true
node.data: true
index.number_of_shards: 5
index.number_of_replicas: 4
index.store.type: mmapfs
index.memory.index_buffer_size: 30%
index.translog.flush_threshold_ops: 25000
index.refresh_interval: 30s
bootstrap.mlockall: true
gateway.recover_after_nodes: 4
gateway.recover_after_time: 2m
gateway.expected_nodes: 5
discovery.zen.minimum_master_nodes: 2
discovery.zen.ping.timeout: 10s
discovery.zen.ping.retries: 3
discovery.zen.ping.interval: 15s
discovery.zen.ping.multicast.enabled: false
index.search.slowlog.threshold.query.warn: 500ms
index.search.slowlog.threshold.query.info: 200ms
index.search.slowlog.threshold.query.debug: 199ms
index.search.slowlog.threshold.query.trace: 198ms
index.search.slowlog.threshold.fetch.warn: 1s
index.search.slowlog.threshold.fetch.info: 800ms
index.search.slowlog.threshold.fetch.debug: 500ms
index.search.slowlog.threshold.fetch.trace: 200ms
index.indexing.slowlog.threshold.index.warn: 10s
index.indexing.slowlog.threshold.index.info: 5s
index.indexing.slowlog.threshold.index.debug: 2s
index.indexing.slowlog.threshold.index.trace: 500ms

最佳答案

感谢Alcanzar,在上面的评论中,我确实相信这里的问题是他所看到的-不同版本。不接受分片的节点运行的版本比其他版本早。

我将在本周末将所有内容升级到1.4,并且可能会消失。现在完全有意义。

关于elasticsearch - Elasticsearch节点未获得任何碎片-如何诊断原因?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26915957/

相关文章:

Elasticsearch:查找带空格和不带空格的值

amazon-web-services - ec2 实例上的 amazon_es 输出插件安装错误?

elasticsearch - Elasticsearch中的模糊搜索给出了顺序错误的匹配项

java - 错误 : mongodb. jdbc.MongoDriver 未加载。您确定已在 :jdbc_driver_library? 中包含正确的 jdbc 驱动程序吗

elasticsearch - Logstash不适用于输入文本文件

json - 在ElasticSearch上的批量请求返回消息 “The bulk request must be terminated by a newline”

elasticsearch - elasticsearch在嵌套类型内搜索数组字段

elasticsearch - 使用Curl将数据放入ES中并获得意外字符('n'(代码110))

elasticsearch - 如何修复Elasticsearch以格式 “2014-01”返回 “2014-12-31”的 “yyyy-ww”

elasticsearch - Logstash:映射中的字段顺序错误