{"id":20572036,"url":"https://github.com/netease/pomelo-masterha-plugin","last_synced_at":"2025-04-14T17:07:45.898Z","repository":{"id":66764850,"uuid":"12131608","full_name":"NetEase/pomelo-masterha-plugin","owner":"NetEase","description":"master ha plugin for pomelo","archived":false,"fork":false,"pushed_at":"2013-11-14T07:07:14.000Z","size":132,"stargazers_count":6,"open_issues_count":1,"forks_count":11,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-14T17:07:41.975Z","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-15T09:56:31.000Z","updated_at":"2025-03-07T11:23:39.000Z","dependencies_parsed_at":"2023-02-20T11:00:55.705Z","dependency_job_id":null,"html_url":"https://github.com/NetEase/pomelo-masterha-plugin","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/NetEase%2Fpomelo-masterha-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NetEase%2Fpomelo-masterha-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NetEase%2Fpomelo-masterha-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NetEase%2Fpomelo-masterha-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NetEase","download_url":"https://codeload.github.com/NetEase/pomelo-masterha-plugin/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:07.423Z","updated_at":"2025-04-14T17:07:45.878Z","avatar_url":"https://github.com/NetEase.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"pomelo-masterha-plugin\n======================\n\nmaster ha plugin for pomelo, it can be used in pomelo(\u003e=0.6).\n\npomelo-masterha-plugin is a master ha plugin for pomelo, which uses zookeeper to make master as high availability cluster.\n\n##Installation\n\n```\nnpm install pomelo-masterha-plugin\n```\n\n##Usage\n\nMake sure you have installed zookeeper first, then you have built the path you pass to pomelo. The configure code in app.js is as follows:\n\n```\nvar masterhaPlugin = require('pomelo-masterha-plugin');\n\napp.configure('production|development', function() {\n  \n  app.use(masterhaPlugin, {\n    zookeeper: {\n      server: '127.0.0.1:2181',\n      path: '/pomelo/master'\n    }\n  });\n\n});\n\n```\n\nYou can start your application using pomelo start as before, then use [pomelo-daemon](https://github.com/fantasyni/pomelo-daemon) to start a slave master.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetease%2Fpomelo-masterha-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetease%2Fpomelo-masterha-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetease%2Fpomelo-masterha-plugin/lists"}