From e9f0b930fecb02ef9fa025e78da5b3338b36f03b Mon Sep 17 00:00:00 2001 From: antirez Date: Sat, 23 May 2009 11:16:38 +0200 Subject: [PATCH] SLAVEOF command documented --- doc/CommandReference.html | 2 +- doc/SlaveofCommand.html | 41 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 doc/SlaveofCommand.html diff --git a/doc/CommandReference.html b/doc/CommandReference.html index a00c4c471..aa1f0e9f5 100644 --- a/doc/CommandReference.html +++ b/doc/CommandReference.html @@ -34,7 +34,7 @@

Multiple databases handling commands

Sorting

Persistence control commands

-

Remote server control commands

+

Remote server control commands

diff --git a/doc/SlaveofCommand.html b/doc/SlaveofCommand.html new file mode 100644 index 000000000..bbfa84564 --- /dev/null +++ b/doc/SlaveofCommand.html @@ -0,0 +1,41 @@ + + + + + + + +
+ + + +
+
+ +SlaveofCommand: Contents
  SLAVEOF _host_ _port_
  SLAVEOF no one
    Return value
    See also +
+ +

SlaveofCommand

+ +
+ +
+ +
+

SLAVEOF _host_ _port_

+

SLAVEOF no one

The SLAVEOF command can change the replication settings of a slave on the fly.If a Redis server is arleady acting as slave, the command SLAVEOF NO ONEwill turn off the replicaiton turning the Redis server into a MASTER.In the proper form SLAVEOF hostname port will make the server a slave of thespecific server listening at the specified hostname and port.
+
If a server is already a slave of some master, SLAVEOF hostname port willstop the replication against the old server and start the synchrnonizationagainst the new one discarding the old dataset.
+
The form SLAVEOF no one will stop replication turning the server into aMASTER but will not discard the replication. So if the old master stop workingit is possible to turn the slave into a master and set the application touse the new master in read/write. Later when the other Redis server will befixed it can be configured in order to work as slave.
+

Return value

Status code reply

See also

+ +
+ +
+
+ + +