{"_id":"various-cluster","_rev":"35-8fa732100ed7c6448346ed6268d0b430","name":"various-cluster","description":"easily create a mulit-cluster environment with different worker-types","dist-tags":{"latest":"0.1.10"},"versions":{"0.1.0":{"name":"various-cluster","description":"easily create a mulit-cluster environment with different worker-types","version":"0.1.0","author":{"name":"Valiton GmbH","url":"http://www.valiton.com"},"contributors":[{"name":"Bastian Behrens","email":"bastian.behrens@valiton.com"}],"maintainers":[{"name":"hereandnow","email":"hereandnow78@googlemail.com"}],"repository":{"type":"git","url":"git://github.com/valiton/node-various-cluster.git"},"bugs":{"url":"https://github.com/valiton/node-various-cluster/issues"},"main":"lib/various-cluster","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt default"},"dependencies":{"lodash":"1.2.0","pretty-seconds":"0.1.0"},"devDependencies":{"grunt":"~0.4.1","grunt-contrib-coffee":"~0.4.0","grunt-contrib-clean":"~0.4.0","grunt-coffeelint":"~0.0.6","grunt-contrib-connect":"~0.3.0","grunt-jsdoc":"~0.3.1","grunt-jasmine-node":"~0.1.0","jasmine-matchers":"~0.2.1"},"keywords":["nodevariouscluster"],"_id":"various-cluster@0.1.0","dist":{"shasum":"ea206a09b29f116ee5c677567d2edfa025e41051","tarball":"https://registry.npmjs.org/various-cluster/-/various-cluster-0.1.0.tgz","integrity":"sha512-ZynYxHrfq492YT38ChUlH96yziVm5lBMqBAbHDf3/o2r7dKvm8SCcI40ELMgHV9zgFa0dUzWBj8oL6EQPWdIcg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmNojD9/hZ5AghIfNsMKLMyk0md+GJceAVkqprEBLArgIhAK8cevg4/LZvASKUoGcYQuZaYBz261Y5lE5pN/mVQ3kV"}]},"directories":{}},"0.1.1":{"name":"various-cluster","description":"easily create a mulit-cluster environment with different worker-types","version":"0.1.1","author":{"name":"Valiton GmbH","url":"http://www.valiton.com"},"contributors":[{"name":"Bastian Behrens","email":"bastian.behrens@valiton.com"}],"maintainers":[{"name":"hereandnow","email":"hereandnow78@googlemail.com"}],"repository":{"type":"git","url":"git://github.com/valiton/node-various-cluster.git"},"bugs":{"url":"https://github.com/valiton/node-various-cluster/issues"},"main":"lib/various-cluster","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt default"},"dependencies":{"lodash":"1.2.0","pretty-seconds":"0.1.0"},"devDependencies":{"grunt":"~0.4.1","grunt-contrib-coffee":"~0.4.0","grunt-contrib-clean":"~0.4.0","grunt-coffeelint":"~0.0.6","grunt-contrib-connect":"~0.3.0","grunt-jsdoc":"~0.3.1","grunt-jasmine-node":"~0.1.0","jasmine-matchers":"~0.2.1"},"keywords":["cluster","worker","multiple","types","different"],"_id":"various-cluster@0.1.1","dist":{"shasum":"ae44642136e62c535ba99970e20fbaed6abd70e8","tarball":"https://registry.npmjs.org/various-cluster/-/various-cluster-0.1.1.tgz","integrity":"sha512-iP0rDu6hst5OPzdo6SNL6X73yYvRebbOEOtC+l/UOzZ19t7T36Mk6YAVXWAxLWzTa0Ezm+bAQfCunm0zDcrNRA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZOMytlnEgLp8L/K0XhQ9IQRxUx6+cYUSF3milQkRc3gIhAJD46pPF5UaUJYa3bULdy5fdXbmJ5QgPDzaWEUZhrfRs"}]},"directories":{}},"0.1.2":{"name":"various-cluster","description":"easily create a mulit-cluster environment with different worker-types","version":"0.1.2","author":{"name":"Valiton GmbH","url":"http://www.valiton.com"},"contributors":[{"name":"Bastian Behrens","email":"bastian.behrens@valiton.com"}],"maintainers":[{"name":"hereandnow","email":"hereandnow78@googlemail.com"}],"repository":{"type":"git","url":"git://github.com/valiton/node-various-cluster.git"},"bugs":{"url":"https://github.com/valiton/node-various-cluster/issues"},"main":"lib/various-cluster","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt default"},"dependencies":{"lodash":"1.2.0","pretty-seconds":"0.1.0"},"devDependencies":{"grunt":"~0.4.1","grunt-contrib-coffee":"~0.4.0","grunt-contrib-clean":"~0.4.0","grunt-coffeelint":"~0.0.6","grunt-contrib-connect":"~0.3.0","grunt-jsdoc":"~0.3.1","grunt-jasmine-node":"~0.1.0","jasmine-matchers":"~0.2.1"},"keywords":["cluster","worker","multiple","types","different"],"_id":"various-cluster@0.1.2","dist":{"shasum":"295513b07f8d86502225193417d9148f975c1b19","tarball":"https://registry.npmjs.org/various-cluster/-/various-cluster-0.1.2.tgz","integrity":"sha512-ErsMThPxfhlAKa19XTFR02+Fx2r739xVTpqGw8eVI7su3xHEp0dnsT7NYSI77kDQoZOh+AtCsLeI7PqHJuURDA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKtsBpPEhC7h1+HzbU4XPqRXnIo2aj84Y0KT0twrBJ8wIhAJHFCk8UZwdK2B4I6P5Gbyy+lAzLNX+uDFf8VPcPoYSY"}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"hereandnow","email":"hereandnow78@googlemail.com"},"directories":{}},"0.1.3":{"name":"various-cluster","description":"easily create a mulit-cluster environment with different worker-types","version":"0.1.3","author":{"name":"Valiton GmbH","url":"http://www.valiton.com"},"contributors":[{"name":"Bastian Behrens","email":"bastian.behrens@valiton.com"}],"maintainers":[{"name":"hereandnow","email":"hereandnow78@googlemail.com"}],"repository":{"type":"git","url":"git://github.com/valiton/node-various-cluster.git"},"bugs":{"url":"https://github.com/valiton/node-various-cluster/issues"},"main":"lib/various-cluster","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt default"},"dependencies":{"lodash":"1.2.0","pretty-seconds":"0.1.0"},"devDependencies":{"grunt":"~0.4.1","grunt-contrib-coffee":"~0.4.0","grunt-contrib-clean":"~0.4.0","grunt-coffeelint":"~0.0.6","grunt-contrib-connect":"~0.3.0","grunt-jsdoc":"~0.3.1","grunt-jasmine-node":"~0.1.0","jasmine-matchers":"~0.2.1"},"keywords":["cluster","worker","multiple","types","different"],"_id":"various-cluster@0.1.3","dist":{"shasum":"982a2ea2d6580773215a174f6b8870331568a68e","tarball":"https://registry.npmjs.org/various-cluster/-/various-cluster-0.1.3.tgz","integrity":"sha512-rJj4ACJMIgpGBLVOXni0b0xNeP3zPYFOVBB3lEj279+HHuZdQlLErB05VwqsouCQOTHScThoX0BDe3JpGEKhwg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDuQKswgfEWzKjUhkatE3k6Dolj3dTMSq7f0ILW3lmXfgIhAO6Or8tcCbNMoCcP2s4NiOTjCw/y9h+nDCf5RHRrvXnU"}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"hereandnow","email":"hereandnow78@googlemail.com"},"directories":{}},"0.1.4":{"name":"various-cluster","description":"easily create a mulit-cluster environment with different worker-types","version":"0.1.4","author":{"name":"Valiton GmbH","url":"http://www.valiton.com"},"contributors":[{"name":"Bastian Behrens","email":"bastian.behrens@valiton.com"}],"maintainers":[{"name":"hereandnow","email":"hereandnow78@googlemail.com"}],"repository":{"type":"git","url":"git://github.com/valiton/node-various-cluster.git"},"bugs":{"url":"https://github.com/valiton/node-various-cluster/issues"},"main":"lib/various-cluster","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt default"},"dependencies":{"lodash":"1.2.0","pretty-seconds":"0.1.0"},"devDependencies":{"grunt":"~0.4.1","grunt-contrib-coffee":"~0.4.0","grunt-contrib-clean":"~0.4.0","grunt-coffeelint":"~0.0.6","grunt-contrib-connect":"~0.3.0","grunt-jsdoc":"~0.3.1","grunt-jasmine-node":"~0.1.0","jasmine-matchers":"~0.2.1"},"keywords":["cluster","worker","multiple","types","different"],"_id":"various-cluster@0.1.4","dist":{"shasum":"27ab5cc6f94d2b7fc3456cc5c1359f96b1a4765c","tarball":"https://registry.npmjs.org/various-cluster/-/various-cluster-0.1.4.tgz","integrity":"sha512-hXoSWFhNqcnoFmICOAtNGq6Olo3c6twF+hBafSsI/wPUHaUi958MoU0D287p8vfsP5hIL9AiqkqX6HD9ecvZxg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDx9n5eSjCMoJWS8WVtuxqahIvjuIeuljhIDcdU/Gfm6AiEAtZ9+F8MLXbPe8y8JvZmPtcRgRXKVK/eZb6sCR1B/8hs="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"hereandnow","email":"hereandnow78@googlemail.com"},"directories":{}},"0.1.5":{"name":"various-cluster","description":"easily create a mulit-cluster environment with different worker-types","version":"0.1.5","author":{"name":"Valiton GmbH","url":"http://www.valiton.com"},"contributors":[{"name":"Bastian Behrens","email":"bastian.behrens@valiton.com"}],"maintainers":[{"name":"hereandnow","email":"hereandnow78@googlemail.com"},{"name":"sebakotiv","email":"gleb@catforce.de"}],"repository":{"type":"git","url":"git://github.com/valiton/node-various-cluster.git"},"bugs":{"url":"https://github.com/valiton/node-various-cluster/issues"},"main":"lib/various-cluster","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt default"},"dependencies":{"lodash":"1.2.0","pretty-seconds":"0.1.0"},"devDependencies":{"grunt":"~0.4.1","grunt-contrib-coffee":"~0.4.0","grunt-contrib-clean":"~0.4.0","grunt-coffeelint":"~0.0.6","grunt-contrib-connect":"~0.3.0","grunt-jsdoc":"~0.3.1","grunt-jasmine-node":"~0.1.0","jasmine-matchers":"~0.2.1"},"keywords":["cluster","worker","multiple","types","different"],"_id":"various-cluster@0.1.5","dist":{"shasum":"cb5f97cbadd70d711581641b3c6cb49dccfe9dc9","tarball":"https://registry.npmjs.org/various-cluster/-/various-cluster-0.1.5.tgz","integrity":"sha512-KvLGtOw+jYuOFFf7munRiuyvryrqhAnzCsP/PftVzsmgTSAfeVNeUupubIhWzax4GUWj3sKOV0SSNZpwL+vALw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwVVZ6Wd8bVj5LuypaelatBe/0XrI4EOX7NKHwd8qAQAIgD7wkhWEbGuq+/6X0PxAfSCE6o1TP8RWcE0f5czFs7ug="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"sebakotiv","email":"gleb@catforce.de"}},"0.1.6":{"name":"various-cluster","description":"easily create a mulit-cluster environment with different worker-types","version":"0.1.6","author":{"name":"Valiton GmbH","url":"http://www.valiton.com"},"contributors":[{"name":"Bastian Behrens","email":"bastian.behrens@valiton.com"}],"maintainers":[{"name":"hereandnow","email":"hereandnow78@googlemail.com"},{"name":"sebakotiv","email":"gleb@catforce.de"}],"repository":{"type":"git","url":"git://github.com/valiton/node-various-cluster.git"},"bugs":{"url":"https://github.com/valiton/node-various-cluster/issues"},"main":"lib/various-cluster","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt default"},"dependencies":{"lodash":"1.2.0","pretty-seconds":"0.1.0"},"devDependencies":{"grunt":"~0.4.1","grunt-contrib-coffee":"~0.4.0","grunt-contrib-clean":"~0.4.0","grunt-coffeelint":"~0.0.6","grunt-contrib-connect":"~0.3.0","grunt-jsdoc":"~0.3.1","grunt-jasmine-node":"~0.1.0","jasmine-matchers":"~0.2.1"},"keywords":["cluster","worker","multiple","types","different"],"_id":"various-cluster@0.1.6","dist":{"shasum":"ac3ac5830abb6fc6bf194b8bfbbee7fd5fd94920","tarball":"https://registry.npmjs.org/various-cluster/-/various-cluster-0.1.6.tgz","integrity":"sha512-cAOTOiDhPSpgP9e+uvMI1uEZIluJzAHvWj9GwO3e04s+Yj3qMBs8C+JU2gK6O+PoB++/kuOdlGNwwKvx/Lmx3w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDatzZOhcRPXDVpEC714oujtT0SkOvFY7ftcWjHZK21UQIgPLA+1aqbZ+e2oPncwIDz6zuiHUfJ/lpLSYUXyRzVJ7w="}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"hereandnow","email":"hereandnow78@googlemail.com"}},"0.1.7":{"name":"various-cluster","description":"easily create a mulit-cluster environment with different worker-types","version":"0.1.7","author":{"name":"Valiton GmbH","url":"http://www.valiton.com"},"contributors":[{"name":"Bastian Behrens","email":"bastian.behrens@valiton.com"}],"maintainers":[{"name":"hereandnow","email":"hereandnow78@googlemail.com"},{"name":"sebakotiv","email":"gleb@catforce.de"}],"repository":{"type":"git","url":"git://github.com/valiton/node-various-cluster.git"},"bugs":{"url":"https://github.com/valiton/node-various-cluster/issues"},"main":"lib/various-cluster","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt default"},"dependencies":{"lodash":"1.2.0","pretty-seconds":"0.1.0"},"devDependencies":{"grunt":"~0.4.1","grunt-contrib-coffee":"~0.4.0","grunt-contrib-clean":"~0.4.0","grunt-coffeelint":"~0.0.6","grunt-contrib-connect":"~0.3.0","grunt-jsdoc":"~0.3.1","grunt-jasmine-node":"~0.1.0","jasmine-matchers":"~0.2.1"},"keywords":["cluster","worker","multiple","types","different"],"_id":"various-cluster@0.1.7","dist":{"shasum":"0e3108d45b6098405b57c270585522a9c1308ea5","tarball":"https://registry.npmjs.org/various-cluster/-/various-cluster-0.1.7.tgz","integrity":"sha512-9pDAO36bQ881icYDrWSVsHwA5ao3++yI9mgQ5kisHencDaJimlaGRNiCwxFfrVqU2smQbMl9O9IUBqVbj3vPUQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDvy0T2EclthXRwO5eTzETXhFGcDLHRPs1v4wfrmeOOgAIhAIJGtu8IWhqSTb0y1afxe6z+wjw5Fu5Sge9TMD36wRph"}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"hereandnow","email":"hereandnow78@googlemail.com"}},"0.1.8":{"name":"various-cluster","description":"easily create a mulit-cluster environment with different worker-types","version":"0.1.8","author":{"name":"Valiton GmbH","url":"http://www.valiton.com"},"contributors":[{"name":"Bastian Behrens","email":"bastian.behrens@valiton.com"}],"maintainers":[{"name":"hereandnow","email":"hereandnow78@googlemail.com"},{"name":"sebakotiv","email":"gleb@catforce.de"}],"repository":{"type":"git","url":"git://github.com/valiton/node-various-cluster.git"},"bugs":{"url":"https://github.com/valiton/node-various-cluster/issues"},"main":"lib/various-cluster","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt default"},"dependencies":{"lodash":"1.2.0","pretty-seconds":"0.1.0"},"devDependencies":{"grunt":"~0.4.1","grunt-contrib-coffee":"~0.4.0","grunt-contrib-clean":"~0.4.0","grunt-coffeelint":"~0.0.6","grunt-contrib-connect":"~0.3.0","grunt-jsdoc":"~0.3.1","grunt-jasmine-node":"~0.1.0","jasmine-matchers":"~0.2.1"},"keywords":["cluster","worker","multiple","types","different"],"_id":"various-cluster@0.1.8","dist":{"shasum":"d01d45832e2be051ada3a243f672afd51e9918ba","tarball":"https://registry.npmjs.org/various-cluster/-/various-cluster-0.1.8.tgz","integrity":"sha512-7mL+uosHHyU8unFk+WmA6qttYJcpEPwDptfytrsJULnX+BKqHkcKZEOYeSIEvZJ7TCTxaUNZE1wgEtTk+d8ikQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICSUSftyEe7SUiaQww8mWVzECmaXw1RAKfIi5hpgKVWkAiEAy6jBz9N2YixPgpLFg6Kz4kU1Oxd6pSjSpa8yFAQMFlc="}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"hereandnow","email":"hereandnow78@googlemail.com"}},"0.1.9":{"name":"various-cluster","description":"easily create a mulit-cluster environment with different worker-types","version":"0.1.9","author":{"name":"Valiton GmbH","url":"http://www.valiton.com"},"contributors":[{"name":"Bastian Behrens","email":"bastian.behrens@valiton.com"}],"maintainers":[{"name":"hereandnow","email":"hereandnow78@googlemail.com"},{"name":"sebakotiv","email":"gleb@catforce.de"},{"name":"mom","email":"m.omay@mgok.de"},{"name":"weiner","email":"benediktweiner@gmail.com"},{"name":"mcpomm","email":"prima34@gmx.net"}],"repository":{"type":"git","url":"git://github.com/valiton/node-various-cluster.git"},"bugs":{"url":"https://github.com/valiton/node-various-cluster/issues"},"main":"lib/various-cluster","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt default"},"dependencies":{"lodash":"1.2.0","pretty-seconds":"0.1.0"},"devDependencies":{"grunt":"~0.4.1","grunt-contrib-coffee":"~0.4.0","grunt-contrib-clean":"~0.4.0","grunt-coffeelint":"~0.0.6","grunt-contrib-connect":"~0.3.0","grunt-jsdoc":"~0.3.1","grunt-jasmine-node":"~0.1.0","jasmine-matchers":"~0.2.1"},"keywords":["cluster","worker","multiple","types","different"],"homepage":"https://github.com/valiton/node-various-cluster","_id":"various-cluster@0.1.9","dist":{"shasum":"4118428da1b752b7ffbcc3420546acaea26c52f7","tarball":"https://registry.npmjs.org/various-cluster/-/various-cluster-0.1.9.tgz","integrity":"sha512-fU8nP13RMSoH/05DGsjobnxXB302Lm8JS6bZSXHxkEY8B5hoACdNNHUkuR5B8BIGIffgqUNpEppolalaMcJR5A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGlVGHpGU+jBFxDnL1nJ1cpHI+e87wcpUd/KnYE+NO3wAiEAjJvKuTb8LvzqSAbPwwdUpZ8lO8v2POxJJ4V6gxqLFSA="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"hereandnow","email":"hereandnow78@googlemail.com"}},"0.1.10":{"name":"various-cluster","description":"easily create a mulit-cluster environment with different worker-types","version":"0.1.10","author":{"name":"Valiton GmbH","url":"http://www.valiton.com"},"contributors":[{"name":"Bastian Behrens","email":"bastian.behrens@valiton.com"}],"maintainers":[{"name":"hereandnow","email":"hereandnow78@googlemail.com"},{"name":"sebakotiv","email":"gleb@catforce.de"},{"name":"mom","email":"m.omay@mgok.de"},{"name":"weiner","email":"benediktweiner@gmail.com"},{"name":"mcpomm","email":"prima34@gmx.net"}],"repository":{"type":"git","url":"git://github.com/valiton/node-various-cluster.git"},"bugs":{"url":"https://github.com/valiton/node-various-cluster/issues"},"main":"lib/various-cluster","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt default"},"dependencies":{"lodash":"1.2.0","pretty-seconds":"0.1.0"},"devDependencies":{"grunt":"~0.4.1","grunt-contrib-coffee":"~0.4.0","grunt-contrib-clean":"~0.4.0","grunt-coffeelint":"~0.0.6","grunt-contrib-connect":"~0.3.0","grunt-jsdoc":"~0.3.1","grunt-jasmine-node":"~0.1.0","jasmine-matchers":"~0.2.1"},"keywords":["cluster","worker","multiple","types","different"],"homepage":"https://github.com/valiton/node-various-cluster","_id":"various-cluster@0.1.10","dist":{"shasum":"0ca6a166270b5e0aed329fcdf8ad6fb3356e7e61","tarball":"https://registry.npmjs.org/various-cluster/-/various-cluster-0.1.10.tgz","integrity":"sha512-4qr+GLjV/m/HP5o01ccnybF0toBTMhhS2rfGI1f6oKNjS5wZAPzsODxqRmqijt/riY8ho1ozYzgOYGLJ95P+yw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEWI8T2RBb/vxlQvGKG9JzU2ZPl59bQPGf9y2rquM2U4AiEA5jwp8qdjJR4MCj4DBo7IovGn29N9u+fZXHkZh36JoMw="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"hereandnow","email":"hereandnow78@googlemail.com"}}},"readme":"# various-cluster\n\neasily create a mulit-cluster environment with different worker-types.\n\nif you need some messaging inside your worker-types, take a look at [msghub](https://npmjs.org/package/msghub)\n\n## Why another Cluster-Module?\n\nThis is a thin wrapper around the node native [cluster module](http://nodejs.org/docs/latest/api/cluster.html). There are currently no cluster-module-wrappers out there, which will spawn different Worker-Types which are not necessarly some http-servers. also this module enables you to take full control of all shutdown-mechanisms.\n\n## Getting Started\n\n$ npm install various-cluster\n\nrequire it in your code, and use it:\n\n```javascript\nvar variouscluster = require('various-cluster');\n\nvariouscluster.init({\n  title: 'title of your master process',\n  count: 2, // fallback for workers with no count defined\n  shutdownTimout: 10000, // fallback for workers with no shutdownTimout defined\n  workers: [\n    {\n      title: 'some-worker',  // title of this worker process\n      exec: 'lib/some-worker.js', // location of your worker to be executed\n      count: 1, // number of process to be spawned\n      shutdownTimeout: 1000, // how long thisw workertype has time to shutdown\n      config: {} // add some worker-config right here\n    },\n    {\n      title: 'another-worker',\n      exec: 'lib/another-worker.js',\n      count: 1,\n      shutdownTimeout: 1000,\n      config: {}\n    }\n  ]\n});\n```\n\n## Documentation\n\napi-docs: (open doc/index.html in your browser)\n\n### Creation\n\ncreate your environment with including various-cluster in your code and call the init-method with your cluster-config (see more about config below!)\n\n```javascript\nvar yourConfig = {...};\nvar variouscluster = require('various-cluster');\nvariouscluster.init(yourConfig);\n```\n\n### Workerspecific Config and Initialization\n\nyou can also pass a workerspecific config to your workers, so you dont need to read the config manually in every process.\n\njust follow this pattern:\n\n```javascript\n// in your master pass the workerconfig\nvariouscluster.init({\n  ...\n  workers: [\n    {\n      config: {\n        \"someKey\": \"someValue\"\n      }\n    }\n  ]\n});\n```\n\n```javascript\n// and in your worker create a constructor function receiving this config\nfunction SomeWorker(config) {\n  this.config = config;\n}\n```\n\n```javascript\n// and add an init-method to your Worker. This will instantly be called from various-cluster if present!\nSomeWorker.prototype.init = function () {\n  console.log(this.config.someKey); // will print 'someValue'\n}\n```\n\n### Logging\n\nvarious cluster will try to use a logger-instance which is appended to the current process. this logger instance needs a 'crit' and a 'notice' method. if no process.logger is present, it just uses node.js native [util.log()](http://nodejs.org/api/util.html#util_util_log_string)\n\n```javascript\n// in your master create a logger:\nprocess.logger = {\n  crit: function (msg) {\n    console.error(msg);\n  },\n  notice: function (msg) {\n    console.log(msg);\n  }\n};\n```\n\n### Shutdown\n\nin every worker-process you can append a shutdown-Listener if you want to cleanup something in your application before shutting down:\n\n```javascript\nprocess.on('shutdown', function (done) {\n  // clean up here and call the done-callback when finished\n  done();\n});\n```\nif the cleanup takes longer than in your config defined, the process will be forced to exit!\n\n### uncaughtExceptions\n\nper default if in the master an uncaught-exception happens, the whole application will gracefully shutdown.\n\nif a worker has an uncaughtException, it depends on your configuration. per default this worker is gracefully shutdown and is reforked. if you\nconfigure a workertype with the config-parameter 'shutdownAll: true', the whole application will gracefully shutdown.\n\n### CONFIG which you provide in the init-method\n\n#### config.title\n\nprocess.title of the master process, DEFAULT: 'various-cluster-master'\n\n#### config.count\n\nworkercount which should be used (if no count is given for a single worker this one is used), DEFAULT: os.cpus().length\n\n#### config.shutdownTimeout\n\nshutdownTimeout in ms (if no shutdownTimeout is given for a single worker this one is used), DEFAULT: 10000\n...\n\n#### config.workers\n\nan array with all workers (see more below)\n\n\n#### config.workers[x].title\n\nprocess.title of the worker process, DEFAULT: 'various-cluster-worker'\n\n#### config.workers[x].exec\n\nthe local module-file which should be executed, DEFAULT: undefined\n\n#### config.workers[x].count\n\nworkercount which should be used, DEFAULT: config.count\n\n#### config.workers[x].shutdownTimeout\n\nshutdownTimeout in ms, DEFAULT: config.shutdownTimeout\n\n#### config.workers[x].shutdownAll\n\nshutdown all workertypes and workers if this worker has an uncaught exception, DEFAULT: false\n\n#### config.workers[x].config\n\nyour workerspecific config DEFAULT: undefined\n\n## Examples\n\nsee the examples-directory!\n\n## Contributing\n\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Lint your code using [Grunt](http://gruntjs.com/)\n\n## Release History\n\n- 0.1.10 final working shutdown mechanism which respects all possibilties\n\n- 0.1.9 fix second restart of workers who will just restart\n\n- 0.1.8 log err.stack on exceptions\n\n- 0.1.7 fix shutdown in workertype\n\n- 0.1.6 rewrite shutdown mechanism\n\n- 0.1.5 allow worker count to be 0\n\n- 0.1.4 force exit when no shutdown-handler\n\n- 0.1.4 force exit when no shutdown-handler\n\n- 0.1.3 fix clean shutdown\n\n- 0.1.2 better exception handling + cleaner shutdown\n\n- 0.1.1 Added some keywords\n\n- 0.1.0 Initial Release\n\n## Contributors\n\n- Bastian \"hereandnow\" Behrens\n- Gleb Kotov\n\n## License\nCopyright (c) 2013 Valiton GmbH\nLicensed under the MIT license.\n\n","maintainers":[{"name":"hereandnow","email":"hereandnow78@googlemail.com"},{"name":"sebakotiv","email":"gleb@catforce.de"},{"name":"mom","email":"m.omay@mgok.de"},{"name":"weiner","email":"benediktweiner@gmail.com"},{"name":"mcpomm","email":"prima34@gmx.net"}],"time":{"modified":"2022-06-28T09:08:34.407Z","created":"2013-05-06T13:21:31.429Z","0.1.0":"2013-05-06T13:21:33.533Z","0.1.1":"2013-05-06T13:29:44.248Z","0.1.2":"2013-05-17T11:04:54.795Z","0.1.3":"2013-05-21T07:07:06.044Z","0.1.4":"2013-05-21T09:12:27.129Z","0.1.5":"2013-06-26T14:43:13.483Z","0.1.6":"2013-07-05T13:48:59.129Z","0.1.7":"2013-07-09T09:08:24.567Z","0.1.8":"2013-07-26T11:20:48.135Z","0.1.9":"2013-12-18T09:03:05.644Z","0.1.10":"2014-01-15T08:44:24.429Z"},"author":{"name":"Valiton GmbH","url":"http://www.valiton.com"},"repository":{"type":"git","url":"git://github.com/valiton/node-various-cluster.git"},"readmeFilename":"README.md","users":{"edin-m":true}}