Skip to content

Instantly share code, notes, and snippets.

@xinz
xinz / haproxy.conf
Created July 9, 2012 10:39
a simple HAProxy configure for the websocket
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
@xinz
xinz / readme.txt
Created June 11, 2012 11:51
the websocket benchmark client via the WebSocket-Node
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,