zoukankan      html  css  js  c++  java
  • ipvsadm的几个参数输出的说明

    ipvsadm的几个参数输出的说明:
    解释一下ipvsadm几个参数的输出的含义, 网上文章一大抄, 抄来抄去, 笼统的比较多, 但真要具体到某个输出的具体含义, 这样的文章还真是寥寥...
    在使用LVS的时候, 经常可能需要从LD查看一下当前LD到RS的各种状态,
    LVS_MASTER:/home/xyz # ipvsadm -l --stat
    IP Virtual Server version 1.2.1 (size=1048576)
    Prot LocalAddress:Port               Conns   InPkts  OutPkts  InBytes OutBytes
      -> RemoteAddress:Port
    TCP  220.123.50.23:6666            1759400  774847K        0   49562M        0
      -> 172.16.68.78:6666              319890  139645K        0    8926M        0
    ....省略一部分
    --stat选项是统计自该条转发规则生效以来的(感觉时长应该是某段时段内的???这个还要再找找确认一下)
    1. Conns    (connections scheduled)  已经转发过的连接数
    2. InPkts   (incoming packets)       入包个数
    3. OutPkts  (outgoing packets)       出包个数
    4. InBytes  (incoming bytes)         入流量(字节)  
    5. OutBytes (outgoing bytes)         出流量(字节)
    LVS_MASTER:/usr/local/lvs # ipvsadm -l --rate
    IP Virtual Server version 1.2.1 (size=1048576)
    Prot LocalAddress:Port                 CPS    InPPS   OutPPS    InBPS   OutBPS
      -> RemoteAddress:Port
    TCP  220.123.50.23:6666                 75    32971        0  2098541        0
      -> 172.16.68.78:6666                  15     6539        0   416074        0
      -> 172.16.56.165:6666                 15     6431        0   409708        0
    --rate选项是显示速率信息
    1. CPS      (current connection rate)   每秒连接数
    2. InPPS    (current in packet rate)    每秒的入包个数
    3. OutPPS   (current out packet rate)   每秒的出包个数
    4. InBPS    (current in byte rate)      每秒入流量(字节)
    5. OutBPS   (current out byte rate)      每秒入流量(字节)
    如果LD上没有其他的服务, 这些值跟网管软件上查到会一样
  • 相关阅读:
    springboot jpa 的使用
    《 mysiteforme 》 学习之wangEditor的使用
    《 mysiteforme 》 学习之layui table 的使用
    《 mysiteforme 》 学习之数据字典的使用
    Shiro + redis + 登录 + 记住我 + 验证码 + 登出(mysiteforme)
    spring boot 使用kindeditor上传传照片到nginx
    easypoi excel 文件导入导出
    猜年龄
    Kth number
    乌龟棋
  • 原文地址:https://www.cnblogs.com/feihongwuhen/p/7170925.html
Copyright © 2011-2022 走看看