[ElasticSearch] ElasticSearch 修改 shards 数量


ES7 默认的单节点 shards 数量是 1000 个分片,那么在我们默认3个集群下就是 3000 的 shards 数量,今天在创建索引时提示 shards 数量不足,那么就使用下方代码进行修改 shards 数量配置

PUT /_cluster/settings
{
  "persistent": {
    "cluster": {
      "max_shards_per_node":10000
    }
  }
}

具体的使用情况也可以前往 Monitoring 中详细查看,也可以使用 

GET _nodes/stats

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM