小编All*_*len的帖子

如何删除elasticsearch中未分配的分片?

我在一台计算机上只有一个节点,索引有 5 个没有副本的分片。以下是一些描述我的 elasticsearch 节点的参数(以下列表中忽略了健康索引):

GET /_cat/indices?v
health status index   pri rep docs.count docs.deleted store.size pri.store.size 
red    open   datas     5   0  344999414            0     43.9gb         43.9gb 

GET _cat/shards                                    
datas   4 p STARTED    114991132 14.6gb 127.0.0.1 Eric the Red 
datas   3 p STARTED    114995287 14.6gb 127.0.0.1 Eric the Red 
datas   2 p STARTED    115012995 14.6gb 127.0.0.1 Eric the Red 
datas   1 p UNASSIGNED                                         
datas   0 p UNASSIGNED                  

shards disk.indices disk.used disk.avail disk.total disk.percent host      ip        node         
14       65.9gb     710gb    202.8gb    912.8gb           77 …
Run Code Online (Sandbox Code Playgroud)

elasticsearch

7
推荐指数
2
解决办法
2万
查看次数

标签 统计

elasticsearch ×1