重启es
参考文件
https://www.elastic.co/guide/en/elasticsearch/reference/current/restart-cluster.html
版本号
7.17.3
步骤
重启前:
PUT _cluster/settings
{
"persistent": {
"cluster.routing.allocation.enable": "primaries"
}
}
POST _flush/synced
重启:
直接kill
然后bin/elasticsearch -d
重启后:
GET _cat/health
GET _cat/nodes
PUT _cluster/settings
{
"persistent": {
"cluster.routing.allocation.enable": null
}
}
GET _cat/health
GET _cat/recovery