elasticsearch 子节点有Unassigned Shards处理方法

1、查找原因,找到未知道的node,shard

http://localhost:9200/_cluster/allocation/explain?pretty

POST /_cluster/reroute?retry_failed=true
{
"commands" : [

{
"allocate_replica" : {
"index" : "myindex",
"shard" : 1,
"node" : "mynode"
}
}
]
}

猜你喜欢

转载自www.cnblogs.com/zhangfeitaimengle/p/11024735.html