目录

ATTENTION: This release is archived

Now a part of https://github.com/cloudfoundry/system-metrics-release

Leadership Election Release

The leadership election release deploys job that implements the Raft distributed consensus algorithm to the desired instance group.

Usage

Once deployed, the leadership-election job will expose an endpoint on localhost with the following responses:

  • 200 OK: This node is the leader
  • 423 LOCKED: This node is not the leader

By default, the endpoint is exposed on port 8080

Example:

curl localhost:8080/v1/leader

关于
3.7 MB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号