2017-07-18 17:31:12,015 - INFO [WorkerReceiver Thread:FastLeaderElection@496] - Notification: 1 (n.leader), 77309411648 (n.zxid), 1 (n.round), LOOKING (n.state), 1 (n.sid), LOOKING (my state)
2017-07-18 17:31:12,016 - INFO [WorkerReceiver Thread:FastLeaderElection@496] - Notification: 3 (n.leader), 73014444480 (n.zxid), 831 (n.round), LEADING (n.state), 3 (n.sid), LOOKING (my state)
2017-07-18 17:31:12,017 - INFO [WorkerReceiver Thread:FastLeaderElection@496] - Notification: 3 (n.leader), 77309411648 (n.zxid), 832 (n.round), FOLLOWING (n.state), 2 (n.sid), LOOKING (my state)
2017-07-18 17:31:15,219 - INFO [QuorumPeer:/0.0.0.0:2181:FastLeaderElection@697] - Notification time out: 6400
version-2
下有大量的log和snapshot文件, 占用大量的磁盘空间autopurge.purgeInterval=1
, 当然也可以通过 autopurge.snapRetainCount
来设置需要保留的snapshot文件个数,默认是3;Too many connections from /x.x.x.x - max is x
maxClientCnxns
设置过小, 这个参数用来限制单个IP对zk集群的并发访问;Have smaller server identifier, so dropping the connection.
[root@m1 ~]# netstat -s |grep -i listen
53828 times the listen queue of a socket overflowed
53828 SYNs to LISTEN sockets ignored
原文:https://www.cnblogs.com/zhengchunyuan/p/10646554.html