I've tested this code with Node.js 4.2.1
This server just response with OK
and restart workers after 200-300 completed requests. With default cluster scheduler (which is SCHED_RR
) server eventually loses some requests and ab
stops with timeout error. When I uncomment line 5 and use SCHED_NONE
scheduler, then server works fine.
My Node.js version:
$ apt-cache policy nodejs
nodejs:
Installed: 4.2.1-2nodesource1~wily1
Candidate: 4.2.1-2nodesource1~wily1
Version table:
*** 4.2.1-2nodesource1~wily1 0
500 https://deb.nodesource.com/node_4.x/ wily/main amd64 Packages
100 /var/lib/dpkg/status
0.10.25~dfsg2-2ubuntu1 0
500 http://ru.archive.ubuntu.com/ubuntu/ wily/universe amd64 Packages