elasticsearch集群故障节点少于一半恢复数据


当elasticsearch集群节点少于一半的时候是不允许启动的,要想恢复节点的数据必须使用下面的方式启动单节点集群进行数据恢复。

elasticsearch-node unsafe-bootstrap can be used to perform unsafe cluster bootstrapping. It forces one of the nodes to form a brand-new cluster on its own, using its local copy of the cluster metadata.

在要恢复的节点上面执行命令

elasticsearch-node unsafe-bootstrap

然后启动节点恢复数据即可。


Whatever is worth doing is worth doing well.