{"id":16181731,"url":"https://github.com/ericclemmons/start-cluster","last_synced_at":"2025-03-19T01:31:16.482Z","repository":{"id":57369570,"uuid":"48303348","full_name":"ericclemmons/start-cluster","owner":"ericclemmons","description":"Start a Node cluster by simply running `start-cluster`","archived":false,"fork":false,"pushed_at":"2015-12-22T16:15:03.000Z","size":9,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-10T19:03:22.185Z","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/ericclemmons.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":"2015-12-20T01:28:00.000Z","updated_at":"2017-02-13T16:31:55.000Z","dependencies_parsed_at":"2022-08-26T05:01:22.639Z","dependency_job_id":null,"html_url":"https://github.com/ericclemmons/start-cluster","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericclemmons%2Fstart-cluster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericclemmons%2Fstart-cluster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericclemmons%2Fstart-cluster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericclemmons%2Fstart-cluster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericclemmons","download_url":"https://codeload.github.com/ericclemmons/start-cluster/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243960361,"owners_count":20375102,"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-10-10T06:26:57.981Z","updated_at":"2025-03-19T01:31:16.231Z","avatar_url":"https://github.com/ericclemmons.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `start-cluster`\n\n\u003e Start a Node cluster by simply running  `start-cluster`.\n\n[![travis build](https://img.shields.io/travis/ericclemmons/start-cluster.svg?style=flat-square)](https://travis-ci.org/ericclemmons/start-cluster)\n[![codecov coverage](https://img.shields.io/codecov/c/github/ericclemmons/start-cluster.svg?style=flat-square)](https://codecov.io/github/ericclemmons/start-cluster)\n[![version](https://img.shields.io/npm/v/start-cluster.svg?style=flat-square)](http://npm.im/start-cluster)\n[![downloads](https://img.shields.io/npm/dm/start-cluster.svg?style=flat-square)](http://npm-stat.com/charts.html?package=start-cluster)\n[![MIT License](https://img.shields.io/npm/l/start-cluster.svg?style=flat-square)](http://opensource.org/licenses/MIT)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square)](http://commitizen.github.io/cz-cli/)\n\n- - -\n\nBy default, `npm start` runs your application as a single instance via `node server.js`.\n\nOn production, **it's best to run multiple instances** (i.e. an instance per CPU core) so that, when the application crashes or throws exceptions, other instances can field subsequent requests while the erroneous one restarts.\n\nOtherwise, **requests will fail until `server.listen()` is executed**. For sufficiently large applications with several dependencies, **this can potentially be seconds**.\n\n### Usage\n\n#### 1. Install\n\n```shell\n$ npm install start-cluster --save\n```\n\n#### 2. Add to `package.json`\n\n```json\n{\n  \"scripts\": {\n    \"start\": \"start-cluster\"\n  }\n}\n```\n\n#### 3. Customize\n\nIf your server script is located elsewhere:\n\n```json\n{\n  \"scripts\": {\n    \"start\": \"start-cluster src/server.min.js\"\n  }\n}\n```\n\n### License\n\n\u003e MIT License 2015 © Eric Clemmons\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericclemmons%2Fstart-cluster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericclemmons%2Fstart-cluster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericclemmons%2Fstart-cluster/lists"}