看,灰机...

elasticsearch5.2.1 rolloing upgrade到5.6.5遇到小坑

Elasticsearch | 作者 arterforyou | 发布于2018年01月12日 | 阅读数:2544

参考连接就看官网就行:
  1. https://www.elastic.co/guide/e ... .html
  2. https://www.elastic.co/guide/e ... .html

步骤很简单:
  1.  关闭allocation
  2.  POST _flush/synced
  3.  升级软件版本和plugin
  4.  启动新版本的es,待加入集群,nodes数显示正常
  5.  打开allocation,等待数据本地恢复,变为green后继续下一个node升级

注意:
  1. 一定要关闭allocation,否则数据分片会偏移,重复copy
  2. 如果有新索引,一个集群至少要升级两台测试,否则高版本的主shard,副shard不通分配到低版本[list=1][*]报错: "explanation": "target node version [5.2.1] is older than the source node version [5.6.5]"
  3.  curl localhost:9200/_cluster/allocation/explain|python -m json.tool 可以查看

 

[/*]
[*]升级过程中遇到一个参数的bug,https://discuss.elastic.co/t/c ... 15403[/*]
[/list]
  
已邀请:

要回复问题请先登录注册