zoukankan      html  css  js  c++  java
  • Redis参数解析之--输出缓冲区

    Redis配置文件里有这样的配置

    # client-output-buffer-limit <class> <hard limit> <soft limit> <soft seconds>
    #
    # A client is immediately disconnected once the hard limit is reached, or if
    # the soft limit is reached and remains reached for the specified number of
    # seconds (continuously).
    # So for instance if the hard limit is 32 megabytes and the soft limit is
    # 16 megabytes / 10 seconds, the client will get disconnected immediately
    # if the size of the output buffers reach 32 megabytes, but will also get
    # disconnected if the client reaches 16 megabytes and continuously overcomes
    # the limit for 10 seconds.

    client-output-buffer-limit normal 0 0 0
    client-output-buffer-limit slave 256mb 64mb 60
    client-output-buffer-limit pubsub 32mb 8mb 60

    1) normal => normal clients; 
    2) slave clients and MONITOR clients; 
    3) pubsub => clients subcribed to at least one pubsub channel or pattern

    该缓冲区有两个指标,硬指标和软指标,硬指标是256MB,也就说在执行主从全量同步期间,也就是传RDB期间,主的复制输出缓冲区超过了256MB,就会导致从断链,然后从需要重新连接。

    软性指标是持续60s该缓冲区都超过64MB,也会导致主会主动将从断链,然后从重新连接重新执行全量复制

  • 相关阅读:
    第五节、矩阵分解之LU分解
    第四节、逆矩阵与转置矩阵
    第三节、矩阵乘法
    第二节、矩阵消元(高斯消元)
    重学线代——声明篇
    第一节、方程组的几何解释
    String类
    Mycat的安装及配置
    使用InfluxDB、cAdvisor、Grafana监控服务器性能
    Rancher的使用
  • 原文地址:https://www.cnblogs.com/juniorMa/p/14325299.html
Copyright © 2011-2022 走看看