Elasticsearch 节点崩溃
Elasticsearch Node Crashing
我们在集群中的一个节点中收到这些错误,该节点将这些错误炒作 cpu 并加载到 elasticsearch 的最大级别无法响应。节点资源 2 CPU 8 RAM
Elasticsearch 版本:6.5.4
错误:
1)
Found index level settings on node level configuration.
Since elasticsearch 5.x index level settings can NOT be set on the nodes
configuration like the elasticsearch.yaml, in system properties or command line
arguments.In order to upgrade all indices the settings must be updated via the
/${index}/_settings API. Unless all settings are dynamic all indices must be closed
in order to apply the upgradeIndices created in the future should use index templates
to set default values.
Please ensure all required values are updated on all indices by executing:
curl -XPUT 'http://localhost:9200/_all/_settings?preserve_existing=true' -d '{
"index.refresh_interval" : "2m"
}'
2)
[2019-06-10T13:17:31,996][WARN ][o.e.d.s.a.MultiBucketConsumerService] [elasticsearch6_data02] This aggregation creates too many buckets (10480) and will throw an error in future versions. You should update the [search.max_buckets] cluster setting or use the [composite] aggregation to paginate all buckets in multiple requests.
org.elasticsearch.index.mapper.MapperParsingException: failed to parse field [flashlogExtra.installedVersion] of type [text]
java 版本:openjdk 版本“1.8.0_212”
JVM configuration
-Xms3843m
-Xmx3843m
-XX:+UseParNewGC
-XX:+UseConcMarkSweepGC
-XX:CMSInitiatingOccupancyFraction=75
-XX:+UseCMSInitiatingOccupancyOnly
-XX:+HeapDumpOnOutOfMemoryError
-XX:+PrintGCDetails
存在多个问题。
让我们从最简单的开始。
org.elasticsearch.index.mapper.MapperParsingException:无法解析类型为 [text]
的字段 [flashlogExtra.installedVersion]
This exception 明确表示你映射中的字段flashlogExtra.installedVersion
,被定义为ES无法解析的text
字段,字段名中的.
用于定义object
输入 ES 并阅读更多相关信息 here。 我怀疑,您在当前 ES 版本中使用了早期版本的 ES 中定义的映射,因为 ES 1.x 版本 支持字段名称中的 .
.
您的 post 中未显示的第二个警告或错误与 某些不再适用于您正在使用的 ES 版本的设置有关, 在日志中你应该有这个设置的信息。但是很容易解决,因为解决这个问题的提示也显示在下面的消息中
curl -XPUT
'http://localhost:9200/_all/_settings?preserve_existing=true' -d '{
"index.refresh_interval" : "2m" }'
第三个警告,导致你的集群性能低下的原因是
[2019-06-10T13:17:31,996][WARN ][o.e.d.s.a.MultiBucketConsumerService] [elasticsearch6_data02] 此聚合创建了太多的桶 (10480) 并且会在未来的版本中抛出错误.您应该更新 [search.max_buckets] 集群设置或使用 [composite] 聚合来分页
此警告提示您,您的某些聚合搜索查询正在 ES 中创建大量桶,没有给出 10480,这是巨大的,ES 建议您使用 search.max_buckets 减少这个 no 或使用 composite 聚合来避免这么多桶。
希望您能够一一解决这些问题,如果解决了您的问题,请告诉我。
我们在集群中的一个节点中收到这些错误,该节点将这些错误炒作 cpu 并加载到 elasticsearch 的最大级别无法响应。节点资源 2 CPU 8 RAM
Elasticsearch 版本:6.5.4
错误: 1)
Found index level settings on node level configuration.
Since elasticsearch 5.x index level settings can NOT be set on the nodes
configuration like the elasticsearch.yaml, in system properties or command line
arguments.In order to upgrade all indices the settings must be updated via the
/${index}/_settings API. Unless all settings are dynamic all indices must be closed
in order to apply the upgradeIndices created in the future should use index templates
to set default values.
Please ensure all required values are updated on all indices by executing:
curl -XPUT 'http://localhost:9200/_all/_settings?preserve_existing=true' -d '{
"index.refresh_interval" : "2m"
}'
2)
[2019-06-10T13:17:31,996][WARN ][o.e.d.s.a.MultiBucketConsumerService] [elasticsearch6_data02] This aggregation creates too many buckets (10480) and will throw an error in future versions. You should update the [search.max_buckets] cluster setting or use the [composite] aggregation to paginate all buckets in multiple requests.
org.elasticsearch.index.mapper.MapperParsingException: failed to parse field [flashlogExtra.installedVersion] of type [text]
java 版本:openjdk 版本“1.8.0_212”
JVM configuration
-Xms3843m
-Xmx3843m
-XX:+UseParNewGC
-XX:+UseConcMarkSweepGC
-XX:CMSInitiatingOccupancyFraction=75
-XX:+UseCMSInitiatingOccupancyOnly
-XX:+HeapDumpOnOutOfMemoryError
-XX:+PrintGCDetails
存在多个问题。
让我们从最简单的开始。
org.elasticsearch.index.mapper.MapperParsingException:无法解析类型为 [text]
的字段 [flashlogExtra.installedVersion]This exception 明确表示你映射中的字段
flashlogExtra.installedVersion
,被定义为ES无法解析的text
字段,字段名中的.
用于定义object
输入 ES 并阅读更多相关信息 here。 我怀疑,您在当前 ES 版本中使用了早期版本的 ES 中定义的映射,因为 ES 1.x 版本 支持字段名称中的.
.您的 post 中未显示的第二个警告或错误与 某些不再适用于您正在使用的 ES 版本的设置有关, 在日志中你应该有这个设置的信息。但是很容易解决,因为解决这个问题的提示也显示在下面的消息中
curl -XPUT 'http://localhost:9200/_all/_settings?preserve_existing=true' -d '{ "index.refresh_interval" : "2m" }'
第三个警告,导致你的集群性能低下的原因是 [2019-06-10T13:17:31,996][WARN ][o.e.d.s.a.MultiBucketConsumerService] [elasticsearch6_data02] 此聚合创建了太多的桶 (10480) 并且会在未来的版本中抛出错误.您应该更新 [search.max_buckets] 集群设置或使用 [composite] 聚合来分页
此警告提示您,您的某些聚合搜索查询正在 ES 中创建大量桶,没有给出 10480,这是巨大的,ES 建议您使用 search.max_buckets 减少这个 no 或使用 composite 聚合来避免这么多桶。
希望您能够一一解决这些问题,如果解决了您的问题,请告诉我。