Tag: macos high sierra

与Socket.io和Docker无法获得超过980个连接

我无法扩展我的简单的Socket.IO应用程序过去使用Docker的980个并发连接。 但是,如果我在macOS Sierra 10.12.6本地运行它,我可以获得超过3000个连接。 我已经包含了我正在testing的一个简单的SocketIO应用程序的回购: https : //github.com/gsccheng/simple-socketIO-app 我的Docker-for-Macconfiguration为4个CPU和5GB内存。 版本是 Version 17.09.0-ce-mac35 (19611) Channel: stable a98b7c1b7c 我正在使用炮兵版本1.6.0-9加载testing $ artillery run load-test.yaml 我正在显示一些设置的冗余configuration(以显示它们已被考虑)。 这是我的重现步骤。 $ docker build . -t socket-test $ docker run -p 8000:8000 -c 1024 -m 4096M –privileged –ulimit nofile=9000:9000 -it test-socket:latest /bin/sh #> DEBUG=* npm start 高达约980个连接,我会得到像这样的日志: Connected to Socket! socket.io:client writing packet […]