首页 > 代码库 > zookeeper NIOServerCnxn: Too many connections from IP- max i

zookeeper NIOServerCnxn: Too many connections from IP- max i

默认zookeeper给每个客户端IP使用的连接数为10-28 09:39:44,856 – WARN [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:5858:NIOServerCnxn$Factory@253] – Too many connections from /172.*.*.* – 10

 

 

zoo.cfg参考参数设置如下:

 

dataDir = 数据存放路径

dataLogDir = 日志存放路径

clientPort = 客户端连接端口

clientPortAddress

tickTime= 整形 不能为0

maxClientCnxns= 整形 最大客户端连接数

minSessionTimeout= 整形

maxSessionTimeout= 整形

initLimit = 整形

syncLimit = 整形

electionAlg = 整形

peerType = observer | participant

group.gid = sid:sid (一个ID, 值是多个sid, 中间以:分割, 一个sid只能属于一个gid)

weight.sid=整形

zookeeper NIOServerCnxn: Too many connections from IP- max i