Validation Failed: 1: this action would add [2] shards, but this cluster currently has [999]/[1000]

在最近部署的一个项目中,是使用elk来记录应用系统日志的,突然发现,近几天的日志在kibana上面没有显示。于是去排查elk的日志,发现logstash中有这样一条警告信息

"Validation Failed: 1: this
action would add [2] shards, but this cluster currently has [999]/[1000]
maximum normal shards open;"

这句话的意思是,当前操作(可能是创建一个新的索引或向现有索引添加数据)将会增加2个分片,但Elasticsearch集群已经打开了999个分片,并且配置的最大正常分片数量为1000。因此,这个操作会因为超出最大分片限制而被拒绝

解决:

[root@localhost log]# curl -XPUT -u '用户名:密码' -H "Content-Type:application/json" -d '{"persistent":{"cluster":{"max_shards_per_node":10000}}}' 'http://ES的Ip地址:9200/_cluster/settings'
{"acknowledged":true,"persistent":{"cluster":{"max_shards_per_node":"10000"}},"transient":{}}[root@localhost log]# 

增加分片限制

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值