-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#148 Replaced Master and Slave with Primary and Replica where applica…
…ble (#177) The labels, commands and command outputs keep master and slave. Added a note about using master and slave to replication page. --------- Signed-off-by: Anastasia Alexadrova <anastasia.alexandrova@percona.com> Signed-off-by: Madelyn Olson <madelyneolson@gmail.com> Co-authored-by: Madelyn Olson <madelyneolson@gmail.com>
- Loading branch information
1 parent
57b0e81
commit 77de0ff
Showing
54 changed files
with
729 additions
and
726 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
The command provides a list of replica nodes replicating from the specified | ||
master node. The list is provided in the same format used by `CLUSTER NODES` (please refer to its documentation for the specification of the format). | ||
primary node. The list is provided in the same format used by `CLUSTER NODES` (please refer to its documentation for the specification of the format). | ||
|
||
The command will fail if the specified node is not known or if it is not | ||
a master according to the node table of the node receiving the command. | ||
a primary according to the node table of the node receiving the command. | ||
|
||
Note that if a replica is added, moved, or removed from a given master node, | ||
Note that if a replica is added, moved, or removed from a given primary node, | ||
and we ask `CLUSTER REPLICAS` to a node that has not yet received the | ||
configuration update, it may show stale information. However eventually | ||
(in a matter of seconds if there are no network partitions) all the nodes | ||
will agree about the set of nodes associated with a given master. | ||
will agree about the set of nodes associated with a given primary. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
The command reconfigures a node as a replica of the specified master. | ||
If the node receiving the command is an *empty master*, as a side effect | ||
of the command, the node role is changed from master to replica. | ||
The command reconfigures a node as a replica of the specified primary. | ||
If the node receiving the command is an *empty primary*, as a side effect | ||
of the command, the node role is changed from primary to replica. | ||
|
||
Once a node is turned into the replica of another master node, there is no need | ||
Once a node is turned into the replica of another primary node, there is no need | ||
to inform the other cluster nodes about the change: heartbeat packets exchanged | ||
between nodes will propagate the new configuration automatically. | ||
|
||
A replica will always accept the command, assuming that: | ||
|
||
1. The specified node ID exists in its nodes table. | ||
2. The specified node ID does not identify the instance we are sending the command to. | ||
3. The specified node ID is a master. | ||
3. The specified node ID is a primary. | ||
|
||
If the node receiving the command is not already a replica, but is a master, | ||
If the node receiving the command is not already a replica, but is a primary, | ||
the command will only succeed, and the node will be converted into a replica, | ||
only if the following additional conditions are met: | ||
|
||
1. The node is not serving any hash slots. | ||
2. The node is empty, no keys are stored at all in the key space. | ||
|
||
If the command succeeds the new replica will immediately try to contact its master in order to replicate from it. | ||
If the command succeeds the new replica will immediately try to contact its primary in order to replicate from it. |
Oops, something went wrong.