当前位置:网站首页>Es log error appreciation -limit of total fields
Es log error appreciation -limit of total fields
2022-07-07 13:52:00 【Es assistant】
Error reporting
[o.e.a.a.i.m.p.TransportPutMappingAction] [------nodeid-------] failed to put mappings on indices [[[--------IndexName---------]]], type [doc]
java.lang.IllegalArgumentException: Limit of total fields [1000] in index [--------IndexName---------] has been exceeded
at org.elasticsearch.index.mapper.MapperService.checkTotalFieldsLimit(MapperService.java:656) ~[elasticsearch-6.8.2.jar:6.8.2]
at org.elasticsearch.index.mapper.MapperService.internalMerge(MapperService.java:537) ~[elasticsearch-6.8.2.jar:6.8.2]
at org.elasticsearch.index.mapper.MapperService.internalMerge(MapperService.java:415) ~[elasticsearch-6.8.2.jar:6.8.2]
Error reporting analysis
This problem is an error in writing ,ES By default, a single index is restricted 1000 A field , Because too many fields defined in the index will lead to mapping The surge of , Thus causing memory errors and difficult to recover .
This problem is common after log splitting , Automatic update update mapping, Due to abnormal log splitting logic , As a result, many abnormal fields are mistaken for new fields , Cause index maaping The field surge is greater than 1000. Cause update error .
Solution
1- Adjust index setting, Temporarily increase the limit of the number of fields , In the following ways my_index To report an error index name .
PUT my_index/_settings
{
"index.mapping.total_fields.limit": 2000
}
This is set to 2000 Maximum index
2- Check the reasons for the surge in the number of fields on the business side , Reduce the number of single index fields .
边栏推荐
猜你喜欢
10 pictures open the door of CPU cache consistency
Milkdown control icon
2022-7-6 初学redis(一)在 Linux 下下载安装并运行 redis
高等数学---第八章多元函数微分学1
LIS longest ascending subsequence problem (dynamic programming, greed + dichotomy)
【堡垒机】云堡垒机和普通堡垒机的区别是什么?
Help tenants
Leetcode simple question sharing (20)
Esp32 construction engineering add components
118. Yanghui triangle
随机推荐
Introduction and basic use of stored procedures
2022-7-6 Leetcode27. Remove the element - I haven't done the problem for a long time. It's such an embarrassing day for double pointers
2022-7-6 Leetcode 977. Square of ordered array
"Song of ice and fire" in the eleventh issue of "open source Roundtable" -- how to balance the natural contradiction between open source and security?
Read PG in data warehouse in one article_ stat
[daily training -- Tencent select 50] 231 Power of 2
C语言数组相关问题深度理解
Help tenants
Ways to improve the performance of raspberry pie
2022-7-7 Leetcode 34.在排序数组中查找元素的第一个和最后一个位置
LeetCode简单题分享(20)
The delivery efficiency is increased by 52 times, and the operation efficiency is increased by 10 times. See the compilation of practical cases of financial cloud native technology (with download)
Realize the IP address home display function and number home query
ES日志报错赏析-Limit of total fields
AI人才培育新思路,这场直播有你关心的
Advanced Mathematics - Chapter 8 differential calculus of multivariate functions 1
. Net core about redis pipeline and transactions
2022-7-7 Leetcode 34. Find the first and last positions of elements in a sorted array
LED light of single chip microcomputer learning notes
Redis只能做缓存?太out了!