newbie2013
V2EX  ›  问与答

squid3 用 deploy pool 对每个连接 ip 限速,怎么配置?

  •  
  •   newbie2013 · Aug 21, 2014 · 4702 views
    This topic created in 4467 days ago, the information mentioned may be changed or developed.
    delay_pools 1
    delay_class 1 3
    delay_parameters 1 1250000/1250000 -1/-1 200000/300000
    delay_access 1 allow all


    如上配置貌似不起作用,请教下,谢谢 :)
    2 replies  •  2014-08-24 14:23:07 +08:00
    hedaode
    hedaode
    Aug 21, 2014
    1
    你的配置是正确的哦,可能是对老的连接无效,你新建个tcp连接测试呢
    newbie2013
    newbie2013
    OP
    Aug 24, 2014
    2
    @hedaode 谢谢,这个设置的确没问题。我主要是在 cache_peer 中忘了把 no-delay 去掉,哈哈
    :)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1804 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 16:11 · PVG 00:11 · LAX 08:11 · JFK 11:11
    ♥ Do have faith in what you're doing.