zoukankan      html  css  js  c++  java
  • 004_zookeeper运维之maxClientCnxns overflow

    一、

    线上默认设置:maxClientCnxns=120   #可通过修改这个值来进行解决

    二、

    在10.103.110.51这个ip上执行以下命令,进行查看连接情况

    [root@10.103.101.94 ~]# netstat -napee | awk '{if ($5 == "10.103.101.93:2181") print $9;}'
    -
    -
    -
    -
    -
    3186006/gunicorn:
    -
    -
    -
    -
    -
    3186089/gunicorn:
    -
    -
    -
    3186002/gunicorn:
    [root@10.103.101.94 ~]# netstat -napee | awk '{if ($5 == "10.103.101.93:2181") print $9;}'|wc -c
    160
    [root@alta1-biz-zoom-1 ~]# echo "stat" | nc 10.103.101.93 2181
    Zookeeper version: 3.4.9-1757313, built on 08/23/2016 06:50 GMT
    Clients:
     /10.103.110.51:24051[1](queued=0,recved=94,sent=94)
     /10.103.110.51:24149[0](queued=0,recved=1,sent=0)
     /10.103.110.51:24054[1](queued=0,recved=94,sent=94)
     /10.103.110.51:24053[1](queued=0,recved=94,sent=94)
    [root@alta1-biz-zoom-1 ~]# echo "cons" | nc 10.103.101.93 2181
     /10.103.102.214:47600[1](queued=0,recved=273,sent=273,sid=0x4262cde3063c0008,lop=GETD,est=1523872662825,to=10000,lcxid=0x10f,lzxid=0x2e0156864d,lresp=1523872663000,llat=0,minlat=0,avglat=0,maxlat=2)
     /127.0.0.1:21533[1](queued=0,recved=2,sent=2,sid=0x4262cde3063c0003,lop=GETC,est=1523872654572,to=30000,lcxid=0x1,lzxid=0x2e015685ea,lresp=1523872658103,llat=50,minlat=0,avglat=48,maxlat=50)
     /10.103.110.51:48686[0](queued=0,recved=1,sent=0)
     /127.0.0.1:21166[1](queued=0,recved=0,sent=0)
    

    参考:https://community.hortonworks.com/articles/51191/understanding-apache-zookeeper-connection-rate-lim.html

  • 相关阅读:
    Delphi DataSnap入门操作,动起来
    Delphi 记录Record和字符串String相互赋值
    转载:JAVA每天学习
    转载:IntelliJ IDEA 的使用方法总结
    合并多个txt
    如何用vosviewer进行时间线分析——结合pajek
    链路预测(一)
    【js】百分比保留两位小数
    【基础】float保留两位小数
    【js】鼠标悬停显示信息
  • 原文地址:https://www.cnblogs.com/itcomputer/p/8857664.html
Copyright © 2011-2022 走看看