Skip to content

How do followers become the leader? #6

@Anoning

Description

@Anoning

When I close the leader's terminal, the followers' terminals are also closed.

`$GOPATH/bin/raftd -id node03 -haddr raft-cluster-host-03:8091 -raddr raft-cluster-host-03:8089 -join raft-cluster-host-01:8091 ~/.raftdb

2022-06-17T14:28:19.959+0800 [INFO] raft: initial configuration: index=1 servers="[{Suffrage:Voter ID:node01 Address:127.0.0.2:8089}]"
[store] 2022/06/17 14:28:19 no bootstrap needed
2022-06-17T14:28:19.959+0800 [INFO] raft: entering follower state: follower="Node at 127.0.0.4:8089 [Follower]" leader=
2022/06/17 14:28:19 failed to join node at raft-cluster-host-01:8091: Post "http://raft-cluster-host-01:8091/join": dial tcp 127.0.0.2:8091: connect: connection refused
`

I don't know if there is something wrong with my operation. If this part is implemented, what should I do?

Thank you very much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions