V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
Actrace
V2EX  ›  Linux

NGINX:Socket Sharding 2-3 倍的性能提升

  •  
  •   Actrace · May 28, 2015 · 3124 views
    This topic created in 3990 days ago, the information mentioned may be changed or developed.
    Socket Sharding in NGINX Release 1.9.1
    http://nginx.com/blog/socket-sharding-nginx-release-1-9-1/
    7 replies    2015-05-28 11:12:37 +08:00
    300
        1
    300  
       May 28, 2015 via Android
    已经更新,虽然不会玩
    Actrace
        2
    Actrace  
    OP
       May 28, 2015
    @winterbells 在http段加个reuseport参数就可以了,不过毕竟不是稳定版, 还不敢上.
    bilok
        3
    bilok  
       May 28, 2015 via iPhone
    没记错的话好像 V2EX 的 NGINX 一直是跟着streamline的 稳定性应该不会太差吧
    Daemon
        4
    Daemon  
       May 28, 2015
    可以试一试
    DjvuLee
        5
    DjvuLee  
       May 28, 2015
    这个新功能需要kernel3.9。不过其实这种需求早就应该有了,不知道为什么kernel3.9才引入。
    ewex
        6
    ewex  
       May 28, 2015
    yuankui
        7
    yuankui  
       May 28, 2015
    allows multiple sockets to listen on the same IP address and port combination. The kernel then load balances incoming connections across the sockets, effectively sharding the socket.

    看描述说这几个worker完全是同构系统,不能成为sharding吧,只能叫做replica吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2567 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 12:31 · PVG 20:31 · LAX 05:31 · JFK 08:31
    ♥ Do have faith in what you're doing.