ElasticSearch 5.5.1 小版本升级到 5.5.3

警告
本文最后更新于 2022-04-23 17:56,文中内容可能已过时。
1
2
3
4
5
6
PUT _cluster/settings
{
  "persistent": {
    "cluster.routing.allocation.enable": "none"
  }
}

可以提升恢复速度 https://www.kancloud.cn/apachecn/elasticsearch-doc-zh/1945139

1
POST _flush/synced
1
2
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.5.3.rpm
rpm -U elasticsearch-5.5.3.rpm

如果配置了 master 和 node,需要优先启动 master

1
systemctl start elasticsearch

可以看到集群处于黄色状态,这是因为副本分片没有被分配

1
2
3
GET _cat/health

GET _cat/nodes
1
2
3
4
5
6
PUT _cluster/settings
{
  "persistent": {
    "cluster.routing.allocation.enable": "all"
  }
}
1
2
3
4
5
# 查看集群健康状态
GET _cat/health

# 查看恢复进度
GET _cat/recovery
请我喝杯水
SoulChild 微信号 微信号
SoulChild 微信打赏 微信打赏
0%