当前位置:网站首页>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
- 独立站聊天机器人有哪些类型?如何快速创建属于自己的免费聊天机器人?只需3秒钟就能搞定!
- E45: ‘readonly‘ option is set (add ! to override)
- [paper reading] semi supervised learning with ladder networks
- 2 万字 + 20张图|细说 Redis 九种数据类型和应用场景
- Cocos learning diary 1 - node
- 五年连续亏损42亿,蘑菇如何渡劫?
- Abnova fluorescent dye 555-c3 maleimide scheme
- Project summary 1 (header file, switch, &, bit variables)
- gson TypeAdapter 适配器
猜你喜欢

Static two position relay gls-3004k/dc220v

McKinsey: in 2021, the investment in quantum computing market grew strongly and the talent gap expanded

Abnova酸性磷酸酶(小麦胚芽)说明书

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

ICer技能02makefile脚本自跑vcs仿真

PCB----理论与现实的桥梁

Precautions for running high-frequency and high-speed signal lines near PCB board - basic principles for high-frequency and high-speed signal design

Cocos learning diary 1 - node

Usage of API interface test ------ post

独立站聊天机器人有哪些类型?如何快速创建属于自己的免费聊天机器人?只需3秒钟就能搞定!
随机推荐
Current relay hdl-a/1-110vdc-1
Please use the NLTK Downloader to obtain the resource
ICer技能02makefile脚本自跑vcs仿真
Laravel中使用 Editor.md 上传图片如何处理?
ADR electronic transmission EDI solution of national adverse drug reaction monitoring center
Flask基础:环境搭建+配置+URL与试图之间的映射+重定向+数据库连接
An understanding of free() (an error in C Primer Plus)
altium designer 09丝印靠近焊盘显示绿色警告,如何阻止其报警?
Question bank and answers of 2022 hoisting machinery safety management examination
32 single chip microcomputer has more than one variable Used in C
CVE-2019-14287(sudo提权)
E45: ‘readonly‘ option is set (add ! to override)
Abnova ACTN4纯化兔多克隆抗体说明书
395. 冗余路径
The paddepaddle model is deployed in a service-oriented manner. After restarting the pipeline, an error is reported, and the TRT error is reported
开发一年不到,来面试居然敢开口要20K,面完连8K都不想给~
The solution to prompt "this list creation could be rewritten as a list literal" when adding elements to the list using the append() method in pychart
Abnova fluorescent dye 555-c3 maleimide scheme
一款MVC5+EasyUI企业快速开发框架源码 BS框架源码
在Pycharm中对字典的键值作更新时提示“This dictionary creation could be rewritten as a dictionary literal ”的解决方法