websocket-benchmarking:NodeJS Websocket 基准测试

时间:2021-07-10 17:10:48
【文件属性】:
文件名称:websocket-benchmarking:NodeJS Websocket 基准测试
文件大小:240KB
文件格式:ZIP
更新时间:2021-07-10 17:10:48
JavaScript websocket-benchmarking NodeJS Websocket Benchmarking Socket.IO(On MAC OS X) 配置 App, Nginx cd socket.io/chat1 npm install cd socket.io/chat2 npm install nginx.conf 修改: 由于测试时所有 client 都在本机, 而当前稳定版 nginx(1.6.2) 负载均衡算法不包含generic hash, 按 ip_hash 分配会导致所有请求都发到同一个后端节点, 所以需要安装upsteam-hash-module, 按 hash($remote_addr.$remote_port) 负载均衡. upstream 使用 unix socket地址 (unix:/tmp/chat1.socket) 能减少 local ip
【文件预览】:
websocket-benchmarking-master
----nginx.conf(3KB)
----socketcluster()
--------chat()
--------socketclusterworker.js(1KB)
----env.sh(165B)
----LICENSE(1KB)
----.gitignore(598B)
----README.md(3KB)
----socket.io()
--------chat1()
--------thor()
--------chat2()
----generator.js(1KB)

网友评论