Skip to content

Commit

Permalink
Update commands/replicaof.md
Browse files Browse the repository at this point in the history
Co-authored-by: Madelyn Olson <[email protected]>
Signed-off-by: Anastasia Alexandrova <[email protected]>
  • Loading branch information
nastena1606 and madolson authored Sep 30, 2024
1 parent 6eb4bf7 commit 56cef26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/replicaof.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ If a Valkey server is already acting as replica, the command `REPLICAOF` NO ONE

If a server is already a replica of some primary, `REPLICAOF` hostname port will stop the replication against the old server and start the synchronization against the new one, discarding the old dataset.

The form `REPLICAOF` NO ONE will stop replication, turning the server into a MASTER, but will not discard the replication. So, if the old primary stops working, it is possible to turn the replica into a primary and set the application to use this new primary in read/write. Later when the other Valkey server is fixed, it can be reconfigured to work as a replica.
The form `REPLICAOF` NO ONE will stop replication, turning the server into a PRIMARY, but will not discard the replication. So, if the old primary stops working, it is possible to turn the replica into a primary and set the application to use this new primary in read/write. Later when the other Valkey server is fixed, it can be reconfigured to work as a replica.

## Examples

Expand Down

0 comments on commit 56cef26

Please sign in to comment.