ELK,萌萌哒

es未分配的分片问题

Elasticsearch | 作者 niezefeng | 发布于2017年12月14日 | 阅读数:8140

     小弟现在遇到一个问题,公司有一套运行中的es集群 1master 5 data node。前两天有台机器的数据存储的某一块硬盘坏了,换盘需要一段时间。 所以我将该节点的path.data设置剔除了这个坏盘的路径,重启节点。 但是目前出现了大量的unassign 的分片。 
          使用  POST _cluster/reroute 指令会报如下错误
          [NO(shard has exceeded the maximum number of retries [5] on failed allocation attempts - manually call [/_cluster/reroute?retry_failed=true] to retry, 
[unassigned_info[[reason=ALLOCATION_FAILED], at[2017-12-09T01:23:35.203Z], failed_attempts[5], delayed=false, 
details[failed to create shard, failure FileSystemException[/data/disk05/nodes/1/indices/EvKb4hYrSha-HWcYmHdvLQ/3: Read-only file system]], 
allocation_status[no_attempt]]])]
 
小弟按照提示设置 retry_failed=true 成功分配的分片。 我想问reroute 指令能不能批量操作? 或者有其他什么办法可以让这些分片自动分配了。
已邀请:

要回复问题请先登录注册