mirror of
https://github.com/taigrr/nats.docs
synced 2025-01-18 04:03:23 -08:00
updates based on RI updates to README 020921
This commit is contained in:
parent
648be33d81
commit
a3224f0245
@ -32,9 +32,9 @@ The `current` indicates that followers are up to date and have all the messages,
|
|||||||
|
|
||||||
The replica count cannot be edited once configured.
|
The replica count cannot be edited once configured.
|
||||||
|
|
||||||
## Forcing leader election
|
## Forcing Stream and Consumer leader election
|
||||||
|
|
||||||
Every RAFT group has a leader that's elected by the group when needed. Generally there is no reason to interfere with this process but you might want to trigger a leader change at a convenient time. Leader elections will represent short interruptions to the stream so if you know you will work on a node later it might be worth moving leadership away from it ahead of time.
|
Every RAFT group has a leader that's elected by the group when needed. Generally there is no reason to interfere with this process, but you might want to trigger a leader change at a convenient time. Leader elections will represent short interruptions to the stream so if you know you will work on a node later it might be worth moving leadership away from it ahead of time.
|
||||||
|
|
||||||
Moving leadership away from a node does not remove it from the cluster and does not prevent it from becoming a leader again, this is merely a triggered leader election.
|
Moving leadership away from a node does not remove it from the cluster and does not prevent it from becoming a leader again, this is merely a triggered leader election.
|
||||||
|
|
||||||
@ -53,6 +53,18 @@ Cluster Information:
|
|||||||
Replica: n3-c1, current, seen 0.12s ago
|
Replica: n3-c1, current, seen 0.12s ago
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The same is true for consumers, `nats consumer cluster step-down ORDERS NEW`.
|
||||||
|
|
||||||
|
#### Forcing Meta Group leader election
|
||||||
|
|
||||||
|
Similar to Streams and Consumers above the Meta Group allows leader stand down. The Meta Group is cluster wide and spans all accounts, therefore to manage the meta group you have to use a `SYSTEM` user.
|
||||||
|
|
||||||
|
```nohighlight
|
||||||
|
$ nats server raft step-down --user system
|
||||||
|
17:44:24 Current leader: n2-c2
|
||||||
|
17:44:24 New leader: n1-c2
|
||||||
|
```
|
||||||
|
|
||||||
## Evicting a peer
|
## Evicting a peer
|
||||||
|
|
||||||
Generally when shutting down NATS, including using Lame Duck Mode, the cluster will notice this and continue to function. A 5 node cluster can withstand 2 nodes being down.
|
Generally when shutting down NATS, including using Lame Duck Mode, the cluster will notice this and continue to function. A 5 node cluster can withstand 2 nodes being down.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user