
On Fri, Nov 20, 2020 at 02:43:35PM +0800, Zhang Yuhang wrote:
[why] "index.mapping.total_fields.limit": The maximum number of fields in an index. The default value is 1000.
1000 is small for "jobs" index.
Signed-off-by: Zhang Yuhang <zhangyuhang25@huawei.com> --- sbin/es-jobs-mapping.sh | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/sbin/es-jobs-mapping.sh b/sbin/es-jobs-mapping.sh index 076bdd3..018f57e 100755 --- a/sbin/es-jobs-mapping.sh +++ b/sbin/es-jobs-mapping.sh @@ -149,5 +149,10 @@ else if [ $? -ne 0 ] then echo "create jobs index failed." + else + echo "set index.mapping.total_fields.limit: 10000" + curl -XPUT 127.0.0.1:9200/jobs/_settings -H 'Content-Type: application/json' -d ' + {"index.mapping.total_fields.limit": 10000} + '
^--Putting the quotation marks here does not feel good, can you adjust the format? Thanks sunyukui
fi fi -- 2.23.0