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

elasticsearch版本升级方案html

 

经常使用的滚动升级过程(Rolling Upgrade)以下:node

$ 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.servicejson

# upgrade elasticsearchapp

$ 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'curl

以上为单个节点升级过程,逐个节点操做便可elasticsearch


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

相关文章
相关标签/搜索