elasticsearch版本升级方案

【原创】大数据基础之ElasticSearch(3)升级

 

常用的滚动升级过程(Rolling Upgrade)如下:

$ curl -XPUT '$es_server:9200/_cluster/settings?pretty' -H 'Content-Type: application/json' -d '{"transient":{"cluster.routing.allocation.enable":"none"}}'
$ curl -XPOST '$es_server/_flush/synced?pretty'
$ systemctl stop elasticsearch.service

# upgrade elasticsearch

$ systemctl start elasticsearch.service
$ curl -XGET '$es_server:9200/_cat/nodes?pretty'
$ curl -XPUT '$es_server:9200/_cluster/settings?pretty' -H 'Content-Type: application/json' -d '{"transient":{"cluster.routing.allocation.enable":"all"}}'
$ curl -XGET '$es_server:9200/_cat/health?pretty'

以上为单个节点升级过程,逐个节点操作即可


参考:
https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-upgrade.html
https://www.elastic.co/guide/en/elasticsearch/reference/current/rolling-upgrades.html

 

相关文章:

  • 2021-05-15
  • 2021-08-15
  • 2021-07-17
  • 2021-05-21
  • 2021-11-18
  • 2022-02-28
  • 2021-06-06
  • 2021-08-26
猜你喜欢
  • 2021-08-29
  • 2021-08-02
  • 2021-09-12
  • 2021-06-08
  • 2021-11-17
  • 2021-06-29
  • 2022-02-05
相关资源
相似解决方案