1 Elasticsearch 2.x 版本
因为document路由机制,不可变变主分片(primary shard)
https://www.elastic.co/guide/cn/elasticsearch/guide/current/shard-scale.html
2 6.x之后
从ES6.1开始,ES 支持可以在线操作扩大shard的数量(注意:操作期间也需要对index锁写)
从ES7.0开始,split时候,不再需要加参数 index.number_of_routing_shards
具体参考官方文档:
https://www.elastic.co/guide/en/elasticsearch/reference/7.6/indices-split-index.html
https://www.elastic.co/guide/en/elasticsearch/reference/7.5/indices-split-index.html