{"id":19703603,"url":"https://github.com/monibuca/clusterplugin","last_synced_at":"2025-04-29T14:30:57.000Z","repository":{"id":39208222,"uuid":"244074106","full_name":"Monibuca/clusterplugin","owner":"Monibuca","description":"cluster plugin for monibuca","archived":false,"fork":false,"pushed_at":"2023-01-01T17:06:35.000Z","size":4222,"stargazers_count":4,"open_issues_count":28,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T17:51:09.896Z","etag":null,"topics":["cluster"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/Monibuca.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":"2020-03-01T02:32:18.000Z","updated_at":"2023-07-28T20:24:36.000Z","dependencies_parsed_at":"2023-02-01T00:00:32.339Z","dependency_job_id":null,"html_url":"https://github.com/Monibuca/clusterplugin","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/Monibuca%2Fclusterplugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monibuca%2Fclusterplugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monibuca%2Fclusterplugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monibuca%2Fclusterplugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Monibuca","download_url":"https://codeload.github.com/Monibuca/clusterplugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251518876,"owners_count":21602229,"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":["cluster"],"created_at":"2024-11-11T21:18:23.137Z","updated_at":"2025-04-29T14:30:54.134Z","avatar_url":"https://github.com/Monibuca.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clusterplugin\ncluster plugin for monibuca\n实现了基本的集群功能，里面包含一对发布者和订阅者，分别在主从服务器中启用，进行连接。 起基本原理就是，在主服务器启动端口监听，从服务器收到播放请求时，如果从服务器没有对应的发布者，则向主服务器发起请求，主服务器收到来自从服务器的请求时，将该请求作为一个订阅者。从服务器则把tcp连接作为发布者，实现视频流的传递过程。\n\n# 插件名称\n\nCluster\n\n# 配置\n\n源服务器的配置是ListenAddr，用来监听从服务器的请求。 边缘服务器的配置是OriginServer,表示源服务器的地址。 当然服务器可以既是源服务器也是边缘服务器，即充当中转站。\n\n## 边缘服务器的配置\n```toml\n[Cluster]\nOriginServer = \"localhost:2019\"\n\n```\n\n## 源服务器的配置\n```toml\n[Cluster]\nListenAddr = \":2019\"\n```\n\n# 示意图\n![sketch](https://raw.githubusercontent.com/Monibuca/clusterplugin/master/sketch.svg)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonibuca%2Fclusterplugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonibuca%2Fclusterplugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonibuca%2Fclusterplugin/lists"}