原因es分片被打满了,版本:elasticsearch:7.13.2,默认1000,控制台输入:
先查询es的SVC
k get svc -A|grep el
根据查询的端口执行以下内容 :
curl -X PUT -H "Content-Type:application/json" -d '{"persistent":{"cluster":{"max_shards_per_node":10000}}}' 'http://localhost:30920/_cluster/settings'
返回结果:
{"acknowledged":true,"persistent":{"cluster":{"max_shards_per_node":"10000"}},"transient":{}}
persistent 永久,transient临时,两种有区别