1
0
mirror of https://github.com/fluencelabs/redis synced 2025-07-26 05:51:55 +00:00
Files
client-libraries
doc
AuthCommand.html
Benchmarks.html
BgsaveCommand.html
CommandReference.html
Credits.html
DbsizeCommand.html
DelCommand.html
DesignPatterns.html
ExistsCommand.html
ExpireCommand.html
FAQ.html
FlushallCommand.html
FlushdbCommand.html
GetCommand.html
GetsetCommand.html
IncrCommand.html
InfoCommand.html
KeysCommand.html
LastsaveCommand.html
LindexCommand.html
LlenCommand.html
LpopCommand.html
LrangeCommand.html
LremCommand.html
LsetCommand.html
LtrimCommand.html
MgetCommand.html
MonitorCommand.html
MoveCommand.html
ProtocolSpecification.html
QuickStart.html
QuitCommand.html
README.html
RandomkeyCommand.html
RenameCommand.html
RenamenxCommand.html
ReplicationHowto.html
ReplyTypes.html
RpushCommand.html
SaddCommand.html
SaveCommand.html
ScardCommand.html
SdiffCommand.html
SdiffstoreCommand.html
SelectCommand.html
SetCommand.html
SetnxCommand.html
ShutdownCommand.html
SinterCommand.html
SinterstoreCommand.html
SismemberCommand.html
SlaveofCommand.html
SmembersCommand.html
SmoveCommand.html
SortCommand.html
SpopCommand.html
SremCommand.html
SunionCommand.html
SunionstoreCommand.html
TemplateCommand.html
TtlCommand.html
TwitterAlikeExample.html
TypeCommand.html
UnstableSource.html
index.html
redis.png
style.css
utils
.gitignore
BETATESTING.txt
BUGS
COPYING
Changelog
Makefile
README
TODO
adlist.c
adlist.h
ae.c
ae.h
anet.c
anet.h
benchmark.c
config.h
dict.c
dict.h
fmacros.h
lzf.h
lzfP.h
lzf_c.c
lzf_d.c
pqsort.c
pqsort.h
redis-cli.c
redis.c
redis.conf
redis.h
redis.tcl
sds.c
sds.h
solarisfixes.h
staticsymbols.h
test-redis.tcl
zmalloc.c
zmalloc.h
redis/doc/SlaveofCommand.html

42 lines
2.6 KiB
HTML
Raw Normal View History

2009-05-23 11:16:38 +02:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<link type="text/css" rel="stylesheet" href="style.css" />
</head>
<body>
<div id="page">
<div id='header'>
<a href="index.html">
<img style="border:none" alt="Redis Documentation" src="redis.png">
</a>
</div>
<div id="pagecontent">
<div class="index">
<!-- This is a (PRE) block. Make sure it's left aligned or your toc title will be off. -->
<b>SlaveofCommand: Contents</b><br>&nbsp;&nbsp;<a href="#SLAVEOF _host_ _port_">SLAVEOF _host_ _port_</a><br>&nbsp;&nbsp;<a href="#SLAVEOF no one">SLAVEOF no one</a><br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#Return value">Return value</a><br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#See also">See also</a>
</div>
<h1 class="wikiname">SlaveofCommand</h1>
<div class="summary">
</div>
<div class="narrow">
<h1><a name="SLAVEOF _host_ _port_">SLAVEOF _host_ _port_</a></h1>
<h1><a name="SLAVEOF no one">SLAVEOF no one</a></h1><blockquote>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 <code name="code" class="python">SLAVEOF NO ONE</code>will turn off the replicaiton turning the Redis server into a MASTER.In the proper form <code name="code" class="python">SLAVEOF hostname port</code> will make the server a slave of thespecific server listening at the specified hostname and port.</blockquote>
<blockquote>If a server is already a slave of some master, <code name="code" class="python">SLAVEOF hostname port</code> willstop the replication against the old server and start the synchrnonizationagainst the new one discarding the old dataset.</blockquote>
<blockquote>The form <code name="code" class="python">SLAVEOF no one</code> 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.</blockquote>
<h2><a name="Return value">Return value</a></h2><a href="ReplyTypes.html">Status code reply</a><h2><a name="See also">See also</a></h2>
<ul><li> <a href="InfoCommand.html">INFO</a></li></ul>
</div>
</div>
</div>
</body>
</html>