【文件属性】:
文件名称:bully-election:分布式系统的恶霸选举算法
文件大小:31KB
文件格式:ZIP
更新时间:2021-04-05 22:50:35
go docker kubernetes distributed-systems resilience
恶霸选举算法
在Go中实现的用于在Kubernetes集群中部署的分布式系统的恶霸选举算法。
监视器
/metrics使用指标端点获取有关副本状态的信息,
Bully选举仪表板-Web应用程序,用于监视整个集群。
建造
make build # to build locally.
make test # to run all tests.
make build-image # to build Docker image.
部署
make deploy # to deploy in Kubernetes cluster.
局限性
有时群集在创建部署时选择了错误的领导者,
当广告连播数量很高(> = 20)时,可能会选择多个领导者。
链接
【文件预览】:
bully-election-master
----pkg()
--------metrics()
--------comms()
--------messages()
--------states()
--------replicas()
--------services()
----cmd()
--------bully-election()
----deploy()
--------bully-election.yml(4KB)
----.github()
--------workflows()
----.gitignore(18B)
----Makefile(635B)
----go.sum(42KB)
----.dockerignore(68B)
----README.md(1KB)
----build()
--------bully-election.dockerfile(364B)
----go.mod(275B)