当前位置:网站首页>zk 有一个节点报 It is probably not running且日志无明显报错
zk 有一个节点报 It is probably not running且日志无明显报错
2022-06-23 03:50:00 【ximi_xuexi】
在一次问题排查中,发现应用有部分关于zk的日志报错。且在查看zk状态时,发现有一个节点报错It is probably not running。
1、使用./zkServer.sh status查看所有zk节点的状态。
./zkServer.sh status 这个指令的正常返回应该是leader或者是follower。
2、发现除一个报错节点外,其余节点均返回状态均为follower。
报错节点报错信息如下:
It is probably not running
3、日志排查
在仔细排查过日志后,发现zk无明显报错
4、发现是配置问题
在zk的配置zoo.cfg中,有一个配置:leaderServes=no(默认为yes)
我们先看看leaderServes配置的意义:
leader服务是否接受客户端连接,默认yes。
可以牺牲读取吞吐量为代价增加更高的更新吞吐量,可以设置no。
节点大于3个时建议关闭。
这样就可以明确知道,是由于leaderServes配置为了no,导致leader节点不再接受客户端连接,导致命令行工具无法连接到zk,出现It is probably not running报错。
5、修改配置测试
修改配置:
leaderServes=yes
重新启动zk,之后可以发现./zkServer.sh status查询zk状态,leader节点的返回恢复正常了。
边栏推荐
- Online JSON to CSharp (c) class tool
- PTA:7-85 数据的间距问题(重载+函数模板)
- Svg+js smart home monitoring grid layout
- After the exception is thrown, the @transactional does not take effect
- Ideal car × Oceanbase: when new forces of car building meet new forces of database
- The spring recruitment in 2022 begins, and a collection of interview questions will help you
- C语言刷题随记 —— 自由落体的球
- Imitation 360 desktop suspended ball plug-in
- 8位全加器原理
- OpenJudge NOI 1.13 50:数根
猜你喜欢
![Fundamentals of 3D mathematics [16] formulas for uniformly accelerated linear motion](/img/51/5b05694bbd0f4fd01dd26cf55b22c7.png)
Fundamentals of 3D mathematics [16] formulas for uniformly accelerated linear motion

Monitoring artifact ZABBIX, from deployment to application, goes deep layer by layer

#17生成器的函数声明与调用

12 excellent practices of wireless network security

Svg+js smart home monitoring grid layout

C语言刷题随记 —— 自由落体的球

Halcon glue line detection - template matching, pose transformation, glue width, glue continuity detection

How does flutter achieve different zoom animation effects

【二叉树进阶】AVLTree - 平衡二叉搜索树

If you want to understand PostgreSQL, you must first brush the architecture
随机推荐
The spring recruitment in 2022 begins, and a collection of interview questions will help you
Does the network disk also roll inside?
PTA:6-73 函数调用
摆烂LuoGu刷题记
Prince language under insect date category
Flutter series: wrap in flutter
Monitoring artifact ZABBIX, from deployment to application, goes deep layer by layer
PTA:7-64 该日是该年的第几天
PTA:7-61 师生信息管理
Halcon glue line detection - template matching, pose transformation, glue width, glue continuity detection
Cocos学习日记2——脚本和属性
Pta:7-64 what day of the year is this day
Qt 及QT VS Tools插件官方下载及安装
Sequence table lookup
什么是元数据
离线数仓建模中常见的概念-术语
C语言刷题随记 —— 自由落体的球
距离度量 —— 余弦距离(Cosine Distance)
Pytorch---使用Pytorch的预训练模型实现四种天气分类问题
photoshop PS 查看像素坐标、像素颜色、像素HSB颜色