Skip to content

What kind of safety guarantee does the leader election primitives provide? #10125

@lingyuan2014

Description

@lingyuan2014

I'm new to etcd. I've been looking into this example of using etcd for leader election. I'm a bit confused with what this example illustrates. It seems like a leader has to call Resign to concede the leadership to another agent participating the campaign. In the case of leader loosing network connection to etcd cluster, wouldn't this render the system as hanging because the old leader can not "give up" leadership, thus no new leader can win the campaign?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions