{"id":20572044,"url":"https://github.com/netease/pomelo-daemon","last_synced_at":"2025-04-14T17:07:59.274Z","repository":{"id":10175408,"uuid":"12260589","full_name":"NetEase/pomelo-daemon","owner":"NetEase","description":"provide daemon process service for pomelo to deploy in distributed environments","archived":false,"fork":false,"pushed_at":"2014-04-22T02:35:08.000Z","size":184,"stargazers_count":8,"open_issues_count":1,"forks_count":5,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-14T17:07:53.138Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NetEase.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-08-21T03:48:23.000Z","updated_at":"2025-03-07T11:23:30.000Z","dependencies_parsed_at":"2022-08-31T01:50:51.408Z","dependency_job_id":null,"html_url":"https://github.com/NetEase/pomelo-daemon","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/NetEase%2Fpomelo-daemon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NetEase%2Fpomelo-daemon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NetEase%2Fpomelo-daemon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NetEase%2Fpomelo-daemon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NetEase","download_url":"https://codeload.github.com/NetEase/pomelo-daemon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248923765,"owners_count":21183953,"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-16T05:18:09.413Z","updated_at":"2025-04-14T17:07:59.247Z","avatar_url":"https://github.com/NetEase.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"pomelo-daemon\n========\n\npomelo-daemon is a daemon service for [pomelo](https://github.com/NetEase/pomelo) to deploy and run\nin distributed environment better.  \n\n##Installation\n```\nnpm install -g pomelo-daemon\n```\n##Usage\n###start pomelo clusters  \n\n- deploy codes in servers \n- config servers.json to the right host instead of '127.0.0.1' etc  \n- put daemon.json to the config dir  \ndaemon.json example\n```\n{\n\t\t\"id\": \"dh37fgj492je\",\n\t\t\"key\": \"agarxhqb98rpajloaxn34ga8xrunpagkjwlaw3ruxnpaagl29w4rxn\",\n\t\t\"algorithm\": \"sha256\",\n\t\t\"user\": \"pomelo\"\n}\n```\nnote: pomelo-daemon use [hawk](https://github.com/hueniverse/hawk/) to provide safety between servers  \nyou can modify daemon.json to your own  \n\n- cd to /game-server path  \n- in master server, run  \n```\npomelo-daemon\n```\n- in other server, run\n```\npomelo-daemon --mode=server\n```\nnote: you can deploy daemon with nohup  \n```\nnohup pomelo-daemon --mode=server\n```\n\n- in master server, pomelo-daemon client, run\n```\nstart all\n```\n\n- pomelo clusters are started \n\n###daemon rpc logger collector\npomelo-daemon provides pomelo rpc-logs collector to sync to mongodb and can be analysed through [pomelo-admin-web](https://github.com/NetEase/pomelo-admin-web)  \n- put mongo.json into config dir  \nmongo.json example\n```\n{\n\t\t\"host\": \"localhost\",\n\t\t\"port\": 27017,\n\t\t\"username\": \"pomelo\",\n\t\t\"password\": \"pomelo\",\n\t\t\"database\": \"test\",\n\t\t\"collection\": \"cpomelo\"\n}\n```\n\n- enable pomelo-daemon rpc logger collector\nuse --pattern param to set rpc-log files start patterns  \n```\npomelo-daemon --mode=server --log --pattern=rpc-log\n```\n\nnote: rpc-logs collector is just for debug, in production env it is not suggested to enable rpc-logs  \n\n##More Usage\nin pomelo-daemon client, type help for more help information, and enjoy it  \n![pomelo-daemon](http://ww2.sinaimg.cn/large/b7bc844fgw1e7u4kzcr2jj20kx0c340d.jpg)\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2012-2013 NetEase, Inc. and other contributors\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetease%2Fpomelo-daemon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetease%2Fpomelo-daemon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetease%2Fpomelo-daemon/lists"}