Zookeeper-从独立升级到仲裁 [英] Zookeeper - upgrade from standalone to quorum

查看:93
本文介绍了Zookeeper-从独立升级到仲裁的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我有一个用于测试系统的独立ZK实例。
但是此测试系统已成为生产系统,我想从1个ZK实例升级到3个实例,而又不影响ZK监管的SolrCloud系统的可用性。

Currently I have a standalone ZK instances used in a test system. But this test system has become production system and i would like to upgrade from 1 ZK instance to 3 without compromising availability of the SolrCloud system that ZK is overseeing.

从我读过的文章中可以看到,使用滚动重启从3升级到5等非常容易,但是还没有找到有关从独立(1个实例)升级到3的任何信息。

From what i've read upgrading from 3 to 5 and so on is pretty easy using rolling restarts, but haven't found any info on going from standalone (1 instance) to 3.

是否有人对此有所了解(可能有人尝试过)?
谢谢!

Does anyone have any insight on this (anyone who might have tried it)? Thanks!

推荐答案

我毕竟通过停止节点1来完成此操作,将配置更新为其他所有节点服务器,然后为每个节点创建myid文件。
然后我重新启动节点1并启动节点2,3,4,一切都很好。

I managed to do it after all by stopping node 1, updating configuration to know of all other servers and then creating the myid files for each node. Then i restarted node 1 and started node 2,3,4 and everything went just fine.

这篇关于Zookeeper-从独立升级到仲裁的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆