Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felixge/node-cluster-isolatable
Isolate workers so they only handle one request at a time. Useful for file uploads.
https://github.com/felixge/node-cluster-isolatable
Last synced: about 2 months ago
JSON representation
Isolate workers so they only handle one request at a time. Useful for file uploads.
- Host: GitHub
- URL: https://github.com/felixge/node-cluster-isolatable
- Owner: felixge
- Created: 2011-07-17T14:19:35.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-07-19T19:21:34.000Z (over 13 years ago)
- Last Synced: 2024-10-11T15:18:48.604Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 99.6 KB
- Stars: 8
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# cluster-isolatable
Plugin for [cluster][] that allows to isolate one connection per worker.
It's not perfect because node always accepts as many connections as possible
when the server's fd becomes readable, but with a high enough worker count,
the chances of two connections making it into one worker are relatively small.## Usage
``` javascript
var isolatable = require('cluster-isolatable');
cluster(server).use(isolatable());
```## License
MIT
[cluster]: http://learnboost.github.com/cluster/