{"id":27352419,"url":"https://github.com/fiws/clu","last_synced_at":"2025-10-16T06:25:54.524Z","repository":{"id":11010659,"uuid":"13336766","full_name":"fiws/clu","owner":"fiws","description":"A nodejs cluster manager.","archived":false,"fork":false,"pushed_at":"2017-04-29T20:13:08.000Z","size":522,"stargazers_count":9,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T20:55:13.203Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fiws.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-04T23:15:07.000Z","updated_at":"2018-05-01T04:54:14.000Z","dependencies_parsed_at":"2022-08-30T04:01:44.286Z","dependency_job_id":null,"html_url":"https://github.com/fiws/clu","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiws%2Fclu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiws%2Fclu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiws%2Fclu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiws%2Fclu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fiws","download_url":"https://codeload.github.com/fiws/clu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248631700,"owners_count":21136560,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-12T20:55:17.060Z","updated_at":"2025-10-16T06:25:49.506Z","avatar_url":"https://github.com/fiws.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"clu\n========\n\n**UNMAINTAINED** – But turns out this module still works with node 6\n\nA cluster manager with a built in CLI and a simple API for plugins.\nclu will spawn the requested number of workers, which will share the same port. This way the load gets distributed across all workers and multiple cores can be used effectively. It uses the [node cluster API](http://nodejs.org/api/cluster.html) to do this.\n\nInspired by [cluster](https://github.com/LearnBoost/cluster).\n\n![](https://i.imgur.com/81MqBtB.png)\n\n\n\n**Features:**\n\n* built in CLI (optional)\n* zero downtime restarts\n* restarts workers one after another\n* add or remove workers on the fly\n* uses the node cluster API\n\n\n[![Build Status](https://travis-ci.org/fiws/clu.png?branch=master)](https://travis-ci.org/fiws/clu) [![Dependency Status](https://david-dm.org/fiws/clu.png)](https://david-dm.org/fiws/clu)\n\n\n\n## Getting Started\n1. `npm install --save clu`\n2. Create a server.js that starts your app.\n\n    ``` JavaScript\n    var clu = require('clu');\n\n    clu.createCluster({\n      exec: './app.js',\n      workers: 2,\n      silent: false,\n      silentWorkers: true,\n      cli: true\n    });\n    // short: clu.createCluster('./app.js');\n\n    clu.use(clu.repl());\n    ```\n\n3. **Start your cluster with `node server start`**\n\n**Use `node server --help` for a list of all commands.**\n\n\nYou can also start the server with `node server`. This will start the server in the foreground.\n\n\n## Documentation\n\n* [Command Line](https://github.com/fiws/clu/wiki/Commands)\n* [API](https://github.com/fiws/clu/wiki/API)\n\n\n## Plugins\nPlugins can be used like this:\n``` JavaScript\nvar cluDnode = require('clu-dnode');\nclu.use(cluDnode());\nclu.use(clu.repl('myRepl.sock'));\n```\n\n**Built in:**\n\n* clu.repl() - a repl interface\n\n**Official:**\n\n* [clu-dnode](https://github.com/fiws/clu-dnode) - dnode interface for clu\n\n**3rd Party:**\ncontact me if you create any :)\n\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiws%2Fclu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffiws%2Fclu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiws%2Fclu/lists"}