Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
49c817c2
Commit
49c817c2
authored
Jul 25, 2014
by
antirez
Browse files
Example redis.conf: improve slaveof description.
parent
c22fc1ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.conf
View file @
49c817c2
...
@@ -189,9 +189,18 @@ dir ./
...
@@ -189,9 +189,18 @@ dir ./
################################# REPLICATION #################################
################################# REPLICATION #################################
# Master-Slave replication. Use slaveof to make a Redis instance a copy of
# Master-Slave replication. Use slaveof to make a Redis instance a copy of
# another Redis server. Note that the configuration is local to the slave
# another Redis server. A few things to understand ASAP about Redis replication.
# so for example it is possible to configure the slave to save the DB with a
#
# different interval, or to listen to another port, and so on.
# 1) Redis replication is asynchronous, but you can configure a master to
# stop accepting writes if it appears to be not connected with at least
# a given number of slaves.
# 2) Redis slaves are able to perform a partial resynchronization with the
# master if the replication link is lost for a relatively small amount of
# time. You may want to configure the replication backlog size (see the next
# sections of this file) with a sensible value depending on your needs.
# 3) Replication is automatic and does not need user intervention. After a
# network partition slaves automatically try to reconnect to masters
# and resynchronize with them.
#
#
# slaveof <masterip> <masterport>
# slaveof <masterip> <masterport>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment