Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do followers become the leader? #6

Open
Anoning opened this issue Jun 17, 2022 · 0 comments
Open

How do followers become the leader? #6

Anoning opened this issue Jun 17, 2022 · 0 comments

Comments

@Anoning
Copy link

Anoning commented Jun 17, 2022

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!

@Anoning Anoning changed the title How do followers become leader? How do followers become a leader? Jun 17, 2022
@Anoning Anoning changed the title How do followers become a leader? How do followers become the leader? Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant