当前位置:网站首页>ZK has a node reporting it is possible not running and the log has no obvious error
ZK has a node reporting it is possible not running and the log has no obvious error
2022-06-23 04:56:00 【ximi_ xuexi】
In a problem investigation , The discovery application is partly about zk Log error of . And in view zk In the state of , An error is found on one node It is probably not running.
1、 Use ./zkServer.sh status View all zk The state of the node .
./zkServer.sh status The normal return of this instruction should be leader Or is it follower.
2、 It is found that except for one error reporting node , All other nodes return the status as follower.
The error information of the error reporting node is as follows :
It is probably not running
3、 Log check
After carefully checking the log , Find out zk No obvious error
4、 It is found that there is a configuration problem
stay zk Configuration of zoo.cfg in , There is a configuration :leaderServes=no( The default is yes)
Let's see leaderServes Significance of configuration :
leader Whether the service accepts client connections , Default yes.
Higher update throughput can be increased at the expense of read throughput , You can set no.
The node is larger than 3 It is recommended to close... After hours .
In this way, we can clearly know , Is due to leaderServes Configured for no, Lead to leader The node no longer accepts client connections , As a result, the command-line tool cannot connect to zk, appear It is probably not running Report errors .
5、 Modify configuration test
Modify the configuration :
leaderServes=yes
Restart zk, Then you can find ./zkServer.sh status Inquire about zk state ,leader The node returns to normal .
边栏推荐
- Non return to zero code NRZ
- Abnova酸性磷酸酶(小麦胚芽)说明书
- thinkPHP6解决跳转问题
- Abnova ACTN4纯化兔多克隆抗体说明书
- Win10 view my Ini path
- How to make social media the driving force of cross-border e-commerce? This independent station tool cannot be missed!
- [paper reading] semi supervised learning with ladder networks
- 在Pycharm中使用append()方法对列表添加元素时提示“This list creation could be rewritten as a list literal“的解决方法
- Distance measure - cosine distance
- Static two position relay xjls-84/440/dc220v
猜你喜欢

Win10 view my Ini path

laravel 8.4 路由问题,结尾处是编辑器左侧对照表,小白可看懂
Laravel中使用 Editor.md 上传图片如何处理?

2020:VL-BERT: Pre-training of generic visual-linguistic representation

Usage of apipost interface test ------ get

独立站聊天机器人有哪些类型?如何快速创建属于自己的免费聊天机器人?只需3秒钟就能搞定!

DPR-34V/V双位置继电器

磁阻 磁饱和

Flask基础:环境搭建+配置+URL与试图之间的映射+重定向+数据库连接

Static two position relay xjls-84/440/dc220v
随机推荐
Question bank and answers of 2022 hoisting machinery safety management examination
美团好文:从预编译的角度理解Swift与Objective-C及混编机制
Dsp7 environment
free( )的一个理解(《C Primer Plus》的一个错误)
Magnetoresistive saturation
Abnova ABCB10(人)重组蛋白说明书
磁阻 磁饱和
静态双位置继电器GLS-3004K/DC220V
在Pycharm中对字典的键值作更新时提示“This dictionary creation could be rewritten as a dictionary literal ”的解决方法
Laravel中使用 Editor.md 上传图片如何处理?
在PCB板边走高频高速信号线的注意事项–高频高速信号设计基本原则
ICer技能02makefile脚本自跑vcs仿真
积分商城的三种运营方向
The paddepaddle model is deployed in a service-oriented manner. After restarting the pipeline, an error is reported, and the TRT error is reported
CVE-2019-14287(sudo提权)
Abnova PSMA磁珠解决方案
Volatile and threads
Openwrt directory structure
电流继电器JDL-1002A
thinkphp6 模版替换