{"id":19874511,"url":"https://github.com/strongloop/strong-cluster-control","last_synced_at":"2025-05-05T03:42:31.622Z","repository":{"id":9339709,"uuid":"11187998","full_name":"strongloop/strong-cluster-control","owner":"strongloop","description":"cluster control module, allowing run-time control and monitoring of cluster","archived":false,"fork":false,"pushed_at":"2018-11-27T23:31:57.000Z","size":201,"stargazers_count":99,"open_issues_count":3,"forks_count":9,"subscribers_count":23,"default_branch":"master","last_synced_at":"2025-05-05T03:42:05.344Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/strongloop.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-04T22:56:02.000Z","updated_at":"2024-03-07T21:41:41.000Z","dependencies_parsed_at":"2022-08-20T10:40:59.112Z","dependency_job_id":null,"html_url":"https://github.com/strongloop/strong-cluster-control","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Fstrong-cluster-control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Fstrong-cluster-control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Fstrong-cluster-control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Fstrong-cluster-control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/strongloop","download_url":"https://codeload.github.com/strongloop/strong-cluster-control/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252436240,"owners_count":21747467,"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":"2024-11-12T16:23:45.075Z","updated_at":"2025-05-05T03:42:31.564Z","avatar_url":"https://github.com/strongloop.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# strong-cluster-control\n\nnode cluster API wrapper and extensions\n\nIt is an extension of the node cluster module, not a replacement.\n\n- runs `size` workers (optionally), and monitors them for unexpected death\n- soft shutdown as well as hard termination of workers\n- throttles worker restart rate if they are exiting abnormally\n\nIt can be added to an existing application using the node cluster module without\nmodifying how that application is currently starting up or using cluster, and\nstill make use of additional features.\n\nThis is a component of the StrongLoop process manager, see http://strong-pm.io.\n\n\n## Install\n\n    npm install --save strong-cluster-control\n\n\n## Example\n\nTo instantiate cluster-control:\n\n```javascript\nvar cluster = require('cluster');\nvar control = require('strong-cluster-control');\n\n// global setup here...\n\ncontrol.start({\n    size: control.CPUS\n}).on('error', function(er) {\n    console.error(er);\n});\n\nif(cluster.isWorker) {\n    // do work here...\n}\n```\n\n\n## API\n\nSee [api](./api.md).\n\n\n## License\n\nstrong-cluster-control uses a dual license model.\n\nYou may use this library under the terms of the [Artistic 2.0 license][],\nor under the terms of the [StrongLoop Subscription Agreement][].\n\n[Artistic 2.0 license]: http://opensource.org/licenses/Artistic-2.0\n[StrongLoop Subscription Agreement]: http://strongloop.com/license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrongloop%2Fstrong-cluster-control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrongloop%2Fstrong-cluster-control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrongloop%2Fstrong-cluster-control/lists"}