Zookeeper - 从独立升级到法定人数 [英] Zookeeper - upgrade from standalone to quorum

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

问题描述

目前我在测试系统中使用了一个独立的 ZK 实例.但是这个测试系统已经变成了生产系统,我想在不影响 ZK 监管的 SolrCloud 系统的可用性的情况下从 1 个 ZK 实例升级到 3 个.

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天全站免登陆