V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
NGINX
NGINX Trac
3rd Party Modules
Security Advisories
CHANGES
OpenResty
ngx_lua
Tengine
在线学习资源
NGINX 开发从入门到精通
NGINX Modules
ngx_echo
yuyuyu
V2EX  ›  NGINX

limit_rate 问题

  •  
  •   yuyuyu · Nov 4, 2020 · 2109 views
    This topic created in 2000 days ago, the information mentioned may be changed or developed.

    nginx 反代到后端的服务器,配置了 proxy_buffers 8 512k; 不加 limit_rate 的时候能跑满 100Mbit/s,加上 limit_rate 5M 的限制后,按理来说应该能跑到 40Mbit/s,但是测试却只能跑 15Mbit/s 左右,如果改成 proxy_buffers 8 32k;则可以跑到 40Mbit/s, 这是什么问题?

    1 replies    2020-11-04 10:49:38 +08:00
    yuyuyu
        1
    yuyuyu  
    OP
       Nov 4, 2020
    如果我再对后端服务器做出站 40Mbit/s 的限制的话,NGINX 出站就只能跑 200KB/s 了……看了下 NGINX 的 ifop,入站 40Mbit/s,出站 2Mbit/s
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   949 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 443ms · UTC 21:45 · PVG 05:45 · LAX 14:45 · JFK 17:45
    ♥ Do have faith in what you're doing.