elk每天一個(gè)index今天kibana刷不出東西看logstash報(bào)錯(cuò)內(nèi)容是:ValidationFailed:1:thisactionwouldadd[2]totalshards,butthisclustercurrentlyhas[1001]/[1000]maximumshardsopen可能是什么原因?qū)е碌模?
2 回答

喵喵時(shí)光機(jī)
TA貢獻(xiàn)1846條經(jīng)驗(yàn) 獲得超7個(gè)贊
你用的7版本以上的elasticsearch吧,默認(rèn)只允許1000個(gè)分片,問題是因?yàn)榧悍制瑪?shù)不足引起的?,F(xiàn)在在elasticsearch.yml中定義>cluster.max_shards_per_node:10000貌似也不生效,默認(rèn)就允許創(chuàng)建1000個(gè)分片,我是在kibana的tools中改變臨時(shí)設(shè)置PUT/_cluster/settings{"transient":{"cluster":{"max_shards_per_node":10000}}}這樣就生效了

白豬掌柜的
TA貢獻(xiàn)1893條經(jīng)驗(yàn) 獲得超10個(gè)贊
curl-XPUT-H"Content-Type:application/json"-d'{"transient":{"cluster":{"max_shards_per_node":10000}}}''http://localhost:9200/_cluster/settings'