Comments (4)
👋 Thanks for opening this issue!
Get help or engage by:
/help
: to print help messages./assignme
: to assign this issue to you.
from openraft.
You can not kill two nodes in a cluster of only three nodes. A majority requires at least two nodes.
The whole cluster will inevitably become unresponsive, whether or not using an "Unreachable" error and backoff.
The leader has received two Unreachable
errors for all of the target node it replicates to. Thus by the design, the leader decide not to send anything out. This is as expected.
There should be several warning
messages in the log, emitted by the two logging statements below.
openraft/openraft/src/replication/mod.rs
Lines 255 to 262 in 828ad87
openraft/openraft/src/replication/mod.rs
Lines 475 to 481 in 828ad87
from openraft.
Thanks for the explanation. Yes I see those two warning messages, but are there any messages emitted indicating that the leader recognizes that all nodes are unreachable and it should no longer send anything out? I looked through the logs and wasn't seeing anything obvious. Also, would the same behavior occur if the leader receives multiple Network
or Timeout
errors from all of the target nodes?
from openraft.
No such log message indicating that all nodes are unreachable.
And the critical state is not that all nodes are unreachable, but that a quorum of nodes are unreachable.
There is no such a log message because it may misleading: the leader can not be sure if it is a problem with the target node or a problem with the leader node.
To get a correct view of the cluster state, you must contact each node directly.
from openraft.
Related Issues (20)
- Feature: add `Node` information into `AppendEntriesRequest` request HOT 2
- Tracking issue for non-member Leader HOT 1
- Re call add_learner for a restarted node don't sync the state (snapshot). HOT 7
- add peek support HOT 1
- Hide `RaftStorage` and similar types from generic arguments to `Raft`/`RaftInner` HOT 7
- RaftMsg::ExternalRequest: should not rely on RaftLogStorage and RaftNetworkFactory HOT 3
- Add random number generation to `Runtime` HOT 5
- Ditch `async_trait` in favor of the official `async_fn_in_trait` feature HOT 6
- Refactor: Move `client_resp_channels` from `LeaderData` to new `tx_...`-field in `RaftCore` HOT 2
- Linearizable read with `ReadIndex` HOT 1
- about single node HOT 6
- Cluster Bootstrap and Node Initialization Sequence HOT 4
- Tracking issue for examples update HOT 1
- Update example `raft-kv-memstore` to use `storage-v2` HOT 2
- Update example `raft-kv-rocksstore` to use `storage-v2` HOT 1
- Move examples into the workspace HOT 1
- Install Snapshot v1 api HOT 3
- Observe state changes in a Raft node HOT 6
- Split metrics into data metrics and server metrics HOT 5
- About automatic remove HOT 3
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 openraft.