Skip to content

Commit

Permalink
Doc: fix typo: n0 should be n1 in faq.md
Browse files Browse the repository at this point in the history
  • Loading branch information
drmingdrmer committed Mar 3, 2024
1 parent da391be commit 350ce95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openraft/src/docs/faq/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Excessive error logging, like `ERROR openraft::replication: 248: RPCError err=Ne
There are two ways to initialize a raft cluster, assuming there are three nodes, `n1, n2, n3`:

1. Single-step method: Call `Raft::initialize()` on any one of the nodes with the configuration of all 3 nodes, e.g. `n2.initialize(btreeset! {1,2,3})`.
2. Incremental method: First, call `Raft::initialize()` on `n1` with configuraion containing `n1` itself, e.g., `n0.initialize(btreeset! {1})`. Subsequently use `Raft::change_membership()` on `n1` to add `n2` and `n3` into the cluster.
2. Incremental method: First, call `Raft::initialize()` on `n1` with configuraion containing `n1` itself, e.g., `n1.initialize(btreeset! {1})`. Subsequently use `Raft::change_membership()` on `n1` to add `n2` and `n3` into the cluster.

Employing the second method provides the flexibility to start with a single-node cluster for testing purposes and subsequently expand it to a three-node cluster for deployment in a production environment.

Expand Down

0 comments on commit 350ce95

Please sign in to comment.