{"id":16681429,"url":"https://github.com/printercu/cluster_master","last_synced_at":"2026-04-21T18:35:00.496Z","repository":{"id":9548714,"uuid":"11455314","full_name":"printercu/cluster_master","owner":"printercu","description":"Simple and powerful cluster manager","archived":false,"fork":false,"pushed_at":"2013-09-03T15:54:12.000Z","size":108,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-11T15:10:02.387Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/printercu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-16T17:14:37.000Z","updated_at":"2014-05-28T02:55:53.000Z","dependencies_parsed_at":"2022-09-26T17:31:10.235Z","dependency_job_id":null,"html_url":"https://github.com/printercu/cluster_master","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/printercu%2Fcluster_master","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/printercu%2Fcluster_master/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/printercu%2Fcluster_master/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/printercu%2Fcluster_master/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/printercu","download_url":"https://codeload.github.com/printercu/cluster_master/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243384428,"owners_count":20282362,"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-12T14:04:10.500Z","updated_at":"2025-12-24T18:46:19.939Z","avatar_url":"https://github.com/printercu.png","language":"CoffeeScript","readme":"# ClusterMaster\n\nBasic cluster management in one line:\n\n```coffee\nreturn if require('cluster_master').runMaster()\n# worker's code here\n```\n\nBy default it'll spawn `os.cpus().length` workers and respawn every dead worker.\n\nOut of box you'll get safe zero downtime reload:\n\n- send `SIGHUP` to process\n- cluster will try to spawn new worker\n- if new worker is ok then cluster will gracefully close one running worker \u0026 'll reload all old workers\n- if new forker failed it won't destroy old workers\n\nFor more stuff see source.\n\n## Use forever\nOops! Seems like forever still does not have proper support for specifying kill signal.\n\nHowever you can specify pid file for ClusterMaster and send hups yourself:\n\n```\nreturn if require('cluster_master').runMaster(pidfile: 'pids/cluster.pid')\n```\n\nMay be later:\nOnce cluster is started with [forever](https://github.com/nodejitsu/forever)\n\n```sh\nforever start -c coffee server.coffee\n```\n\nit can be reloaded with\n\n```sh\nforever stop --killSignal SIGHUP -c coffee server.coffee\n```\n\n## License\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprintercu%2Fcluster_master","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprintercu%2Fcluster_master","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprintercu%2Fcluster_master/lists"}