Comments (5)
I tried giving the 2nd peer -p 7480 to start it on a different port. Better, but still no luck:
106692:N 23 Jan 06:31:52.857 # Election timeout reached, restarting election
106692:N 23 Jan 06:31:52.857 * Node at :7481 [Candidate] entering Candidate state
106692:N 23 Jan 06:31:52.858 # Failed to make RequestVote RPC to :7480: dial tcp :7480: get\
sockopt: connection refused
106692:N 23 Jan 06:31:54.124 # Election timeout reached, restarting election
106692:N 23 Jan 06:31:54.124 * Node at :7481 [Candidate] entering Candidate state
106692:N 23 Jan 06:31:54.125 # Failed to make RequestVote RPC to :7480: dial tcp :7480: get\
sockopt: connection refused
... more of the same...
The first peer seems to want to dial via tcp directly, rather than re-using the existing (tunnelled) connection to the 7480 peer.
from summitdb.
interestingly, even removing the 2nd peer does not work, and no leader is elected from the one viable node:
127.0.0.1:7481> raftremovepeer ":7480"
(error) ERR leader not known
127.0.0.1:7481>
1st node continues to say:
06692:N 23 Jan 06:54:41.831 # Failed to make RequestVote RPC to :7480: dial tcp :7480: getsockopt: connection refused
106692:N 23 Jan 06:54:43.429 # Election timeout reached, restarting election
106692:N 23 Jan 06:54:43.429 * Node at :7481 [Candidate] entering Candidate state
106692:N 23 Jan 06:54:43.431 # Failed to make RequestVote RPC to :7480: dial tcp :7480: getsockopt: connection refused
106692:N 23 Jan 06:54:45.124 # Election timeout reached, restarting election
106692:N 23 Jan 06:54:45.125 * Node at :7481 [Candidate] entering Candidate state
106692:N 23 Jan 06:54:45.126 # Failed to make RequestVote RPC to :7480: dial tcp :7480: getsockopt: connection refused
I would prefer that "raftremovepeer" be a bit more aggressive here, so as to restore the cluster to a functioning state.
from summitdb.
(I do realize this is all the underlying raft implementation, and little to do with summitdb proper.)
from summitdb.
I haven't played to much with ssh tunneling over raft, so I'm trying to catch up. I'll have to investigate further to fully wrap my head around it.
Regarding the raft implementation, as I understand all the peers must be able to reach each other using the same host:port
combination. Would it help to create entries in the hosts file to alias localhost?
from summitdb.
I didn't set up symmetric tunnels, so it's my bad.
I'm sure it simplifies the raft code to assume full peer-to-peer connectivity, both acting as client and both acting as "server".
It does end up simulating split-brain pretty well though. I wonder why hashicorp raft has such a difficult time recovering from it. Might be because I never got to 3 nodes, only 1 and then 1.5
from summitdb.
Related Issues (20)
- Q: read the last FENCE token without incrementing? HOT 1
- missing server means new leader complains forever; needs to avoid spamming its logs HOT 2
- Q: transactions or pipelined commands? HOT 3
- Unable to join cluster HOT 9
- Is it (already) possible to retrieve a list of all the peers for a cluster? HOT 5
- Getting Started - FreeBSD Incorrect Download Path HOT 6
- support for list data structure HOT 3
- Can't join cluster: "peer already known" HOT 2
- how to implement distributed lock with fencing tokens? HOT 1
- Kubernetes Statefulset
- Will you support authentication and TLS? HOT 1
- active project? HOT 1
- FYI: works fine on AArch64... HOT 1
- Q: SummitDB as embedded DB? HOT 1
- Question: what happened when out of memory? HOT 2
- Is it neccessary to open buntdb in file mode? HOT 3
- What happend when a command is committed but has errors when apply it? HOT 3
- The raft.db will grow unlimitedly? HOT 1
- Docs mention Lua eventhough Javascript is used
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from summitdb.