This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global | |
log 127.0.0.1 local0 info | |
maxconn 5000 | |
ulimit-n 10000 | |
defaults | |
log global | |
mode http | |
frontend pub-srv 0.0.0.0:8080 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Intro: | |
About the `WebSocket-Node' part please refer https://github.com/Worlize/WebSocket-Node for details. | |
The above client part wants to roughly test the max concurrency connections of the websocket server, loop send UTF content to server and broadcast its updates to | |
other connected clients. | |
Issue: | |
Since i don't find any up-to-date websocket testing tool like "ab or siege", I am using the "&"(node ./wsclient_test.js &) to mock the concurrence processes, but after i | |
execute the first time test command ("sh ./test.sh"), i will find that there won't be able to setup the expected number of the node processes, | |
the catched error is "Connect Error: Error: connect ETIMEDOUT", meanwhile the client and server's CPU is not 100% consumed, and the memory still have many available, |